/* ==========================================================================
   App shell — dashboard, orders, order detail, settings
   ========================================================================== */
body { background-attachment: scroll; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

/* sidebar */
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(10, 4, 6, .35);
}
.side .logo { padding: 4px 8px 20px; }
.side-label { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 18px 10px 8px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.side-nav a svg { width: 17px; height: 17px; opacity: .85; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.035); }
.side-nav a.is-active { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.side-nav a.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--red); }
.side-nav a .count { margin-left: auto; font-size: 11px; font-family: var(--mono); padding: 1px 7px; border-radius: 99px; background: var(--red-soft); color: #ff8692; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-promo { padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(232,40,61,.12), transparent); font-size: 13px; }
.side-promo b { display: block; margin-bottom: 4px; font-size: 13px; }
.side-promo p { color: var(--muted); margin-bottom: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.user-chip .meta { min-width: 0; flex: 1; }
.user-chip b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip span { font-size: 12px; color: var(--dim); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 352) 70% 55%), hsl(calc(var(--h, 352) + 30) 60% 35%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 8, 11, .75); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 14px; height: 14px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; width: 280px; height: 38px; padding: 0 8px 0 12px;
  border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); color: var(--dim); font-size: 13px;
  transition: border-color .2s, color .2s;
}
.search-btn:hover { border-color: var(--line-3); color: var(--muted); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn .kbd { margin-left: auto; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); color: var(--muted); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.menu-btn { display: none; }

.notif {
  position: absolute; right: 0; top: calc(100% + 8px); width: 360px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out);
}
.notif.is-open { opacity: 1; transform: none; pointer-events: auto; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.notif-list { max-height: 360px; overflow: auto; }
.notif-item { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background .2s; }
.notif-item:hover { background: rgba(255,255,255,.025); }
.notif-item::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--red); margin-top: 7px; }
.notif-item b { font-weight: 500; display: block; }
.notif-item span { color: var(--dim); font-size: 12px; }

/* page */
.page { padding: 36px 32px 72px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.035em; }
.page-head h1 .soft { color: var(--dim); }
.page-head p { color: var(--muted); margin-top: 6px; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.box-head h2 { font-size: 16px; font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
.box-head p { font-size: 13px; color: var(--dim); margin-top: 2px; }
.box-body { padding: 22px; }
.box-foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-bottom: 20px; }
.kpi { padding: 22px; border-left: 1px solid var(--line); position: relative; }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.kpi .v { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; margin-top: 10px; line-height: 1.1; }
.kpi .v small { font-size: 16px; color: var(--dim); font-weight: 500; margin-left: 2px; }
.kpi .s { font-size: 12px; color: var(--dim); margin-top: 4px; }
.kpi svg.spark { position: absolute; right: 18px; top: 22px; width: 76px; height: 28px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* alert row */
.alert {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 20px;
  border-radius: 14px; border: 1px solid rgba(247,184,75,.28); background: linear-gradient(90deg, rgba(247,184,75,.09), rgba(247,184,75,.02));
}
.alert .chip-icon { color: var(--gold); background: var(--gold-soft); border-color: rgba(247,184,75,.25); }
.alert .t b { display: block; font-weight: 600; }
.alert .t span { color: var(--muted); font-size: 13px; }
.alert .r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.alert .amt { text-align: right; font-weight: 600; }
.alert .amt span { display: block; font-size: 12px; color: var(--dim); font-weight: 400; }
@media (max-width: 640px) { .alert { flex-wrap: wrap; } .alert .r { margin-left: 0; width: 100%; justify-content: space-between; } }

/* active delivery */
.live { padding: 22px; }
.live-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.live-top h3 { font-size: 20px; letter-spacing: -0.02em; }
.live-top h3 .soft { color: var(--dim); font-weight: 500; }
.live-top p { color: var(--dim); font-size: 13px; margin-top: 4px; }
.segbar { display: grid; gap: 3px; margin: 22px 0 10px; grid-auto-flow: column; }
.segbar i { height: 10px; border-radius: 3px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.segbar i.on { background: linear-gradient(180deg, #ff5a69, #d8203a); }
.segbar i.next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,77,94,.55), transparent); animation: shimmer 1.8s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.segmeta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.segmeta b { color: var(--text); font-weight: 600; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.12); white-space: nowrap; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; cursor: pointer; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table .ord { display: flex; align-items: center; gap: 12px; }
.table .ord .chip-icon { width: 34px; height: 34px; }
.table .ord b { display: block; font-weight: 500; }
.table .ord b + span { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.table .go { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--dim); border: 1px solid var(--line); transition: all .2s; }
.table tr:hover .go { color: var(--text); border-color: var(--line-3); transform: translateX(2px); }
.table .go svg { width: 14px; height: 14px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 760px) { .table .hide-sm { display: none; } .table td, .table th { padding-left: 14px; padding-right: 14px; } }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .chip-icon { margin: 0 auto 14px; width: 44px; height: 44px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 18px; }

/* filter tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.2); }
.tabs button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 13px; font-weight: 500; transition: all .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.tabs button span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--dim); }
.search .input { height: 38px; padding-left: 36px; width: 260px; font-size: 13px; }
@media (max-width: 640px) { .search .input { width: 100%; } .toolbar .right, .search { width: 100%; } .tabs { overflow-x: auto; } }

/* order detail */
.od-hero { padding: 28px; position: relative; overflow: hidden; }
.od-hero .row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.od-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.045em; margin-top: 14px; }
.od-hero h1 .soft { color: var(--dim); }
.od-hero .sub { color: var(--muted); margin-top: 6px; }
.od-hero .act { position: absolute; right: 28px; top: 28px; display: flex; gap: 8px; }
@media (max-width: 760px) { .od-hero .act { position: static; margin-top: 20px; } }
.od-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.od-stats > div { padding: 20px 28px; border-left: 1px solid var(--line); }
.od-stats > div:first-child { border-left: 0; }
.od-stats .k { font-size: 12px; color: var(--dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.od-stats .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; }
.od-stats .s { font-size: 12px; color: var(--dim); }
@media (max-width: 760px) { .od-stats { grid-template-columns: 1fr 1fr; } .od-stats > div:nth-child(3) { border-left: 0; } .od-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.lrow { display: grid; grid-template-columns: 32px 1fr 80px 150px 32px; gap: 14px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lrow:last-child { border-bottom: 0; }
.lrow .i { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.lrow .id { font-family: var(--mono); letter-spacing: .12em; }
.lrow .a { font-variant-numeric: tabular-nums; color: var(--muted); }
.lrow .st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lrow .st::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--dim); }
.lrow .st.filled { color: var(--green); } .lrow .st.filled::before { background: var(--green); }
.lrow .st.pending::before { background: var(--blue); }
.lrow .st.awaiting::before { background: var(--gold); }
.lrow .cp { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--dim); transition: all .2s; }
.lrow .cp:hover { color: var(--text); border-color: var(--line-2); }
.lrow .cp svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .lrow { grid-template-columns: 1fr auto 32px; } .lrow .i, .lrow .a { display: none; } }

.timeline { list-style: none; margin: 0; padding: 6px 22px 10px; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 14px 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 30px; bottom: -14px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dt { width: 11px; height: 11px; border-radius: 3px; margin-top: 5px; background: var(--surface-3); border: 1px solid var(--line-3); }
.timeline li:first-child .dt { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.timeline b { font-weight: 500; display: block; }
.timeline p { color: var(--dim); font-size: 13px; }
.timeline time { font-size: 12px; color: var(--dim); white-space: nowrap; font-family: var(--mono); }

.kv { display: grid; }
.kv .r { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.kv .r:last-child { border-bottom: 0; }
.kv .r b { color: var(--text); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kv .r.tot { padding-top: 16px; align-items: center; }
.kv .r.tot b { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }

/* payment modal */
.pay-amount { text-align: center; padding: 8px 0 20px; }
.pay-amount .k { font-size: 13px; color: var(--dim); }
.pay-amount .v { font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; }
.pay-box { border: 1px dashed var(--line-3); border-radius: 12px; padding: 16px; display: grid; gap: 10px; background: rgba(0,0,0,.2); }
.pay-box .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pay-box .r code { font-family: var(--mono); color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.qr-ph { width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: #6b5157; font-size: 12px; text-align: center; padding: 16px; }
.demo-note { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); border: 1px solid rgba(155,176,255,.25); color: #cdd7ff; font-size: 12px; }

/* settings */
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .set-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-wrap { position: relative; }
.field-wrap .input[readonly] { color: var(--muted); }
.field-wrap .tag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--dim); }
.field-wrap button.tag { background: none; border: 0; padding: 4px; display: grid; place-items: center; color: var(--dim); }
.field-wrap button.tag:hover { color: var(--text); }
.field-wrap button.tag svg { width: 15px; height: 15px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-row:first-child { padding-top: 0; }
.toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle-row b { font-weight: 500; display: block; }
.toggle-row span { color: var(--dim); font-size: 13px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.4); transition: transform .3s var(--ease-out); }
.switch input:checked + i { background: var(--red-2); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(255,77,94,.3); }
.conn { display: flex; align-items: center; gap: 14px; }
.conn .ds { width: 40px; height: 40px; border-radius: 10px; background: #5865f2; display: grid; place-items: center; color: #fff; }
.conn .ds svg { width: 20px; height: 20px; }
.conn b { display: block; font-weight: 500; }
.conn span { color: var(--dim); font-size: 13px; }
.danger { border-color: rgba(255,77,94,.22); }

/* command palette */
.palette .modal { max-width: 620px; }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal-input svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.pal-input input { flex: 1; height: 58px; border: 0; background: none; outline: none; font-size: 16px; }
.pal-list { max-height: 400px; overflow: auto; padding: 8px; }
.pal-group { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.pal-item .chip-icon { width: 30px; height: 30px; border-radius: 8px; }
.pal-item .chip-icon svg { width: 15px; height: 15px; }
.pal-item .sub { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.pal-item .right { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 12px; }
.pal-item.is-sel { background: rgba(255,255,255,.055); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* mobile */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .35s var(--ease-out); background: var(--bg-2); }
  .app.side-open .side { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  .side-nav a.is-active::before { display: none; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .search-btn { width: 38px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn .kbd { display: none; }
  .top-right .btn-primary .t { display: none; }
  .page { padding: 24px 16px 64px; }
  .notif { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}
.app-col { min-width: 0; display: flex; flex-direction: column; }
.side .logo img { height: 28px; }
.tip { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; margin: -10px; border-radius: 6px; transition: background .2s; }
.tip:hover { background: rgba(255,255,255,.03); }
.tip .chip-icon { font-family: var(--pixel-sm); font-size: 12px; }
.tip b { font-weight: 500; }
.inv-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.inv-row:last-child { border-bottom: 0; }
.inv-row .t b { display: block; font-weight: 600; }
.inv-row .t span { font-size: 13px; color: var(--muted); }
.inv-row .exp { font-style: normal; color: var(--gold); }
.inv-row .amt { text-align: right; font-weight: 600; }
.inv-row .amt span { display: block; font-size: 12px; color: var(--dim); font-weight: 400; }
@media (max-width: 640px) { .inv-row { grid-template-columns: 36px 1fr; } .inv-row .amt { text-align: left; grid-column: 2; } .inv-row .btn { grid-column: 2; justify-self: start; } }

/* ===== Tickets ===== */
.tk-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 70px; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .15s; }
.tk-row:last-child { border-bottom: 0; }
.tk-row:hover { background: rgba(255,255,255,.025); }
.tk-dot { width: 8px; height: 8px; border-radius: 2px; background: transparent; }
.tk-row.unread .tk-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tk-main { min-width: 0; }
.tk-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-row.unread .tk-main b { color: #fff; }
.tk-main span { display: block; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-meta { display: flex; gap: 6px; }
.tk-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.tk-time { font-size: 12px; text-align: right; }
@media (max-width: 760px) { .tk-row { grid-template-columns: 10px 1fr auto; } .tk-meta, .tk-time { display: none; } }

.tk-modal { max-width: 640px !important; }
.tk-modal .modal-body { max-height: 74vh; overflow: auto; }
.modal-backdrop:has(.tk-modal) { padding-top: 6vh; }
.tk-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-catbtn { height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); color: var(--muted); font-size: 13px; font-weight: 500; transition: all .2s; }
.tk-catbtn:hover { color: #fff; border-color: var(--line-3); }
.tk-catbtn.on { background: linear-gradient(180deg, #ff4a5a, #c8102a); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.tk-orders { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding-right: 2px; }
.tk-opt { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 12px; align-items: center; text-align: left; padding: 11px 14px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); transition: all .2s; }
.tk-opt:hover { border-color: var(--line-3); }
.tk-opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.tk-opt.on { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); }
.tk-opt.on .radio { border: 5px solid #fff; }
.tk-opt-main b { display: block; font-weight: 600; font-size: 14px; }
.tk-opt-main span { font-size: 12px; color: var(--dim); }
.tk-opt-amt { font-weight: 600; font-size: 14px; }
.tk-opt:last-child { grid-template-columns: 18px 1fr; }
.tk-text { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.55; }

.tk-head { padding: 26px 28px; }
.tk-head .row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.tk-head h1 { font-size: clamp(34px, 4vw, 48px) !important; margin: 14px 0 0; line-height: 1 !important; }
.tk-attached { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.tk-order-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; transition: border-color .2s; }
.tk-order-chip:hover { border-color: rgba(255,90,100,.5); }
.tk-order-chip svg { width: 15px; height: 15px; color: var(--red); }

.msgs { display: grid; gap: 18px; padding: 24px 22px; max-height: 60vh; overflow: auto; }
.msg-row { display: flex; gap: 12px; max-width: 78%; }
.msg-row.me { margin-left: auto; flex-direction: row-reverse; }
.msg-av { width: 36px; height: 36px; flex: none; }
.msg-col { min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; color: var(--muted); }
.msg-row.me .msg-head { justify-content: flex-end; }
.msg-head b { color: var(--text); font-weight: 600; font-size: 13px; }
.msg-head time { color: var(--dim); }
.staff-tag { font-family: var(--pixel-sm); font-size: 9px; letter-spacing: .06em; padding: 2px 5px; border-radius: 2px; background: var(--gold); color: #1a0508; }
.msg-bubble { padding: 12px 15px; border-radius: 10px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-top-left-radius: 3px; }
.msg-row.me .msg-bubble { background: linear-gradient(180deg, rgba(255,51,70,.22), rgba(255,51,70,.12)); border-color: rgba(255,90,100,.35); border-top-left-radius: 10px; border-top-right-radius: 3px; }
.composer { border-top: 1px solid var(--line); padding: 16px 22px 18px; }
.composer textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; line-height: 1.55; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
@media (max-width: 640px) { .msg-row { max-width: 100%; } }

.fail-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; max-width: 640px; padding: 14px 16px; border-radius: 6px; background: var(--red-soft); border: 1px solid rgba(255,77,94,.35); }
.fail-box svg { width: 20px; height: 20px; flex: none; color: #ff8692; margin-top: 1px; }
.fail-box b { display: block; font-weight: 600; margin-bottom: 2px; }
.fail-box span { color: rgba(255,235,237,.88); font-size: 14px; }

/* ===== Dashboard KPI cards: framed numbers ===== */
.kpx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpx-card { padding: 8px 8px 20px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: border-color .3s, transform .35s var(--ease-out); }
.kpx-card:hover { border-color: rgba(255,90,100,.4); transform: translateY(-2px); }
.kpx-num .frame-in { position: relative; display: flex; align-items: center; height: 104px; padding: 0 20px; overflow: hidden; }
.kpx-num span { font-family: var(--pixel); font-size: 64px; line-height: 1; color: #fff; text-shadow: 0 4px 0 rgba(110,10,24,.85); }
.kpx-num small { font-size: 30px; color: var(--muted); margin-left: 2px; }
.kpx-num svg.spark { position: absolute; right: 14px; bottom: 14px; width: 90px; height: 34px; opacity: .9; }
.kpx-k { font-family: var(--pixel); font-size: 30px; color: #fff; line-height: 1; margin: 18px 14px 4px; }
.kpx-s { font-size: 13px; color: var(--dim); margin: 0 14px; }
@media (max-width: 1000px) { .kpx { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kpx-num span { font-size: 48px; } .kpx-num .frame-in { height: 84px; } }
#greet { font-size: clamp(48px, 5.4vw, 72px) !important; line-height: .95 !important; }
.inv-box .inv-row { margin: 0 8px 8px; border: 0; border-radius: 6px; padding: 7px; background: linear-gradient(100deg, #2a080e 0%, #4a0d18 45%, #8f1424 75%, #ff4a3a 100%); }
.inv-box .inv-row > * { position: relative; }
.inv-box .inv-row { display: block; }
.inv-box .inv-row .inv-in { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 4px; background: #140508; }
.inv-go { gap: 10px; padding-right: 6px; }
.inv-go .inv-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, #ff4a5a, #d81f33); color: #fff; box-shadow: 0 0 12px rgba(255,51,70,.55), inset 0 -2px 0 rgba(0,0,0,.2); transition: transform .25s var(--ease-out), box-shadow .25s; }
.inv-go .inv-ic svg { width: 10px; height: 10px; image-rendering: pixelated; }
.inv-go:hover { border-color: rgba(255,51,70,.5); }
.inv-go:hover .inv-ic { transform: translateX(2px); box-shadow: 0 0 18px rgba(255,51,70,.8), inset 0 -2px 0 rgba(0,0,0,.2); }
img.avatar { object-fit: cover; background: #2a0b10; }
.fix-box { margin: 18px 0 4px; padding: 16px; border: 1px solid rgba(247,184,75,.45); border-radius: 6px; background: rgba(247,184,75,.06); display: grid; gap: 12px; max-width: 640px; }
.fix-box .fx-h { display: flex; gap: 10px; color: var(--gold); }
.fix-box .fx-h svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.fix-box .fx-h b { display: block; color: var(--text); }
.fix-box .fx-h span { color: var(--muted); font-size: 14px; }
.fix-box .fx-p { margin: 0; font-size: 13px; color: var(--muted); }
.fix-box .fx-row { display: grid; grid-template-columns: 130px auto 1fr; gap: 12px; align-items: center; }
.fix-box .fx-a { font-weight: 600; display: flex; flex-direction: column; } .fix-box .fx-a small { font-weight: 400; font-size: 11px; color: var(--dim); }
.fix-box .btn { justify-self: start; }
@media (max-width: 560px) { .fix-box .fx-row { grid-template-columns: 1fr 1fr; } .fix-box .fx-row input { grid-column: 1 / -1; } }
.rv-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.rv-stars button { font-size: 28px; line-height: 1; background: none; border: 0; padding: 0 2px; cursor: pointer; color: rgba(255,255,255,.18); transition: color .12s, transform .12s; }
.rv-stars button.on { color: var(--gold); text-shadow: 0 0 12px rgba(255,200,61,.45); }
.rv-stars button:hover { transform: scale(1.12); }
.rv-lbl { margin-left: 8px; font-size: 13px; color: var(--muted); }
.rv-card textarea { width: 100%; resize: vertical; min-height: 80px; padding: 10px 12px; }
.rv-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--red); background: rgba(255,255,255,.03); font-size: 14px; color: var(--muted); }
.rv-reply b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
@media (max-width: 520px) {
  .kpx { gap: 10px; }
  .kpx-num svg.spark { display: none; }
  .kpx-num span { font-size: 40px; } .kpx-num small { font-size: 20px; }
  .kpx-num .frame-in { height: 72px; padding: 0 14px; }
  .kpx-k { font-size: 22px; margin: 12px 8px 2px; } .kpx-s { margin: 0 8px; font-size: 12px; }
  .table th, .table td { padding-left: 10px !important; padding-right: 10px !important; }
  .ord { gap: 10px !important; } .ord .chip-icon { display: none; }
  .ord b { white-space: nowrap; }
  .ord > span > span { font-size: 11px; word-break: break-all; }
}

/* ---------- crypto checkout (NOWPayments) ---------- */
.modal.modal-wide { max-width: 760px; }
.cp-loading, .cp-err { padding: 40px 10px; text-align: center; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--red); border-radius: 50%; animation: cp-spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-due { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px 18px; border-radius: 8px; margin-bottom: 14px;
  background: linear-gradient(100deg, #2a080e, #4a0d18 55%, #8f1424); border: 1px solid rgba(255,140,150,.25); }
.cp-due .k { display: block; font-size: 12px; color: rgba(255,230,232,.75); margin-bottom: 4px; }
.cp-due b { font-family: var(--pixel); font-size: 40px; line-height: .95; color: #fff; text-shadow: 0 3px 0 rgba(90,0,15,.8); }
.cp-due .cp-big { font-size: 34px; word-break: break-all; } .cp-due .cp-big small { font-size: 22px; color: var(--gold); }
.cp-usd { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,230,232,.85); }
.cp-oid { font-family: var(--mono); font-size: 12px; color: rgba(255,230,232,.7); }
.cp-h { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.cp-pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.cp-tile:hover { border-color: var(--line-3, rgba(255,255,255,.2)); transform: translateY(-1px); }
.cp-tile.on, .cp-row.on { border-color: var(--gold); background: rgba(255,200,61,.07); box-shadow: inset 0 -2px 0 var(--gold); }
.cp-tile b { font-size: 14px; } .cp-tile span { font-size: 11px; color: var(--dim); text-align: center; line-height: 1.25; }
.cp-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fff; flex: none; }
.cp-logo-t { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #14060a; }
.cp-all { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.cp-all summary { cursor: pointer; padding: 11px 14px; font-size: 13px; color: var(--muted); list-style: none; }
.cp-all summary::after { content: "▾"; float: right; } .cp-all[open] summary::after { content: "▴"; }
.cp-all .input { margin: 0 12px 8px; width: calc(100% - 24px); }
.cp-list { max-height: 260px; overflow: auto; padding: 0 6px 6px; }
.cp-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); cursor: pointer; text-align: left; }
.cp-row:hover { background: rgba(255,255,255,.04); } .cp-row .cp-logo { width: 24px; height: 24px; }
.cp-row span { flex: 1; font-size: 13px; color: var(--muted); } .cp-row span b { color: var(--text); margin-right: 4px; }
.cp-row em { font-style: normal; font-size: 11px; color: var(--dim); }
.cp-quote { margin-top: 14px; padding: 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255,255,255,.02); display: grid; gap: 10px; position: sticky; bottom: -22px; backdrop-filter: blur(8px); }
.cp-qrow { display: flex; align-items: center; gap: 12px; } .cp-qrow > div { flex: 1; } .cp-qrow b { display: block; font-size: 16px; } .cp-qrow span { font-size: 12px; color: var(--dim); }
.cp-min { color: #ff8692; font-size: 13px; }
.cp-note { padding: 11px 13px; border-radius: 6px; font-size: 13px; line-height: 1.5; margin-bottom: 12px; border: 1px solid; }
.cp-note.ok { border-color: rgba(61,220,132,.35); background: rgba(61,220,132,.07); }
.cp-note.warn { border-color: rgba(247,184,75,.4); background: rgba(247,184,75,.07); }
.cp-note.bad { border-color: rgba(255,90,100,.4); background: rgba(255,51,70,.08); }
.cp-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cp-grid { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.cp-grid.is-expired { opacity: .35; pointer-events: none; filter: grayscale(.6); }
.cp-qr { position: relative; background: #fff; border-radius: 10px; padding: 10px 10px 8px; box-shadow: 0 12px 40px -12px rgba(255,51,70,.45); }
.cp-qr canvas { width: 100%; height: auto; display: block; }
.cp-qr-logo { position: absolute; left: 50%; top: calc(50% - 12px); transform: translate(-50%, -50%); width: 46px !important; height: 46px !important; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.cp-qr-cap { display: block; text-align: center; color: #14060a; font: 600 12px var(--mono); margin-top: 4px; }
.cp-info { display: grid; gap: 14px; min-width: 0; }
.cp-field { position: relative; } .cp-field .k, .cp-timer .k { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.cp-val { padding: 11px 84px 11px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(0,0,0,.25); font-size: 13px; word-break: break-all; line-height: 1.45; }
.cp-field.memo .cp-val { border-color: rgba(247,184,75,.5); }
.cp-field .cp-copy { position: absolute; right: 6px; bottom: 6px; }
.cp-copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: var(--text); font-size: 12px; cursor: pointer; transition: background .15s; }
.cp-copy:hover { background: rgba(255,255,255,.12); } .cp-copy svg { width: 14px; height: 14px; }
.cp-due .cp-copy { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.2); flex: none; }
.cp-net { display: flex; align-items: center; gap: 8px; } .cp-net .cp-logo { width: 22px; height: 22px; } .cp-net span { color: var(--muted); font-size: 13px; }
.cp-warn-net { margin: 6px 0 0; font-size: 12px; color: var(--gold); }
.cp-timer b { font-family: var(--pixel); font-size: 32px; line-height: 1; } .cp-timer b.low { color: #ff8692; }
.cp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 18px 0 8px; }
.cp-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--dim); }
.cp-steps li i { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.cp-steps li.done { color: var(--text); } .cp-steps li.done i { background: var(--green); }
.cp-steps li.now { color: var(--text); } .cp-steps li.now i { background: linear-gradient(90deg, var(--red), rgba(255,51,70,.25)); background-size: 200% 100%; animation: cp-bar 1.4s linear infinite; }
@keyframes cp-bar { to { background-position: -200% 0; } }
.cp-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255,200,61,.6); animation: cp-pulse 1.6s infinite; flex: none; }
.pulse.ok { background: var(--green); }
@keyframes cp-pulse { 70% { box-shadow: 0 0 0 8px rgba(255,200,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,200,61,0); } }
.cp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cp-fine { font-size: 11px; color: var(--dim); text-align: center; margin: 12px 0 0; } .cp-foot .cp-fine { margin: 0; }
.cp-done { text-align: center; padding: 26px 10px 10px; }
.cp-check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.4); color: var(--green); }
.cp-check svg { width: 30px; height: 30px; }
.cp-done h3 { font-family: var(--pixel); font-size: 34px; margin: 0 0 6px; } .cp-done p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 640px) {
  .cp-pop { grid-template-columns: repeat(3, 1fr); }
  .cp-grid { grid-template-columns: 1fr; } .cp-qr { max-width: 260px; margin: 0 auto; width: 100%; }
  .cp-due b { font-size: 32px; } .cp-due .cp-big { font-size: 26px; }
}
.cp-search { position: relative; margin-bottom: 4px; }
.cp-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.cp-search .input { width: 100%; padding-left: 36px; height: 44px; }
.cp-chains { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.cp-netlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.cp-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cp-chain:hover { border-color: var(--line-3, rgba(255,255,255,.2)); }
.cp-chain.on { border-color: var(--gold); background: rgba(255,200,61,.07); box-shadow: inset 0 -2px 0 var(--gold); }
.cp-chain b { font-size: 13px; width: 100%; }
.cp-std, .cp-cheap { font-size: 10px; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); }
.cp-cheap { border-color: rgba(61,220,132,.4); color: #6ff0a6; }
#cpCoins { max-height: 300px; overflow: auto; }
.alt-cur { color: #d9c3c8; font-weight: 600; font-size: 13px; }
@media (max-width: 640px) {
  .cp-netlist { grid-template-columns: 1fr 1fr; }
  .cp-chain { padding: 9px 10px; } .cp-chain b { font-size: 12.5px; }
  .modal.modal-wide .modal-body { padding: 16px; }
  .cp-quote { bottom: -16px; }
  .cp-qrow { flex-wrap: wrap; } .cp-qrow .btn { width: 100%; justify-content: center; }
}
.pm-missing { margin: 14px 0 0; padding: 11px 13px; border: 1px dashed var(--line-2); border-radius: 6px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.pm-missing a { color: #8ea1ff; font-weight: 600; }
.cp-fee { margin-top: -2px; } .cp-fee u { text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* payment detected panel */
.cp-grid.is-detected { display: none; }
.cp-detected { padding: 18px; border-radius: 10px; border: 1px solid rgba(61,220,132,.45); background: linear-gradient(160deg, rgba(61,220,132,.14), rgba(61,220,132,.03) 60%); box-shadow: 0 16px 40px -18px rgba(61,220,132,.45); display: grid; gap: 14px; }
.cp-detected.short { border-color: rgba(247,184,75,.5); background: linear-gradient(160deg, rgba(247,184,75,.14), rgba(247,184,75,.03) 60%); box-shadow: none; }
.cpd-top { display: flex; gap: 16px; align-items: center; }
.cpd-top .k { display: block; font-size: 13px; color: #8ff0b8; font-weight: 600; letter-spacing: .02em; }
.cp-detected.short .cpd-top .k { color: var(--gold); }
.cpd-top b { display: block; font-family: var(--pixel); font-size: 40px; line-height: 1; color: #fff; margin: 4px 0; word-break: break-all; }
.cpd-top b small { font-size: 24px; color: var(--gold); }
.cpd-usd { font-size: 14px; color: var(--muted); }
.cpd-ring { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #3ddc84; background: rgba(61,220,132,.1); }
.cpd-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(61,220,132,.2); border-top-color: #3ddc84; animation: cp-spin 1.1s linear infinite; }
.cpd-ring.done::before { animation: none; border-color: #3ddc84; }
.cpd-ring svg { width: 26px; height: 26px; }
.cpd-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.cpd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22b866, #6ff0a6); border-radius: 4px; transition: width .6s; }
.cp-detected.short .cpd-bar i { background: linear-gradient(90deg, #d79a1e, var(--gold)); }
.cpd-msg { margin: -4px 0 0; font-size: 13px; color: var(--gold); }
.cpd-rows { display: grid; border-top: 1px dashed rgba(255,255,255,.12); }
.cpd-rows > div { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 13px; }
.cpd-rows span { color: var(--dim); flex: none; } .cpd-rows b { font-weight: 600; text-align: right; margin-left: auto; }
.cpd-rows .cp-copy { height: 28px; padding: 0 8px; }
.cpd-tx a { color: #8ea1ff; }
.cpd-safe { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .cpd-top b { font-size: 30px; } .cpd-ring { width: 46px; height: 46px; } .cpd-rows > div { flex-wrap: wrap; } }
.cp-detected.short .cpd-ring { color: var(--gold); background: rgba(247,184,75,.1); }
.cp-detected.short .cpd-ring::before { border-color: rgba(247,184,75,.2); border-top-color: var(--gold); }
@media (max-width: 640px) { .cpd-rows > div { flex-wrap: nowrap; } .cpd-rows > div:first-child { flex-wrap: wrap; } .cpd-tx { font-size: 12px; } .cpd-rows .cp-copy span { display: none; } }
.notif-item.is-new b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 8px rgba(255,51,70,.8); }
.modal.away { max-width: 480px; }
.away-list { display: grid; gap: 8px; }
.away-item { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-left: 3px solid var(--red); border-radius: 6px; background: rgba(255,255,255,.02); color: var(--text); transition: background .15s; }
.away-item:hover { background: rgba(255,255,255,.05); }
.away-item b { font-size: 14px; } .away-item span { font-size: 12px; color: var(--muted); } .away-item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.away-item time { font-size: 11px; color: var(--dim); font-family: var(--mono); margin-top: 2px; }
