/* flag emoji for windows, which has none. only covers the flag code points (U+1F1E6 to U+1F1FF, tag sequences).
   Twemoji Country Flags: graphics by Twitter (CC BY 4.0), font by TalkJS (MIT), see /fonts/TwemojiCountryFlags-LICENSE.md */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}
/* smmcrack · paper style: warm paper, hairline grid, canvas frames */
:root {
  --paper: #f8f8f5;
  --paper-2: #f8f8f5;
  --sand: #eaeadf;
  --line: #dcdcd2;
  --line-2: #c9c9bf;
  --ink: #1b1b1a;
  --ink-2: #2a2a28;
  --grey: #8e8e8a;
  --body: #646463;
  --handle: #b9b9b0;
  --night: #0b0b0b;
  --night-2: #181817;
  --ink-hover: #3a3a37;
  --mist: #f1f1ec;
  --ok: #1f6b35; --ok-bg: #e6f4ea; --ok-line: #c8e6d0;
  --warn: #8a6510; --warn-bg: #fdf5e2; --warn-line: #f0e0b5;
  --bad: #9b2222; --bad-bg: #fbeaea; --bad-line: #f0cfcf;
  --info: #2b4fa8; --info-bg: #eef2fb; --info-line: #d5def3;
  --focus: #9ab3f5;
  --r: 8px; --r-sm: 6px; --btn-h: 42px; --btn-h-sm: 36px;
  --card: #f8f8f5;
  --grid: rgb(0 0 0 / .045);
  --display: 'Twemoji Country Flags', 'Figtree', 'Inter', system-ui, sans-serif;
  --sans: 'Twemoji Country Flags', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--paper);
  /* sand diagonal + hairline grid, like a cutting mat */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 40%, var(--sand) 40% 78%, transparent 78%);
  background-size: 120px 120px, 120px 120px, 100% 1500px;
  background-repeat: repeat, repeat, no-repeat;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 60px); margin-inline: auto; }

/* ruler down the right edge */
.ruler {
  position: fixed; top: 0; right: 0; bottom: 0; width: 22px; z-index: 40; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 60px) right / 14px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 10px) right / 7px 100% no-repeat;
  border-left: 1px dashed var(--line-2);
  background-color: var(--paper);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; height: 64px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; }
.nav-links a, .nav-cta a { font-size: 17px; color: var(--ink-2); letter-spacing: -0.01em; }
.nav-links a:hover, .nav-cta a:hover { color: var(--grey); }
.nav-cta { display: flex; gap: 24px; }

/* type */
h1, h2 { font-weight: 400; letter-spacing: -0.035em; line-height: 1.06; }
h1 { font-size: clamp(40px, 5.2vw, 52px); }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h1 span, h2 span { display: block; color: var(--grey); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--body); max-width: 33em; margin-top: 26px; line-height: 1.6; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 36em; line-height: 1.6; }
.label { font-size: 17px; color: var(--ink-2); margin-bottom: 26px; }
.caption { text-align: center; color: var(--body); font-size: 17px; }

/* buttons */
.actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--ink); color: var(--paper); border-radius: var(--r);
  font-size: 18px; letter-spacing: -0.01em;
  transition: background .15s;
}
.btn:hover { background: var(--ink-hover); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--card); }
.tlink { font-size: 18px; color: var(--body); }
.tlink:hover { color: var(--ink); }
.tlink.light { color: var(--handle); }
.tlink.light:hover { color: #fff; }

/* hero */
.hero { padding: 40px 0 0; }
.hero-shot { margin-top: 44px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-cat { width: 300px; height: auto; margin-right: 40px; align-self: flex-end; margin-bottom: -45px; position: relative; z-index: 1; }
.hero-shot { position: relative; z-index: 2; }
.hero-shot .win { position: relative; }

/* product window */
.win {
  background: var(--mist); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 20px 50px -24px rgb(0 0 0 / .18);
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; margin-right: 14px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.tab { display: flex; align-items: center; gap: 6px; padding: 4px 12px; color: var(--grey); border-right: 1px solid var(--line); }
.tab.on { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; }
.tab svg { width: 12px; height: 12px; fill: currentColor; }
.win-body { display: grid; grid-template-columns: 210px 1fr 270px; height: 520px; }
.win-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-head, .prop-head { font-size: 12px; font-weight: 500; color: var(--body); margin: 0 6px 8px; }
.prop-head { margin: 0 0 8px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 5px; color: var(--ink-2); }
.side-item svg { width: 13px; height: 13px; fill: var(--body); }
.side-item.on { background: var(--line); color: var(--ink); }
.side-foot { margin-top: auto; display: flex; justify-content: space-between; padding: 10px 8px 0; border-top: 1px solid var(--line); color: var(--grey); }
.side-foot b { color: var(--ink); font-weight: 600; }
.win-canvas { background: var(--mist); display: grid; place-items: center; padding: 26px; overflow: hidden; }
.order-card { background: var(--card); width: min(100%, 440px); border-radius: 8px; padding: 20px; box-shadow: 0 0 0 1px var(--focus), 0 10px 30px -18px rgb(0 0 0 / .25); }
.oc-head { display: flex; align-items: center; gap: 12px; }
.oc-head b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.oc-head small { color: var(--grey); font-size: 12px; }
.oc-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--mist); display: grid; place-items: center; }
.oc-icon svg { width: 16px; height: 16px; fill: var(--ink); }
.oc-status { white-space: nowrap; margin-left: auto; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 99px; background: var(--mist); color: var(--ink-2); }
.oc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 6px; border-top: 1px solid var(--mist); padding-top: 16px; }
.oc-stats small { display: block; font-size: 11px; color: var(--grey); }
.oc-stats b { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.oc-chart { width: 100%; height: 120px; margin: 10px 0 14px; }
.oc-chart .area { fill: var(--mist); }
.oc-chart .line { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.oc-bar { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.oc-bar span { display: block; width: 84%; height: 100%; background: var(--ink); }
.oc-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--grey); }
.win-props { border-left: 1px solid var(--line); background: var(--paper); padding: 4px 0 14px; display: flex; flex-direction: column; }
.prop-group { padding: 12px 12px 14px; border-bottom: 1px solid var(--mist); }
.field { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.muted { color: var(--grey); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slider { height: 6px; background: var(--line); border-radius: 3px; margin-top: 12px; position: relative; }
.slider span { position: absolute; inset: 0 55% 0 0; background: var(--handle); border-radius: 3px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--mist); border-radius: 5px; padding: 2px; text-align: center; color: var(--grey); }
.seg span { padding: 3px 0; }
.seg .on { background: var(--card); color: var(--ink); border-radius: 4px; box-shadow: 0 1px 1px rgb(0 0 0 / .06); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.box { width: 14px; height: 14px; border: 1px solid var(--handle); border-radius: 3px; display: grid; place-items: center; font-size: 10px; background: var(--card); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 0; margin-top: auto; }
.total b { font-size: 18px; font-weight: 600; color: var(--ink); }
.place { margin: 0 12px; background: var(--ink); color: #fff; text-align: center; padding: 8px; border-radius: 5px; font-weight: 500; }

/* original brand colours inside the panel */
.win svg.ic-instagram { fill: #e4405f; }
.win svg.ic-tiktok { fill: #000; }
.win svg.ic-youtube { fill: #ff0000; }
.win svg.ic-x { fill: #000; }
.win svg.ic-facebook { fill: #0866ff; }

/* platform logos */
.logos { padding: 90px 0 40px; }
.logo-mask {
  display: flex; overflow: hidden; margin: 0 auto; width: min(var(--wrap), 100% - 60px);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
/* each track is exactly as wide as the mask, so a logo never shows twice */
.logo-track { flex: none; width: 100%; display: flex; justify-content: space-around; list-style: none; margin: 0; padding: 0; animation: slide 22s linear infinite; }
.logo-track li { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--grey); letter-spacing: -0.02em; }
.logo-track svg { width: 24px; height: 24px; fill: var(--grey); }
.logo-mask:hover .logo-track { animation-play-state: paused; }

/* canvas frames with corner handles */
.block { padding: 90px 0 0; }
.frame { position: relative; border: 1px solid var(--line-2); background: var(--paper-2); }
.h { position: absolute; width: 9px; height: 9px; background: var(--card); border: 1px solid var(--handle); z-index: 2; }
.h.tl { top: -5px; left: -5px; } .h.tr { top: -5px; right: -5px; }
.h.bl { bottom: -5px; left: -5px; } .h.br { bottom: -5px; right: -5px; }
.head-center { text-align: center; padding: 80px 40px; }
.head-center .sub { margin: 22px auto 0; }
.head-left { padding: 70px 40px; overflow: hidden; }
.head-left::after {
  /* stepped mesh in the corner */
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 9px 9px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.cells { display: grid; margin-top: -1px; }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cells.two { grid-template-columns: repeat(2, 1fr); }
.cell { padding: 46px 40px 54px; margin: 0 -1px -1px 0; }
.ficon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); }
.ficon svg { width: 20px; height: 20px; }
.ficons { display: flex; gap: 8px; margin-bottom: 22px; }
.ficons .ficon { margin: 0; }
.ficons .ficon svg { width: 18px; height: 18px; fill: currentColor; }
.brand-bitcoin { color: #f7931a; }
.brand-tether { color: #26a17b; }
.brand-litecoin { color: #345d9d; }
.brand-ethereum { color: #627eea; }
.arch-icon { display: flex; justify-content: center; margin-bottom: 26px; }
.arch-icon .ficon { width: 48px; height: 48px; }
.arch-icon .ficon svg { width: 24px; height: 24px; }
.cell p { color: var(--body); font-size: 17px; line-height: 1.65; }

/* api */
.arch {
  text-align: center; padding: 110px 60px 80px;
  background: var(--paper-2); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 540px 540px 0 0 / 260px 260px 0 0;
}
.arch h2 { margin-bottom: 22px; }
.arch .sub { margin: 0 auto; }
.api-frame { padding: 36px; }
.term { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 16px 40px -26px rgb(0 0 0 / .25); }
.term-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); background: var(--mist); }
.tabs { display: flex; gap: 2px; margin-right: auto; }
.tabs button, .copy { font: 400 13px var(--mono); color: var(--grey); background: transparent; border: 0; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.copy:hover, .tabs button:hover { color: var(--ink); }
.term pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 400 13.5px/1.8 var(--mono); color: var(--body); min-height: 260px; }
.term b { font-weight: 400; color: var(--ink); }

/* reviews */
.review { margin: 0 -1px -1px 0; display: flex; flex-direction: column; gap: 28px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); flex: 1; letter-spacing: -0.01em; }
.review figcaption { display: flex; flex-direction: column; font-size: 15px; }
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--grey); }

/* compare */
.table-frame { margin-top: -1px; }
.table-scroll { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.table-scroll::-webkit-scrollbar { display: none; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 17px; }
.compare th, .compare td { padding: 20px 40px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-weight: 500; color: var(--grey); font-size: 15px; }
.compare th.us { color: var(--ink); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; border-left: 1px solid var(--line); }
.compare td.us { background: var(--mist); }
.yes { color: var(--ink); font-weight: 600; }
.no { color: var(--line-2); }
.meh { color: var(--grey); font-size: 15px; }

/* faq */
.faq-frame { display: grid; grid-template-columns: .85fr 1.15fr; }
.faq-head { padding: 70px 40px; border-right: 1px solid var(--line); }
.faq-head .sub { margin-top: 24px; color: var(--body); font-size: 17px; }
.faq-head a { color: var(--ink); }
.faq { padding: 30px 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 18px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 12px; height: 12px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 5.5px; height: 1px; background: var(--ink); transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.faq details p { color: var(--body); padding: 0 30px 22px 0; font-size: 17px; }

/* cta */
.cta {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: #000; border: 1px solid #000; min-height: 340px;
}
.cta .h { background: var(--paper); }
.cta-copy { position: relative; z-index: 1; padding: 56px 0 56px 48px; }
.cta-word { width: 230px; height: auto; margin: 0 0 18px -10px; }
.cta h2 { color: var(--paper); font-size: clamp(28px, 3.4vw, 38px); }
.cta .actions { margin-top: 26px; }
.cta-katana {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
}

/* footer */
.footer {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  margin-top: 40px; margin-bottom: 60px; padding: 22px 0;
  border-top: 1px solid var(--line-2);
}
.footer-logo img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-inline: auto; }
.footer-links a { font-size: 15px; color: var(--body); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 14px; color: var(--grey); }

.tg-float {
  position: fixed; right: 44px; bottom: 28px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 4px solid rgb(34 158 217 / .22); background-clip: padding-box;
  animation: bounce 2.4s ease-in-out infinite;
  transition: transform .2s;
}
.tg-float svg { width: 100%; height: 100%; fill: #229ED9; }
.tg-float:hover { animation-play-state: paused; transform: scale(1.08); }

/* services page */
.svc-hero { padding: 40px 0 0; }
.svc-hero h1 span { font-size: .5em; letter-spacing: -0.02em; margin-top: 10px; }
.svc-search {
  display: flex; align-items: center; gap: 14px; margin-top: 34px;
  height: 60px; padding: 0 18px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 12px 30px -22px rgb(0 0 0 / .25);
  transition: border-color .15s, box-shadow .15s;
}
.svc-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(154 179 245 / .25); }
.svc-search svg { width: 22px; height: 22px; color: var(--grey); flex: none; }
.svc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 19px var(--display); color: var(--ink); letter-spacing: -0.01em; }
.svc-search input::placeholder { color: var(--handle); }
.svc-search kbd { font: 400 12px var(--mono); color: var(--grey); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; }

.svc-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc-platforms button, .svc-types button {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  font: 500 14px var(--display); color: var(--ink-2); cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.svc-platforms button:hover, .svc-types button:hover { border-color: var(--grey); }
.svc-platforms small, .svc-types small { color: var(--grey); font-weight: 400; font-size: 12px; }
.svc-platforms button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc-platforms button[aria-selected='true'] small { color: var(--handle); }
.svc-platforms button[aria-selected='true'] .pi { fill: var(--paper); color: var(--paper); }

.svc-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.svc-types { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-types button { height: 30px; border-radius: 99px; background: transparent; font-size: 13px; }
.svc-types button[aria-selected='true'] { background: var(--card); border-color: var(--ink); color: var(--ink); }
.svc-opts { display: flex; align-items: center; gap: 12px; flex: none; }
.svc-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.svc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.svc-toggle span { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.svc-toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .15s; }
.svc-toggle input:checked + span { background: var(--ok); }
.svc-toggle input:checked + span::after { transform: translateX(14px); }
.svc-toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
#svc-sort { height: 32px; padding: 0 8px; font: 500 14px var(--display); color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }

.pi { width: 15px; height: 15px; flex: none; fill: currentColor; }
.pi.line { fill: none; color: var(--ink-2); }
.pi-instagram { fill: #e4405f; } .pi-tiktok { fill: #000; } .pi-x { fill: #000; } .pi-youtube { fill: #f00; }
.pi-spotify { fill: #1db954; } .pi-telegram { fill: #26a5e4; } .pi-facebook { fill: #0866ff; } .pi-twitch { fill: #9146ff; }
.pi-discord { fill: #5865f2; } .pi-threads { fill: #000; } .pi-snapchat { fill: #f7d000; } .pi-soundcloud { fill: #ff5500; }
.pi-pinterest { fill: #bd081c; } .pi-reddit { fill: #ff4500; }
.li { width: 18px; height: 18px; flex: none; color: var(--grey); }

.svc-list { padding: 30px 0 40px; display: grid; gap: 28px; }
.svc-empty { padding: 60px 40px; text-align: center; color: var(--body); font-size: 17px; }
.svc-group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.svc-group-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; text-transform: lowercase; }
.svc-group-head h2 .pi { width: 18px; height: 18px; }
.svc-group-head span { color: var(--grey); font-size: 14px; white-space: nowrap; }

.svc-row { border-bottom: 1px solid var(--line); }
.svc-row:last-of-type { border-bottom: 0; }
.svc-row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 118px 118px 132px 112px 14px; gap: 14px; align-items: center;
  padding: 16px 26px; transition: background .12s;
}
.svc-row summary::-webkit-details-marker { display: none; }
.svc-row summary:hover { background: var(--paper); }
.svc-row[open] summary { background: var(--mist); }
.svc-name b { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; text-transform: lowercase; }
.svc-cat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey); margin-bottom: 2px; text-transform: lowercase; }
.svc-cat .pi { width: 12px; height: 12px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.svc-tags i { font-style: normal; font-size: 12px; color: var(--body); background: var(--mist); border-radius: 4px; padding: 1px 7px; text-transform: lowercase; }
.svc-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.svc-cell > span { min-width: 0; }
.svc-cell b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-cell small { display: block; font-size: 11px; color: var(--grey); }
.svc-cell.ok .li { color: var(--ok); }
.svc-cell.ok b { color: var(--ok); }
.svc-cell.muted b { color: var(--grey); font-weight: 500; }
.svc-cell.price b { font-size: 17px; }
.svc-cell.price .li { color: var(--ink); }
.svc-row .plus { width: 12px; height: 12px; }

.svc-detail { display: grid; grid-template-columns: 1fr 270px; gap: 28px; padding: 22px 26px 26px; background: var(--mist); border-top: 1px dashed var(--line-2); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 8px; }
.points li, .notes li { text-transform: lowercase; }
.spec { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.spec.wide { grid-column: span 2; }
.spec-top { display: flex; align-items: center; gap: 7px; }
.spec-top .li { width: 15px; height: 15px; }
.spec small { font-size: 12px; color: var(--grey); }
.spec b { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.points li { display: flex; gap: 9px; font-size: 15px; color: var(--ink-2); }
.points .li { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.notes { margin-top: 18px; }
.notes-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.notes-head .li { width: 15px; height: 15px; }
.notes ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.notes li { font-size: 13px; color: var(--body); line-height: 1.55; }
.calc { align-self: start; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; display: grid; gap: 10px; }
.calc-head { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.calc-head span { font: 400 12px var(--mono); color: var(--grey); }
.calc label { display: grid; grid-template-columns: 18px 1fr; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--body); }
.calc input { grid-column: 1 / -1; height: 40px; padding: 0 12px; font: 500 16px var(--display); border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper-2); outline: 0; }
.calc input:focus { border-color: var(--focus); }
.calc-range { font-size: 12px; color: var(--grey); margin-top: -4px; }
.calc-total { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.calc-total span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.calc-total b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.calc .btn { justify-content: center; font-size: 15px; height: 40px; border: 0; cursor: pointer; }

.svc-all { display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: transparent; font: 500 14px var(--display); color: var(--ink-2); cursor: pointer; }
.svc-all:hover { background: var(--paper); }
.svc-more { justify-self: center; border: 0; cursor: pointer; gap: 10px; }
.svc-more small { color: var(--handle); font-size: 13px; }

@media (max-width: 980px) {
  .svc-row summary { grid-template-columns: minmax(0, 1fr) 110px 110px 14px; }
  .svc-row summary .c-start, .svc-row summary .c-qty { display: none; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-filters { flex-direction: column; align-items: stretch; }
  .svc-opts { justify-content: space-between; }
}
@media (max-width: 640px) {
  .svc-row summary { grid-template-columns: 1fr 1fr 14px; gap: 10px 12px; padding: 14px 16px; }
  .svc-name { grid-column: 1 / -1; }
  .svc-row summary .c-refill { grid-column: 1; }
  .svc-row summary .c-price { grid-column: 2; }
  .svc-row .plus { grid-column: 3; }
  .svc-detail { padding: 18px 16px; gap: 20px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 10px 12px; }
  .spec b { font-size: 14px; }
  .points li { font-size: 14px; }
  .svc-group-head { padding: 16px; }
  .svc-group-head span { display: none; }
  .svc-platforms, .svc-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .svc-platforms::-webkit-scrollbar, .svc-types::-webkit-scrollbar { display: none; }
  .svc-platforms button, .svc-types button { flex: none; }
  .svc-search { height: 52px; }
  .svc-search kbd { display: none; }
}


/* ---------- account area ---------- */
.nav-balance { font-weight: 600; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--paper-2); font-size: 15px !important; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 17px; color: var(--ink-2); cursor: pointer; letter-spacing: -0.01em; }
.linkbtn:hover { color: var(--grey); }

.auth { padding: 50px 0 30px; }
.auth-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; border: 1px solid var(--line-2); background: var(--paper-2); }
.auth-side { position: relative; overflow: hidden; background: #000; color: var(--paper); padding: 44px 40px; display: flex; flex-direction: column; min-height: 540px; }
.auth-word { width: 230px; height: auto; margin-left: -8px; }
.auth-perks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--line); }
.auth-perks svg { width: 20px; height: 20px; flex: none; color: var(--paper); }
.auth-katana { position: absolute; right: -18%; bottom: -6%; width: 125%; max-width: none; opacity: .9; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); }
.auth-main { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-main h1 { font-size: 34px; margin-bottom: 26px; }
.auth-main h1 span { font-size: .6em; margin-top: 6px; }
.auth-alt { margin-top: 22px; font-size: 15px; color: var(--body); }
.auth-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-card { width: min(440px, 100%); margin: 0 auto; padding: 44px 40px; }
.auth-card h1 { font-size: 34px; margin-bottom: 18px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--grey); cursor: pointer; border-radius: 5px; }
.eye svg { width: 18px; height: 18px; }
.eye:hover, .eye.on { color: var(--ink); }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea, .form select {
  width: 100%; padding: 0 12px; height: 44px; font: 400 16px var(--display); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.form textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(154 179 245 / .25); }
.form small { font-weight: 400; font-size: 12px; color: var(--grey); }
.form .btn { justify-content: center; border: 0; cursor: pointer; height: 44px; }
.flash { padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 4px; }
.flash.error { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.flash.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.flash.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.hint { font-size: 13px; color: var(--grey); }
.hint code, .mono { font-family: var(--mono); font-size: 13px; }

.app { padding: 34px 0 20px; display: grid; gap: 22px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(32px, 4vw, 44px); }
.app-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.app-tabs a { padding: 7px 12px; border-radius: 6px; font-size: 15px; color: var(--body); border: 1px solid transparent; }
.app-tabs a:hover { color: var(--ink); }
.app-tabs a[aria-current] { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 24px; display: grid; gap: 4px; align-content: start; }
.stat small { font-size: 13px; color: var(--grey); }
.stat b { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--grey); }
.stat .btn, .stat .tlink { justify-self: start; margin-top: 8px; }
.btn-sm { height: 34px; font-size: 15px; padding: 0 12px; }
.panel { padding: 24px 26px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.panel h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.big { font-size: 34px; letter-spacing: -0.03em; }
.empty { color: var(--body); font-size: 15px; padding: 10px 0; }
.empty a { color: var(--ink); text-decoration: underline; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--grey); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; font-size: 12px; color: var(--grey); margin-top: 2px; }
.tbl td b { font-weight: 500; }
.tbl td.link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl td.link a { color: var(--body); }
.tbl td.acts { white-space: nowrap; text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pill.wait { background: var(--mist); color: var(--body); }
.pill.run { background: var(--info-bg); color: var(--info); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.off { background: var(--mist); color: var(--grey); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.mini { font: 500 13px var(--display); padding: 5px 10px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; margin-left: 4px; }
.mini:hover { border-color: var(--grey); }
.mini-in { height: 30px; padding: 0 8px; font: 400 13px var(--display); border: 1px solid var(--line-2); border-radius: 5px; width: 110px; background: var(--card); }
.mini-in.wide { width: 240px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters a { padding: 5px 11px; border-radius: 99px; font-size: 14px; color: var(--body); border: 1px solid var(--line-2); }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager { display: flex; justify-content: space-between; padding-top: 14px; font-size: 14px; }
.pager a { text-decoration: underline; }

.account-grid { max-width: 640px; }
.order-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.svc-kicker { font: 400 12px var(--mono); color: var(--grey); margin-bottom: 8px; }
.order-grid .desc { font-size: 14px; color: var(--body); line-height: 1.7; margin: 16px 0; max-height: 360px; overflow: auto; }
.order-grid .svc-tags { margin-top: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.total span { font-size: 14px; color: var(--body); }
.total b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.quick { display: flex; gap: 6px; }
.quick .mini { margin: 0; flex: 1; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity small { display: block; font-size: 12px; color: var(--grey); }
.activity .pos { color: var(--ok); }
.activity .neg { color: var(--ink); }

@media (max-width: 980px) {
  .stats.four { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats, .stats.four { grid-template-columns: 1fr; }
  .auth-card { padding: 34px 22px; }
  .auth { padding-top: 24px; }
  .auth-box { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding: 26px 22px 22px; }
  .auth-word { width: 160px; }
  .auth-perks { margin-top: 18px; gap: 10px; grid-template-columns: 1fr 1fr; }
  .auth-perks li { font-size: 13px; gap: 8px; align-items: flex-start; }
  .auth-perks svg { width: 16px; height: 16px; }
  .auth-katana { display: none; }
  .auth-main { padding: 30px 22px 34px; }
  .auth-main h1 { font-size: 30px; }
  .panel { padding: 20px 16px; }
  .app-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .app-tabs a { flex: none; }
  .nav-cta { gap: 14px; }
  .nav-cta a, .linkbtn { font-size: 15px !important; }
}


/* ---------- app shell: sidebar dashboard ---------- */
.app-body { background-image: none; background: var(--mist); }
.app-body .ruler { display: none; }
.side {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 50;
  background: var(--night); color: var(--mist); display: flex; flex-direction: column;
  padding: 18px 14px; overflow-y: auto;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px; }
.side-logo img { width: 150px; height: auto; }
.side-close { display: none; }
.side-balance { margin: 8px 4px 18px; padding: 16px; border: 1px solid var(--night-2); border-radius: 10px; background: var(--night); display: grid; gap: 2px; }
.side-balance small { font-size: 12px; color: var(--grey); }
.side-balance b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: #fff; }
.side-add { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; justify-self: start; font-size: 13px; font-weight: 500; color: var(--night); background: var(--mist); padding: 6px 11px; border-radius: 6px; }
.side-add svg { width: 15px; height: 15px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-foot a, .side-foot button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  font: 500 15px var(--display); color: var(--handle); background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  transition: background .12s, color .12s;
}
.side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--night-2); color: #fff; }
.side-nav a[aria-current] { background: var(--mist); color: var(--night); }
.side-nav svg, .side-foot svg { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--night-2); display: grid; gap: 2px; }
.side-foot form { margin: 0; }
.side-user { font-size: 12px; color: var(--body); padding: 8px 12px 0; }

.app-main { margin-left: 248px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  height: 68px; padding: 0 32px; background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 26px; letter-spacing: -0.03em; margin-right: auto; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.top-balance { font-weight: 600; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); }
.side-open { display: none; }
.side-shade { display: none; }
.app-content { padding: 26px 32px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 1320px; }
.app-content .stat .tlink { font-size: 14px; }
.app-content .frame { background: var(--card); }
.app-content .h { background: var(--card); }

.stat-dark { background: var(--night) !important; border-color: var(--night); color: var(--paper); }
.stat-dark small { color: var(--grey); }
.stat-dark .h { background: var(--mist) !important; }
.btn-light { background: var(--paper); color: var(--ink); }

.dash-services .svc-hero { padding: 6px 0 0; }
.dash-services .svc-hero h1 { font-size: 30px; }
.dash-services .svc-hero h1 span { font-size: 15px; letter-spacing: 0; }
.dash-services .svc-search { margin-top: 16px; }
.dash-services .svc-list { padding-top: 20px; }

@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s ease, visibility .22s; width: 270px; visibility: hidden; }
  .side-toggle:checked ~ .side { transform: none; visibility: visible; box-shadow: 20px 0 40px rgb(0 0 0 / .3); }
  .side-toggle:checked ~ .side-shade { display: block; position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / .35); }
  .side-close { display: grid; place-items: center; width: 34px; height: 34px; color: var(--handle); cursor: pointer; }
  .side-close svg { width: 20px; height: 20px; }
  .app-main { margin-left: 0; }
  .side-open { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; cursor: pointer; border-radius: 8px; }
  .side-open svg { width: 22px; height: 22px; }
  .topbar { padding: 0 16px; height: 60px; gap: 10px; }
  .topbar h1 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-content { padding: 18px 14px 80px; }
  .app-content .stats.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-content .stat { padding: 16px; }
  .app-content .stat b { font-size: 24px; }
  .app-main { overflow-x: hidden; }
}


/* stat card icons */
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat-top .li { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: var(--mist); color: var(--ink); flex: none; }
.stat-dark .stat-top .li { background: var(--night-2); color: #fff; }
.stat:nth-child(3) .stat-top .li { background: var(--info-bg); color: var(--info); }
.stat:nth-child(4) .stat-top .li { background: var(--ok-bg); color: var(--ok); }
.stats .stat .li { display: block; }

/* new order page */
.order-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.order-plat { width: 52px; height: 52px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; flex: none; }
.order-plat .pi { width: 26px; height: 26px; }
.order-title h2 { margin: 2px 0 0; font-size: 24px; text-transform: lowercase; }
.order-title .svc-kicker { margin: 0; text-transform: lowercase; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); min-width: 0; }
.fact .li { width: 18px; height: 18px; color: var(--grey); flex: none; }
.fact span { min-width: 0; }
.fact small { display: block; font-size: 11px; color: var(--grey); }
.fact b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact.ok .li { color: var(--ok); } .fact.ok b { color: var(--ok); }
.fact.muted b { color: var(--grey); font-weight: 500; }
.link-need { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: 14px; }
.link-need .li { width: 18px; height: 18px; color: var(--info); flex: none; margin-top: 2px; }
.link-need small { display: block; font-size: 11px; opacity: .75; }
.order-info .points li { font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--body); }
.back-link .li { width: 16px; height: 16px; }
.back-link:hover { color: var(--ink); }
.order-form h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.order-form h2 .li { width: 22px; height: 22px; color: var(--ink); }
.lab { display: inline-flex; align-items: center; gap: 7px; }
.lab .li { width: 16px; height: 16px; color: var(--grey); }
.order-form .total span { display: inline-flex; align-items: center; gap: 8px; }
.order-form .total .li { width: 18px; height: 18px; color: var(--grey); }
.hint.bal { display: flex; align-items: center; gap: 6px; }
.hint.bal .li { width: 14px; height: 14px; }
.hint.bal a { color: var(--ink); text-decoration: underline; }
.order-form .btn { gap: 9px; }
.order-form .btn .li { width: 18px; height: 18px; color: var(--paper); }
.li { flex: none; }
.svc-cell-name { vertical-align: top; }
.svc-cell-name > .sc-in { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.svc-cell-name .pi { width: 18px; height: 18px; margin-top: 2px; }
.svc-cell-name b { text-transform: lowercase; }

/* account page */
.acct { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.acct .li { width: 18px; height: 18px; flex: none; color: var(--grey); }
.acct-id { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.acct-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 600; text-transform: uppercase; flex: none; }
.acct-id h2 { margin: 0; font-size: 22px; }
.acct-id p { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--grey); margin-top: 2px; }
.acct-id p .li { width: 14px; height: 14px; color: var(--ok); }
.acct-rows { list-style: none; padding: 0; margin: 8px 0 0; }
.acct-rows li { display: grid; grid-template-columns: 18px auto 1fr; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acct-rows li span { color: var(--body); }
.acct-rows li b { font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-support { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); }
.acct-support .li { color: var(--ok); width: 22px; height: 22px; }
.acct-support b { display: block; font-size: 14px; font-weight: 600; }
.acct-support small { font-size: 12px; opacity: .8; }
.acct-support:hover { background: var(--ok-bg); }
.acct-api { display: grid; gap: 20px; }
.acct-head { display: flex; gap: 14px; align-items: flex-start; }
.acct-head > .li { width: 40px; height: 40px; padding: 9px; border-radius: 9px; background: var(--night); color: #fff; }
.acct-head h2 { margin: 0 0 4px; font-size: 22px; }
.acct-head p { font-size: 14px; color: var(--body); }
.acct-field { display: grid; gap: 8px; }
.acct-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.acct-label .li { width: 16px; height: 16px; }
.acct-value { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2); min-width: 0; }
.acct-value code { flex: 1; min-width: 0; font: 400 13.5px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 0; }
.acct-value.new { border-color: var(--ok); background: var(--ok-bg); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); font: 500 13px var(--display); color: var(--ink-2); cursor: pointer; }
.copy-btn .li { width: 15px; height: 15px; }
.copy-btn:hover { border-color: var(--grey); }
.acct-note { font-size: 12px; color: var(--grey); }
.acct-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.acct-actions .btn { gap: 8px; border: 0; cursor: pointer; }
.acct-actions .btn .li { width: 16px; height: 16px; color: var(--paper); }
.acct-actions small { font-size: 12px; color: var(--grey); }
.acct-code { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--night); color: var(--line); font: 400 12.5px/1.75 var(--mono); overflow-x: auto; }
@media (max-width: 1100px) { .acct { grid-template-columns: 1fr; } }


/* ---------- admin panel ---------- */
.panel-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 8px 16px; padding: 6px 10px; border-radius: 6px; background: var(--night-2); color: var(--handle); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.panel-badge .li { width: 14px; height: 14px; color: var(--handle); }
.panel-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; }
.flash .li { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.flash a { text-decoration: underline; font-weight: 600; }
.chart svg { width: 100%; height: 200px; display: block; }
.bar-sales { fill: var(--line); }
.bar-profit { fill: var(--night); }
.chart-x { display: grid; grid-template-columns: repeat(14, 1fr); font-size: 11px; color: var(--grey); margin-top: 6px; }
.chart-x span { text-align: center; white-space: nowrap; }
.chart-key { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--body); }
.chart-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k-sales { background: var(--line); } .k-profit { background: var(--night); }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child a { border-bottom: 0; }
.mini-list b { display: block; font-size: 14px; font-weight: 500; }
.mini-list small { font-size: 12px; color: var(--grey); }
.mini-list em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 14px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 600; text-transform: uppercase; flex: none; font-size: 14px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell b { display: block; }
.search-in { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); min-width: 260px; margin: 0; }
.search-in .li { width: 16px; height: 16px; color: var(--grey); }
.search-in input { border: 0; outline: 0; flex: 1; font: 400 14px var(--display); background: transparent; min-width: 0; }
.filters small { opacity: .7; font-size: 11px; }
.tbl .trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .pos, .activity .pos { color: var(--ok); }
.tbl .neg { color: var(--bad); }
.mini.danger { color: var(--bad); border-color: var(--bad-line); }
.mini.danger:hover { background: var(--bad-bg); }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2); }
.checklist .li { width: 20px; height: 20px; margin-top: 1px; }
.checklist .ok .li { color: var(--ok); }
.checklist .todo .li { color: var(--warn); }
.checklist b { display: block; font-size: 15px; font-weight: 600; }
.checklist small { font-size: 13px; color: var(--body); }
.topbar-actions .btn .li, .topbar-actions .tlink .li { width: 16px; height: 16px; vertical-align: -3px; }
.topbar-actions .btn { gap: 7px; border: 0; cursor: pointer; }
.topbar-actions .btn .li { color: var(--paper); }
.panel-body .stat-dark { background: var(--night) !important; }
.panel-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--night); }
.panel-login-card { width: min(400px, 100%); padding: 38px 34px; background: var(--paper-2); }
.pl-word { width: 200px; height: auto; margin: 0 auto 14px; filter: invert(1) contrast(1.2); }
.panel-login .panel-badge { margin: 0 0 18px; }
@media (max-width: 1000px) { .panel-cols { grid-template-columns: 1fr; } .search-in { min-width: 0; width: 100%; } }

@keyframes glow {
  50% { box-shadow: 0 0 16px 3px rgb(34 197 94 / .4); }
}
@keyframes bounce {
  0%, 60%, 100% { translate: 0 0; }
  20% { translate: 0 -12px; }
  35% { translate: 0 0; }
  45% { translate: 0 -5px; }
}
@keyframes slide { to { transform: translateX(-100%); } }

/* responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .win-body { grid-template-columns: 1fr 240px; height: 460px; }
  .win-side { display: none; }
  .hero-cat { width: 200px; margin-right: 0; }
  .cells.three { grid-template-columns: repeat(2, 1fr); }
  .faq-frame { grid-template-columns: 1fr; }
  .faq-head { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .ruler { display: none; }
  .tg-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wrap, .logo-mask { width: calc(100% - 28px); }
  .hero { padding-top: 28px; }
  .lead, .sub { font-size: 16px; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .win-props { border-left: 0; border-top: 1px solid var(--line); }
  .win-bar .tab:not(.on) { display: none; }
  h1 br { display: none; }
  .hero-top { position: relative; display: block; }
  .hero-cat { position: absolute; right: 10px; bottom: -45px; width: 78px; margin: 0; }
  .cta { grid-template-columns: 1fr; }
  .cta-copy { padding: 44px 24px 10px; }
  .cta-katana { height: 200px; mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { margin: 0; gap: 16px; }
  .cells.three, .cells.two { grid-template-columns: 1fr; }
  .cell, .head-left, .faq-head, .faq { padding-left: 24px; padding-right: 24px; }
  .head-center { padding: 60px 24px; }
  .arch { padding: 80px 24px 60px; border-radius: 300px 300px 0 0 / 120px 120px 0 0; }
  .api-frame { padding: 14px; }
  .compare th, .compare td { padding: 16px 18px; }
  .logo-track li span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- tickets ---------- */
.report-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; vertical-align: middle; border: 1px solid var(--line-2); border-radius: 5px; background: var(--card); color: var(--grey); }
.report-btn .li { width: 16px; height: 16px; }
.report-btn:hover { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.report-btn.has { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2) !important; }
.btn-ghost:hover { background: var(--card); }
.ticket-order { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-width: 0; }
.ticket-order > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ticket-order b { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-order small { font-size: 12px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-order .pi { width: 22px; height: 22px; flex: none; }
.ticket-list { list-style: none; padding: 0; margin: 0; }
.ticket-list a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; }
.ticket-list li:last-child a { border-bottom: 0; }
.ticket-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.ticket-list b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-list small { font-size: 12px; color: var(--grey); }
.ticket-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); color: var(--ink-2); }
.ticket-ico .li { width: 16px; height: 16px; }
.thread { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 12px; }
.msg { max-width: 640px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.msg.from-us { margin-left: auto; background: var(--info-bg); border-color: var(--info-line); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.msg-head b { font-size: 13px; font-weight: 600; }
.msg-head small { font-size: 12px; color: var(--grey); }
.msg p { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.reply { margin-bottom: 12px; }
.reply-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.reply-acts .btn { padding: 0 18px; }
.side-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font: 600 11px var(--display); font-style: normal; }
@media (max-width: 640px) {
  .msg { max-width: 100%; }
  .reply-acts .btn { flex: 1; }
}

/* sub headings inside a service category */
.svc-sub { margin: 0; padding: 18px 26px 8px; font: 600 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .svc-sub { padding: 14px 16px 6px; } }

/* ---------- add funds ---------- */
.funds-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); }
.funds-main { display: grid; gap: 22px; min-width: 0; }
.pimg { width: 24px; height: 24px; flex: none; display: block; }
.pay-form { gap: 12px; }
.pay-step { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 13px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pay-step span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: 0; }
.amount-in { display: flex !important; align-items: center; gap: 0 !important; height: 56px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }
.amount-in:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(154 179 245 / .25); }
.amount-in span { font: 500 26px var(--display); color: var(--grey); margin-right: 6px; }
.form .amount-in input { flex: 1; min-width: 0; height: 54px; border: 0; padding: 0; font: 600 26px var(--display); letter-spacing: -.02em; background: transparent; box-shadow: none; }
.tiles { display: grid; gap: 8px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: flex !important; align-items: center; gap: 10px !important; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); cursor: pointer; transition: border-color .12s, box-shadow .12s; min-width: 0; }
.tile[hidden] { display: none !important; }
.tile:hover { border-color: var(--grey); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(154 179 245 / .45); }
.tile .pimg { width: 28px; height: 28px; }
.tile > span { min-width: 0; display: grid; gap: 1px; }
.tile b { font: 600 14px var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { font-size: 11.5px; color: var(--grey); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-sum { margin: 6px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--body); line-height: 1.5; }
.pay-sum b { color: var(--ink); font-weight: 600; }
.coin { position: relative; display: inline-block; width: 24px; height: 24px; flex: none; }
.coin > .pimg { width: 100%; height: 100%; }
.coin-net { position: absolute; right: -4px; bottom: -3px; width: 13px; height: 13px; border-radius: 99px; background: var(--card); padding: 1px; box-shadow: 0 0 0 1px var(--line); }
.coin-net .pimg { width: 100%; height: 100%; }
.coin.big { width: 40px; height: 40px; }
.coin.big .coin-net { width: 19px; height: 19px; right: -5px; bottom: -4px; }
.pay-label { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }

/* card payments through paybis */
.card-pay-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.card-pay-top h2 { margin: 0 0 4px; }
.brands { display: flex; gap: 6px; flex-wrap: wrap; }
.brand { width: 46px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.brand .pimg { width: 20px; height: 20px; }
.card-steps { list-style: none; counter-reset: cs; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card-steps li { counter-increment: cs; display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; line-height: 1.5; color: var(--body); }
.card-steps li::before { content: counter(cs); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-2); font: 600 11px var(--display); color: var(--ink); }
.card-steps b { font: 600 14px var(--display); color: var(--ink); }
.btn-paybis { gap: 8px; height: 46px; padding: 0 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); font-size: 16px; }
.btn-paybis:hover { background: var(--paper); border-color: var(--grey); }
.paybis-logo { width: auto; height: 18px; display: inline-block; }

/* payment popup */
body.modal-open { overflow: hidden; }
.pay-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.pay-shade { position: fixed; inset: 0; background: rgb(14 14 13 / .55); backdrop-filter: blur(3px); }
.pay-card { position: relative; width: 100%; max-width: 460px; margin: auto; padding: 22px; border-radius: 14px; background: var(--paper-2); box-shadow: 0 30px 80px rgb(0 0 0 / .35); display: grid; gap: 14px; animation: pm-in .18s ease-out; }
@keyframes pm-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.pm-head { display: flex; align-items: center; gap: 14px; }
.pm-head > div { flex: 1; min-width: 0; }
.pm-head h2 { margin: 0; font-size: 20px; }
.pm-head small { font-size: 13px; color: var(--grey); }
.pm-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; color: var(--grey); }
.pm-close:hover { background: var(--paper); color: var(--ink); }
.pm-close .li { width: 22px; height: 22px; }
.pm-timer { padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.pm-timer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-timer-top > span { display: inline-flex; align-items: center; gap: 8px; }
.pm-timer-top .li { width: 18px; height: 18px; opacity: .8; }
.pm-timer b { font: 600 22px var(--mono); letter-spacing: .02em; }
.pm-timer small { font-size: 12px; opacity: .7; }
.pm-bar { height: 4px; margin-top: 10px; border-radius: 99px; background: rgb(255 255 255 / .18); overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--ok-line); border-radius: inherit; transition: width 1s linear; }
.pm-timer.over { background: var(--mist); color: var(--ink-2); }
.pm-timer.over .pm-bar { background: var(--line); }
.pm-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.pm-qr { position: relative; width: 150px; height: 150px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.pm-qr svg { width: 100%; height: 100%; display: block; }
.pm-qr-logo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 3px; border-radius: 99px; background: var(--card); }
.pm-qr-logo .pimg { width: 100%; height: 100%; }
.pm-fields { display: grid; gap: 12px; min-width: 0; }
.pm-field { display: grid; gap: 5px; min-width: 0; }
.pm-field > small { font-size: 12px; color: var(--grey); }
.pm-copy { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }
.pm-amount { flex: 1; min-width: 0; font: 600 21px var(--display); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.pm-amount em { font-style: normal; font-size: 14px; color: var(--grey); font-weight: 500; }
.pm-get { font: 500 15px var(--display); color: var(--ink-2); }
.pm-copy.addr code { flex: 1; min-width: 0; font: 400 13px var(--mono); color: var(--ink); overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
.pm-status, .pm-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pm-status .li, .pm-warn .li { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.pm-warn { padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.spin { width: 15px; height: 15px; flex: none; margin-top: 2px; border-radius: 99px; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pm-hash summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pm-hash-form { display: flex; gap: 8px; margin-top: 10px; }
.pm-hash-form input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; font: 400 13px var(--mono); background: var(--card); }
.pm-hash-form .btn { height: 38px; border: 0; cursor: pointer; }
.pm-paybis { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.pm-paybis:hover { color: var(--ink); }
.pm-paybis .paybis-logo { height: 15px; }
.pm-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 0 4px; }
.pm-check .li { width: 54px; height: 54px; color: var(--ok); }
.pm-done .big { margin: 4px 0 0; color: var(--ok); }
.pm-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--card); }
.pay-card .flash { margin: 0; }
@media (max-width: 980px) {
  .funds-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-steps { grid-template-columns: 1fr; }
  .pay-modal { padding: 0; place-items: end center; }
  .pay-card { max-width: none; border-radius: 16px 16px 0 0; padding: 18px; }
  .pm-grid { grid-template-columns: 1fr; justify-items: center; }
  .pm-fields { width: 100%; }
  .pm-qr { width: 170px; height: 170px; }
}
/* network tiles: two per row so names and details fit */
.tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile.net small { white-space: normal; }
.brand { width: 52px; height: 34px; }
.brand .pimg { width: 28px; height: 28px; }
@media (max-width: 640px) { .tiles.three { grid-template-columns: 1fr; } }
.tbl td.acts .tlink { font-size: 14px; }
@media (max-width: 640px) {
  .pay-modal { place-items: start center; }
  .pay-card { border-radius: 0; min-height: 100%; align-content: start; }
}

/* add funds: crypto / card tabs in one card */
.pay-panel { padding-top: 18px; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.pay-tabs label { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 7px; cursor: pointer; font: 600 15px var(--display); color: var(--grey); transition: background .12s, color .12s; }
.pay-tabs label:hover { color: var(--ink); }
.tab-icons { display: inline-flex; }
.tab-icons .pimg { width: 20px; height: 20px; border-radius: 99px; background: var(--card); box-shadow: 0 0 0 2px var(--paper); }
.tab-icons .pimg + .pimg { margin-left: -6px; }
.pay-panel:has(#tab-crypto:checked) .pay-tabs label[for="tab-crypto"],
.pay-panel:has(#tab-card:checked) .pay-tabs label[for="tab-card"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08), 0 0 0 1px var(--line); }
.pay-panel:has(#tab-crypto:focus-visible) label[for="tab-crypto"], .pay-panel:has(#tab-card:focus-visible) label[for="tab-card"] { outline: 2px solid var(--focus); }
.pane-card { display: none; }
.pay-panel:has(#tab-card:checked) .pane-card { display: grid; gap: 18px; }
.pay-panel:has(#tab-card:checked) .pane-crypto { display: none; }
.pay-form .pay-step:first-of-type { margin-top: 0; }
.pane-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font: 500 14px var(--display); color: var(--ink); }
.method .pimg { width: 26px; height: 26px; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.how li:last-child { border-bottom: 0; }
.how li::before { content: counter(how); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--paper); font: 600 12px var(--display); }
.how b { font: 600 14px var(--display); color: var(--ink); }
.how span { font-size: 13.5px; line-height: 1.5; color: var(--body); }
.pane-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pane-actions .btn { justify-content: center; height: 46px; font-size: 16px; cursor: pointer; }
.pane-card .hint { margin: 0; }
.funds-side { display: grid; gap: 22px; min-width: 0; }
.fund-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fund-facts li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.fund-facts .li { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink-2); }
.fund-facts b { display: block; font: 600 14px var(--display); color: var(--ink); }
.fund-facts a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
@media (max-width: 640px) {
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pane-actions { grid-template-columns: 1fr; }
  .pay-tabs label { font-size: 14px; gap: 8px; }
}
.funds-side .fund-facts { grid-template-columns: 1fr; }
.key-form input[type="password"] { flex: 1 1 200px; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); font: 400 14px var(--display); }
.key-form .mini { margin-left: 0; }

/* orders: filter bar */
.order-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 10px; }
.order-filter .search-in { flex: 1 1 240px; min-width: 200px; }
.of-field { display: grid; gap: 4px; font-size: 12px; color: var(--grey); }
.of-field input, .of-field select { height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font: 400 14px var(--display); color: var(--ink); }
.order-filter .btn { height: 38px; border: 0; cursor: pointer; }
.of-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.of-ranges a { padding: 4px 10px; border-radius: 99px; font-size: 13px; color: var(--body); border: 1px dashed var(--line-2); }
.of-ranges a[aria-current] { border-style: solid; border-color: var(--ink); color: var(--ink); }
.of-head { border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 640px) {
  .of-field { flex: 1 1 45%; }
  .of-field input, .of-field select { width: 100%; }
}
.admin-filter { margin: 0; flex: 1 1 520px; justify-content: flex-end; }
.admin-filter .search-in { min-width: 220px; }
.order-filter > .tlink { align-self: center; font-size: 14px; }

/* sound on / off in the top bar */
.sound-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-2); cursor: pointer; }
.sound-btn:hover { border-color: var(--grey); color: var(--ink); }
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn .mute { display: none; }
.sound-btn.off { color: var(--grey); }
.sound-btn.off .wave { display: none; }
.sound-btn.off .mute { display: inline; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
/* orders: one calm block, no divider line, solid chips like the status tabs */
.of-head { border-top: 0; padding-top: 0; margin-top: 4px; }
.of-ranges { margin-bottom: 18px; }
.of-ranges a { border-style: solid; border-color: var(--line); background: var(--paper); }
.of-ranges a:hover { border-color: var(--line-2); color: var(--ink); }

/* dashboard welcome banner with the mascot */
.dash-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 190px; padding: 30px 34px; margin-bottom: 22px; background: var(--paper-2); }
.dash-hero-text { position: relative; z-index: 1; max-width: 520px; }
.dash-hero h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
.dash-hero p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--body); }
.dash-hero p b { color: var(--ink); }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-hero-actions .btn { height: 42px; padding: 0 18px; font-size: 16px; }
.dash-cat { position: absolute; right: 40px; bottom: -70px; width: 230px; height: auto; pointer-events: none; transform: rotate(-4deg); transition: transform .3s ease; }
.dash-hero:hover .dash-cat { transform: rotate(-1deg) translateY(-6px); }
@media (max-width: 900px) { .dash-cat { width: 180px; right: 10px; bottom: -60px; opacity: .9; } }
@media (max-width: 640px) {
  .dash-hero { padding: 22px 20px 26px; min-height: 0; }
  .dash-hero h2 { font-size: 22px; padding-right: 90px; }
  .dash-cat { width: 120px; right: -6px; bottom: auto; top: 6px; }
}
@media (max-width: 640px) {
  .dash-cat { width: 92px; right: 4px; top: 8px; transform: rotate(-4deg); }
  .dash-hero h2 { padding-right: 84px; }
  .dash-hero p { padding-right: 0; }
}
@media (max-width: 640px) {
  /* phone: the cat sits next to the buttons, not over the text */
  .dash-cat { width: 104px; top: auto; bottom: -30px; right: 2px; }
  .dash-hero h2 { padding-right: 0; }
  .dash-hero-actions { padding-right: 96px; }
}
.tbl td small { white-space: nowrap; }
.tbl td.svc-cell-name small, .tbl td .trunc { white-space: normal; }

/* ---------- phones: order rows become cards ---------- */
.tbl-orders .m-id { display: none; }
@media (max-width: 640px) {
  .table-scroll:has(.tbl-orders) { overflow: visible; }
  .tbl-orders, .tbl-orders tbody { display: block; width: 100%; }
  .tbl-orders thead { display: none; }
  .tbl-orders tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    grid-template-areas: "svc svc svc act" "link link link link" "qty charge status status";
    gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .tbl-orders.compact tr { grid-template-areas: "svc svc svc svc" "link link link link" "qty charge status status"; }
  .tbl-orders tr:last-child { border-bottom: 0; }
  .tbl-orders td { display: block; padding: 0; border: 0; min-width: 0; }
  .tbl-orders .c-id { display: none; }
  .tbl-orders .m-id { display: inline; }
  .tbl-orders .svc-cell-name { grid-area: svc; }
  .tbl-orders .svc-cell-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: 14.5px; }
  .tbl-orders td.link { grid-area: link; max-width: none; padding-left: 28px; font-size: 13px; }
  .tbl-orders td.link a { color: var(--grey); }
  .tbl-orders .c-qty { grid-area: qty; }
  .tbl-orders .c-charge { grid-area: charge; }
  .tbl-orders .c-qty, .tbl-orders .c-charge { font-size: 14px; font-weight: 500; color: var(--ink); }
  .tbl-orders .c-qty { padding-left: 28px; }
  .tbl-orders .c-qty::before, .tbl-orders .c-charge::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 400; color: var(--grey); text-transform: lowercase; margin-bottom: 1px; }
  .tbl-orders .c-qty small, .tbl-orders .c-charge small { font-weight: 400; }
  .tbl-orders .c-status { grid-area: status; justify-self: end; align-self: end; }
  .tbl-orders td.acts { grid-area: act; align-self: start; justify-self: end; }
  .tbl-orders td.acts .report-btn { margin-left: 0; }
  /* orders page filters: one swipeable row of status tabs, full width apply */
  .of-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .of-head .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
  .of-head .filters::-webkit-scrollbar { display: none; }
  .of-head .filters a { flex: none; }
  .order-filter .btn { flex: 1 1 100%; justify-content: center; }
  .order-filter > .tlink { flex: 1 1 100%; text-align: center; }
}
@media (max-width: 640px) {
  .tbl-orders { min-width: 0; }
  .tbl-orders tr { width: 100%; }
  .tbl-orders .svc-cell-name b { white-space: normal; }
  .tbl-orders td.link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
  .tbl-orders .c-qty, .tbl-orders .c-charge { align-self: start; }
  .tbl-orders .c-status { align-self: center; }
  .tbl-orders tr { padding: 16px 0; }
  /* room for the floating telegram button so it never covers the last row */
  .app-content { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .of-head .filters { min-width: 0; max-width: calc(100% + 8px); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* api: coming soon */
.soon-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font: 600 11px var(--display); letter-spacing: .02em; }
.api-soon { padding: 18px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--paper); }
.api-soon p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.api-soon-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.api-soon-actions .btn { gap: 8px; }
.api-soon-actions .btn .li { width: 16px; height: 16px; }
.nav-soon { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .6); font: 600 10px var(--display); font-style: normal; letter-spacing: .03em; }
.side-nav a[aria-current] .nav-soon { background: rgb(0 0 0 / .08); color: var(--grey); }


/* ---------- one button system for the whole site ---------- */
.btn { font-weight: 500; gap: 8px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--ink-hover); }
.btn-light:hover, .btn-ghost:hover, .btn-paybis:hover { background: var(--card); border-color: var(--grey); }
.btn-ghost, .btn-paybis { background: transparent; color: var(--ink); border: 1px solid var(--line-2) !important; }
.btn .li { width: 16px; height: 16px; }
/* inside the account pages every button has the same size */
.app-body .btn { height: var(--btn-h); padding: 0 18px; font-size: 15px; border-radius: var(--r); }
.app-body .btn-sm { height: var(--btn-h-sm); padding: 0 14px; font-size: 14px; }
.app-body .form .btn, .app-body .calc .btn, .app-body .pane-actions .btn, .app-body .pm-hash-form .btn,
.app-body .order-filter .btn, .app-body .dash-hero-actions .btn, .app-body .reply-acts .btn { height: var(--btn-h); font-size: 15px; }
.app-body .pm-hash-form .btn, .app-body .order-filter .btn { height: 38px; }
/* small outline buttons and icon buttons share one look */
.mini, .copy-btn, .mini-in { border-radius: var(--r-sm); border-color: var(--line-2); }
.mini, .copy-btn { background: var(--card); color: var(--ink-2); font: 500 13px var(--display); transition: border-color .15s, background .15s; }
.mini:hover, .copy-btn:hover, .report-btn:hover, .sound-btn:hover { border-color: var(--grey); color: var(--ink); }
.report-btn { border-radius: var(--r-sm); }
.report-btn.has, .report-btn:hover { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.mini.danger { color: var(--bad); border-color: var(--bad-line); }
.mini.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
/* focus ring and form fields */
.app-body input:focus, .app-body select:focus, .app-body textarea:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(154 179 245 / .25); }
/* status colours used everywhere */
.pill.ok, .flash.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad, .flash.error { background: var(--bad-bg); color: var(--bad); }
.pill.run { background: var(--info-bg); color: var(--info); }
.pill.wait, .pill.off { background: var(--mist); }
.flash.ok { border-color: var(--ok-line); } .flash.error { border-color: var(--bad-line); } .flash.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pos, .tbl .pos, .activity .pos { color: var(--ok); }

/* ---------- homepage product shot: a small copy of the real dashboard ---------- */
.win.mk { display: grid; grid-template-columns: 200px 1fr; height: 560px; background: var(--paper); font-family: var(--display); color: var(--ink); text-align: left; }
.mk svg { width: 15px; height: 15px; flex: none; }
.mk-side { background: var(--night); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; }
.mk-logo { width: 118px; height: auto; margin: 2px 6px 4px; }
.mk-bal { display: grid; gap: 4px; padding: 12px; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r); background: var(--night-2); }
.mk-bal small { font-size: 10.5px; color: var(--handle); }
.mk-bal b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.mk-bal span { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 5px 9px; border-radius: var(--r-sm); background: var(--paper); color: var(--night); font-size: 11px; font-weight: 500; }
.mk-bal span svg { width: 12px; height: 12px; }
.mk-nav { display: grid; gap: 2px; }
.mk-nav span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); font-size: 13px; color: rgb(255 255 255 / .72); }
.mk-nav span.on { background: var(--mist); color: var(--night); }
.mk-main { display: flex; flex-direction: column; min-width: 0; }
.mk-top { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mk-top b { margin-right: auto; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.mk-sound { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--ink-2); }
.mk-sound svg { width: 14px; height: 14px; }
.mk-pill { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); font-size: 12px; font-weight: 600; }
.mk-content { padding: 16px 20px; display: grid; gap: 12px; overflow: hidden; }
.mk-hero { position: relative; overflow: hidden; display: flex; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); background: var(--card); min-height: 104px; }
.mk-hero b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.mk-hero small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--body); }
.mk-hero em { font-style: normal; font-weight: 600; color: var(--ink); }
.mk-hero img { position: absolute; right: 26px; bottom: -46px; width: 118px; height: auto; transform: rotate(-4deg); }
.mk-btns { display: flex; gap: 6px; margin-top: 10px; }
.mk-btn { padding: 6px 12px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 500; }
.mk-btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mk-stats div { padding: 12px; border: 1px solid var(--line-2); background: var(--card); display: grid; gap: 6px; }
.mk-stats small { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--grey); }
.mk-stats small svg { width: 13px; height: 13px; color: var(--ink-2); }
.mk-stats b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.mk-stats .dark { background: var(--night); border-color: var(--night); color: #fff; }
.mk-stats .dark small, .mk-stats .dark small svg { color: var(--handle); }
.mk-orders { border: 1px solid var(--line-2); background: var(--card); padding: 12px 14px 4px; }
.mk-oh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mk-oh b { font-size: 14px; font-weight: 500; }
.mk-oh span { font-size: 11.5px; color: var(--body); }
.mk-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 60px 52px 86px 24px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.mk-id { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.mk-svc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-svc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-svc svg { width: 14px; height: 14px; }
.mk-row .pill { justify-self: start; font-size: 10.5px; padding: 3px 8px; }
.mk-report { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--grey); }
.mk-report svg { width: 12px; height: 12px; }
@media (max-width: 980px) {
  .win.mk { grid-template-columns: 1fr; height: auto; }
  .mk-side { display: none; }
}
@media (max-width: 640px) {
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-id, .mk-qty, .mk-charge, .mk-report { display: none; }
  .mk-hero img { width: 84px; right: 6px; bottom: -34px; }
  .mk-hero b { padding-right: 70px; }
}

/* ---------- account panel in the homepage style: light paper, hairline grid, black only for the active item and buttons ---------- */
.app-body {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px; background-attachment: fixed;
}
.topbar { background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom-color: var(--line-2); }
.side { background: var(--paper-2); color: var(--ink); border-right: 1px solid var(--line-2); }
.side-logo img { width: 140px; }
.side-balance { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.side-balance small { color: var(--grey); }
.side-balance b { color: var(--ink); }
.side-add { background: var(--ink); color: var(--paper); border-radius: var(--r-sm); }
.side-add:hover { background: var(--ink-hover); }
.side-nav a, .side-foot a, .side-foot button { color: var(--body); }
.side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--mist); color: var(--ink); }
.side-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.side-foot { border-top-color: var(--line); }
.side-close { color: var(--grey); }
.nav-soon { background: var(--mist); color: var(--grey); }
.side-nav a[aria-current] .nav-soon { background: rgb(255 255 255 / .15); color: var(--paper); }
.panel-badge { background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); }
.panel-badge .li { color: var(--ink-2); }
.side-count { box-shadow: 0 0 0 1px var(--warn-line); }

/* homepage preview follows the same light sidebar */
.mk-side { background: var(--paper-2); color: var(--ink); border-right: 1px solid var(--line-2); }
.mk-bal { background: var(--card); border-color: var(--line-2); }
.mk-bal small { color: var(--grey); }
.mk-bal span { background: var(--ink); color: var(--paper); }
.mk-nav span { color: var(--body); }
.mk-nav span.on { background: var(--ink); color: var(--paper); }
.win.mk { background: var(--paper); }
.mk-main { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 60px 60px; }

/* homepage: payment logos in the "pay your way" tile, coming soon tag in headings */
.pay-ficons { flex-wrap: wrap; }
.pay-ficons .ficon img { width: 22px; height: 22px; }
h2 .soon-tag { font-size: 13px; vertical-align: 6px; letter-spacing: 0; }
.pay-ficons { gap: 6px; flex-wrap: nowrap; }
.pay-ficons .ficon { width: 36px; height: 36px; }
.pay-ficons .ficon img { width: 20px; height: 20px; }


/* ---------- night mode: same palette names, dark values. toggled from the top bar, saved per browser ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211; --paper-2: #171716; --sand: #1c1c1a; --mist: #20201e; --card: #1a1a18;
  --line: #2b2b28; --line-2: #3a3a36; --handle: #5c5c57;
  --ink: #f1f1ec; --ink-2: #dddcd6; --body: #b3b3ac; --grey: #8b8b85; --ink-hover: #d6d6d0;
  --night: #0a0a09; --night-2: #232321;
  --ok: #7fd49a; --ok-bg: #15291c; --ok-line: #24452f;
  --warn: #e7c46f; --warn-bg: #2d240f; --warn-line: #4a3c18;
  --bad: #f29b9b; --bad-bg: #331717; --bad-line: #522626;
  --info: #9fb7f5; --info-bg: #172036; --info-line: #263459;
  --focus: #6f8fe0;
  --grid: rgb(255 255 255 / .035);
}
/* dark logos and black brand marks would vanish on dark: flip them */
html[data-theme="dark"] .side-logo img, html[data-theme="dark"] .nav-logo img, html[data-theme="dark"] .footer-logo img, html[data-theme="dark"] .mk-logo { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .pi-x, html[data-theme="dark"] .pi-tiktok, html[data-theme="dark"] .pi-threads, html[data-theme="dark"] .win svg.ic-x, html[data-theme="dark"] .win svg.ic-tiktok { fill: var(--ink); }
html[data-theme="dark"] img[src$="/applepay.svg"], html[data-theme="dark"] img[src$="/revolut.svg"] { filter: invert(1); }
/* the qr code must stay black on white to scan */
html[data-theme="dark"] .pm-qr { background: #fff; border-color: #fff; }
/* the dark balance card stays the accent: a touch lighter than the page */
html[data-theme="dark"] .stat-dark, html[data-theme="dark"] .mk-stats .dark { background: var(--night-2); border-color: var(--line-2); }
html[data-theme="dark"] .side-shade, html[data-theme="dark"] .pay-shade { background: rgb(0 0 0 / .6); }
html[data-theme="dark"] body { background-color: var(--paper); }
html[data-theme="dark"] .flash.ok, html[data-theme="dark"] .flash.error, html[data-theme="dark"] .flash.warn { border-width: 1px; }
.theme-btn svg .sun { display: none; }
html[data-theme="dark"] .theme-btn svg .sun { display: inline; }
html[data-theme="dark"] .theme-btn svg .moon { display: none; }
html[data-theme="dark"] .stat-dark { background: var(--night-2) !important; border-color: var(--line-2); color: var(--ink); }
html[data-theme="dark"] .stat-dark .h { background: var(--line-2) !important; }
html[data-theme="dark"] .stat-dark .stat-top .li { background: var(--line); color: var(--ink); }
html[data-theme="dark"] .stat-dark .btn-light { background: var(--ink); color: var(--paper); }
/* no colour fade while switching modes */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
html[data-theme="dark"] img[src$="/paybis.svg"] { filter: invert(1) hue-rotate(180deg); }

/* ---------- reviews ---------- */
.stars { color: var(--ink); letter-spacing: 2px; font-size: 16px; line-height: 1; }
.stars i { font-style: normal; color: var(--line-2); }
.rv-score { display: block; margin-top: 8px; font-size: 15px; letter-spacing: 0; color: var(--body); }
.rv-score i { font-style: normal; color: var(--line-2); }
.review .stars { margin-bottom: -10px; }
.review figcaption span { font-size: 14px; }
.review-empty { display: grid; justify-items: start; gap: 12px; padding: 40px; }
.review-empty .stars { font-size: 22px; }
.review-empty p { max-width: 34em; color: var(--body); }
.review-card .panel-head h2 { margin-bottom: 2px; }
.review-form { gap: 12px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-foot small { font-size: 12.5px; color: var(--grey); }
/* stars input: pure css, highlights up to the hovered or picked star */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--ink); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--focus); border-radius: 4px; }
.rv-list { display: grid; gap: 0; }
.rv-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; }
.rv-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-top small { color: var(--grey); font-size: 12.5px; }
.rv-item p { margin: 8px 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.rv-acts { display: flex; gap: 6px; }
.rv-acts .mini { margin: 0; }

/* phone header: logo and links always on one line */
.nav-cta { flex-wrap: nowrap; white-space: nowrap; align-items: center; }
.nav-cta form { display: flex; margin: 0; }
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-logo img { width: 112px; height: auto; }
  .nav-cta { gap: 14px; }
  .nav-cta form { display: none; } /* log out lives in the dashboard menu on phones */
}
@media (max-width: 360px) {
  .nav-logo img { width: 96px; }
  .nav-cta { gap: 10px; }
  .nav-cta a { font-size: 14px !important; }
}

/* comparison table: fits a phone, all three columns visible */
@media (max-width: 640px) {
  .compare { min-width: 0; table-layout: fixed; font-size: 14px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare th:first-child, .compare td:first-child { width: 48%; padding-left: 16px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 26%; }
  .compare th { font-size: 12px; line-height: 1.3; }
  .compare .meh { font-size: 12px; }
}
.pm-qr, .pm-qr-logo { background: #fff; }

/* ---------- payment popup, simple version ---------- */
.pay-card { max-width: 400px; gap: 16px; padding: 22px 22px 18px; }
.pm-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.pm-qr { width: 190px; height: 190px; margin: 2px auto 0; padding: 12px; }
.pm-qr-logo { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.pm-rows { display: grid; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; }
.pm-row + .pm-row { border-top: 1px solid var(--line); }
.pm-row small { font-size: 12px; color: var(--grey); }
.pm-row .pm-amount { font: 600 18px var(--display); white-space: nowrap; }
.pm-row code { font: 400 12.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; word-break: break-all; line-height: 1.4; }
.pm-row .copy-btn { padding: 6px 10px; }
.pm-timer { padding: 0; border-radius: 0; background: none; color: var(--ink-2); }
.pm-timer.over { background: none; color: var(--body); }
.pm-timer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.pm-timer-top > span { display: inline-flex; align-items: center; gap: 8px; }
.pm-timer-top .spin { margin-top: 0; }
.pm-timer-top .li { width: 16px; height: 16px; }
.pm-timer b { font: 500 13.5px var(--mono); color: var(--ink); }
.pm-bar { height: 3px; margin-top: 8px; background: var(--line); }
.pm-bar i { background: var(--ink); }
.pm-timer.over .pm-bar i { background: var(--line-2); }
.pm-note { margin: -6px 0 0; font-size: 12.5px; color: var(--grey); }
.pm-hash { padding-top: 12px; border-top: 1px solid var(--line); }
.pm-hash summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--body); text-decoration: none; }
.pm-hash summary::-webkit-details-marker { display: none; }
.pm-hash summary > span { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pm-hash summary > span:hover, .pm-card:hover { color: var(--ink); }
.pm-card { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .pay-card { max-width: none; }
  .pm-qr { width: 180px; height: 180px; }
}

/* service list: an opened service is marked by a black edge, not a grey fill */
.svc-row summary:hover { background: color-mix(in srgb, var(--ink) 3%, var(--card)); }
.svc-row[open] summary { background: var(--card); box-shadow: inset 3px 0 0 var(--ink); }
.svc-row[open] .svc-detail { background: var(--card); border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--ink); }
.svc-row[open] { border-bottom-color: var(--line-2); }
.svc-detail .spec { background: var(--paper); }
/* place order: the platform logo sits in a clean outlined box like the other icons, no grey fill */
.order-plat { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }

.pay-card > .pm-card { justify-self: center; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; text-align: center; font-size: 13px; }


/* own captcha on login and sign up */
.captcha { display: grid; gap: 8px; }
.captcha-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-img { width: 200px; height: 64px; border: 1px solid var(--line-2); border-radius: var(--r); background: #f8f8f5; user-select: none; -webkit-user-drag: none; }
.captcha-new { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--ink-2); cursor: pointer; }
.captcha-new:hover { border-color: var(--grey); color: var(--ink); }
.captcha-new svg { width: 18px; height: 18px; }
.captcha input[name="captcha"] { text-transform: uppercase; letter-spacing: .25em; font-family: var(--mono); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* clickable rows (faq questions, service rows, payment tiles): no text cursor or text selection when clicked */
summary, .tile, .pay-tabs label, .captcha-new, .sound-btn, .star-input label {
  user-select: none; -webkit-user-select: none;
  caret-color: transparent;
  -webkit-tap-highlight-color: transparent;
}
summary:focus { outline: none; }
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* no blinking text cursor on normal text anywhere, only where you can type */
html, body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }

/* terms and privacy */
.legal { padding: 40px 0 20px; }
.legal-box { max-width: 760px; margin: 0 auto; padding: 44px 48px; background: var(--paper-2); }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; }
.legal-date { margin-top: 6px; font-size: 14px; color: var(--grey); }
.legal-intro { margin: 22px 0 8px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.legal section { padding: 22px 0 4px; border-top: 1px solid var(--line); margin-top: 18px; }
.legal h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.legal h2 span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--paper); font: 600 12px var(--display); flex: none; }
.legal section p { margin: 0 0 12px 34px; font-size: 15.5px; line-height: 1.65; color: var(--body); }
.legal-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }
.legal-foot a, .auth-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--grey); text-align: center; }
@media (max-width: 640px) {
  .legal-box { padding: 28px 20px; }
  .legal h1 { font-size: 30px; }
  .legal section p { margin-left: 0; }
}

/* ---------- seo pages: platforms and single services ---------- */
.seo { padding: 30px 0 40px; display: grid; gap: 22px; }
.seo-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.seo-crumbs a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.seo-crumbs b { color: var(--ink-2); font-weight: 500; }
.seo-head { display: flex; gap: 16px; align-items: flex-start; }
.seo-ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.seo-ico .pi { width: 28px; height: 28px; }
.seo-head h1 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.15; }
.seo-head p { margin-top: 8px; color: var(--body); font-size: 16px; line-height: 1.6; max-width: 46em; }
.seo-head small { display: block; font-size: 13px; color: var(--grey); margin-bottom: 4px; }
.seo-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.seo-tags i { font-style: normal; font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--mist); color: var(--ink-2); }
.seo-cat { padding: 22px 26px; }
.seo-cat h2 { font-size: 18px; margin-bottom: 10px; }
.seo-cat ul { list-style: none; margin: 0; padding: 0; }
.seo-cat li a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.seo-cat li a:hover { color: var(--ink); }
.seo-cat li a em { font-style: normal; font-weight: 600; white-space: nowrap; color: var(--ink); }
.seo-cat li a em small { font-weight: 400; color: var(--grey); }
.seo-svc { padding: 30px; display: grid; gap: 24px; }
.seo-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.seo-facts div { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.seo-facts dt { font-size: 12.5px; color: var(--grey); }
.seo-facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.seo-facts dd small { font-size: 12px; font-weight: 400; color: var(--grey); }
.seo-desc h2 { font-size: 18px; margin-bottom: 8px; }
.seo-desc p { margin: 0 0 6px; color: var(--body); font-size: 15px; line-height: 1.6; }
.seo-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seo-cta .btn { height: 46px; padding: 0 26px; font-size: 16px; border-radius: var(--r); }
.seo-cta span { font-size: 13.5px; color: var(--grey); }
.seo-more { color: var(--body); }
.seo-more a, .seo-platforms a { color: var(--ink); }
.seo-platforms { padding: 10px 0 40px; }
.seo-platforms h2 { font-size: 20px; margin-bottom: 12px; }
.seo-platforms ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.seo-platforms li a { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.seo-platforms li a:hover { border-color: var(--grey); }
.seo-platforms .pi { width: 20px; height: 20px; grid-row: span 2; }
.seo-platforms span { font-weight: 500; }
.seo-platforms small { font-size: 12.5px; color: var(--grey); }
@media (max-width: 640px) {
  .seo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-head h1 { font-size: 26px; }
  .seo-svc { padding: 20px; }
}

/* admin wallets page */
.addr-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.addr-cell a { font-size: 12.5px; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }
.addr-cell .copy-btn { flex: none; padding: 4px 9px; }
.wallets-tbl td { vertical-align: middle; }
.wallets-note { margin-top: 12px; }
.stat-warn { border-color: var(--warn-line) !important; background: var(--warn-bg) !important; }

/* activity log */
.act-tbl td { vertical-align: top; }
.act-detail { display: block; max-width: 420px; overflow-wrap: anywhere; font-size: 13.5px; color: var(--ink-2); }
.act-tbl td small.mono { display: block; color: var(--grey); }

/* red count badges (tickets waiting, unread replies) */
.side-count.red { background: #e5484d; color: #fff; box-shadow: none; }
.ticket-list .side-count.red { margin-left: auto; margin-right: 8px; }

/* whole table row opens the customer or ticket */
.tbl tr.click-row { position: relative; cursor: pointer; }
.tbl tr.click-row:hover td { background: var(--mist); }
.tbl tr.click-row a.row-link::after { content: ''; position: absolute; inset: 0; }
.tbl tr.click-row td a:not(.row-link) { position: relative; z-index: 1; }
.tbl tr.needs-reply td:first-child { box-shadow: inset 3px 0 0 #e5484d; }

/* customer page */
.cust-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cust-head .av-lg { width: 56px; height: 56px; font-size: 24px; flex: none; display: grid; place-items: center; border-radius: 99px; }
.cust-id { flex: 1 1 240px; min-width: 0; }
.cust-id h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.cust-id .hint { margin: 4px 0 0; }
.cust-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-acts .mini { display: inline-flex; align-items: center; gap: 6px; }
.cust-acts .mini svg { width: 15px; height: 15px; }
.cust-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cust-main, .cust-side { display: grid; gap: 18px; min-width: 0; }
.cust-main > .stats { margin: 0; }
.cust-tickets { display: grid; gap: 10px; }
.cust-ticket { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cust-ticket.needs-reply { border-color: #e5484d; }
.cust-ticket summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.cust-ticket summary::-webkit-details-marker { display: none; }
.ct-sub { flex: 1; min-width: 0; display: grid; }
.ct-sub small { color: var(--grey); }
.cust-ticket .thread, .cust-ticket .reply { margin: 0 14px 12px; }
.cust-ticket .ct-status { display: block; margin: 0 14px 14px; }
@media (max-width: 1100px) { .cust-grid { grid-template-columns: 1fr; } }

/* ===== admin overview (shopify style) ===== */
.ov-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ov-range { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.ov-range a { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; color: var(--grey); white-space: nowrap; text-decoration: none; }
.ov-range a[aria-current] { background: var(--ink); color: var(--paper); }
.ov-live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; }
.ov-live i { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.ov-main { padding-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 -8px 8px; }
.kpi { position: relative; display: grid; gap: 3px; align-content: start; padding: 14px 16px; border-radius: 12px; color: inherit; text-decoration: none; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--mist); }
.kpi.on { background: var(--mist); }
.kpi small { font-size: 13px; color: var(--grey); text-decoration: underline dotted var(--line-2); text-underline-offset: 4px; }
.kpi b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.kpi-main b { font-size: 30px; }
.kpi-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--grey); }
.kpi .spark { position: absolute; right: 14px; top: 16px; width: 70px; height: 26px; }
.spark path { fill: none; stroke: var(--info); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.dl { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 600; font-size: 12.5px; }
.dl svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl.up { color: var(--ok); }
.dl.down { color: var(--bad); }
.dl.flat { color: var(--grey); }
.ov-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.ov-chart-head h2 { margin: 0; }
.ov-chart-head h2 small { font-size: 13px; font-weight: 400; color: var(--grey); margin-left: 6px; }

/* line chart */
.lc-plot { position: relative; padding-left: 52px; }
.lc-plot svg { display: block; width: 100%; height: 240px; overflow: visible; }
.lc-y { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--grey); text-align: right; }
.lc-y span { transform: translateY(-50%); }
.lc-y span:first-child { transform: translateY(0); }
.lc-y span:last-child { transform: translateY(-80%); }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.lc-line { fill: none; stroke: var(--info); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.lc-prev { fill: none; stroke: var(--info); stroke-width: 1.6; stroke-dasharray: 2 4; opacity: .6; vector-effect: non-scaling-stroke; }
.lc-g1 { stop-color: var(--info); stop-opacity: .16; }
.lc-g2 { stop-color: var(--info); stop-opacity: 0; }
.lc-hit { fill: transparent; }
.lc-hit:hover { fill: var(--ink); fill-opacity: .04; }
.lc-x { display: flex; justify-content: space-between; padding-left: 52px; margin-top: 8px; font-size: 12px; color: var(--grey); }
.lc-key { display: flex; justify-content: center; gap: 22px; margin-top: 10px; font-size: 12.5px; color: var(--grey); }
.lc-key span { display: inline-flex; align-items: center; gap: 7px; }
.lc-key i { width: 18px; height: 0; border-top: 2px solid var(--info); }
.lc-key i.k-prev { border-top: 2px dotted var(--info); opacity: .7; }

/* action tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.tile:hover { background: var(--mist); }
.tile-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--mist); }
.tile-ico svg { width: 18px; height: 18px; }
.tile b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tile small { font-size: 12.5px; color: var(--grey); }
.tile > span:nth-child(3) { flex: 1; min-width: 0; }
.tile-chev { width: 16px; height: 16px; margin-left: auto; color: var(--grey); flex: none; }
.tile-warn .tile-ico { background: var(--bad-bg); color: var(--bad); }
.tile-warn b { color: var(--bad); }

/* chain and coin icons */
.chain-ico, .coin-ico { width: 20px; height: 20px; border-radius: 99px; flex: none; display: block; }
.paywith { display: inline-flex; align-items: center; gap: 8px; }
.paywith small { display: block; color: var(--grey); }
.pw-icons { display: inline-flex; align-items: center; }
.pw-icons img + img { margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.acct-rows .pw-icons { margin-right: 2px; }

/* deposits by network */
.net-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.net-bars li { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 4px 12px; }
.net-bars li small { grid-column: 1 / -1; display: none; }
.nb-bar { height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.nb-bar i { display: block; height: 100%; border-radius: 99px; background: var(--info); }
.nb-bar i.w2 { width: 2%; }
.nb-bar i.w4 { width: 4%; }
.nb-bar i.w6 { width: 6%; }
.nb-bar i.w8 { width: 8%; }
.nb-bar i.w10 { width: 10%; }
.nb-bar i.w12 { width: 12%; }
.nb-bar i.w14 { width: 14%; }
.nb-bar i.w16 { width: 16%; }
.nb-bar i.w18 { width: 18%; }
.nb-bar i.w20 { width: 20%; }
.nb-bar i.w22 { width: 22%; }
.nb-bar i.w24 { width: 24%; }
.nb-bar i.w26 { width: 26%; }
.nb-bar i.w28 { width: 28%; }
.nb-bar i.w30 { width: 30%; }
.nb-bar i.w32 { width: 32%; }
.nb-bar i.w34 { width: 34%; }
.nb-bar i.w36 { width: 36%; }
.nb-bar i.w38 { width: 38%; }
.nb-bar i.w40 { width: 40%; }
.nb-bar i.w42 { width: 42%; }
.nb-bar i.w44 { width: 44%; }
.nb-bar i.w46 { width: 46%; }
.nb-bar i.w48 { width: 48%; }
.nb-bar i.w50 { width: 50%; }
.nb-bar i.w52 { width: 52%; }
.nb-bar i.w54 { width: 54%; }
.nb-bar i.w56 { width: 56%; }
.nb-bar i.w58 { width: 58%; }
.nb-bar i.w60 { width: 60%; }
.nb-bar i.w62 { width: 62%; }
.nb-bar i.w64 { width: 64%; }
.nb-bar i.w66 { width: 66%; }
.nb-bar i.w68 { width: 68%; }
.nb-bar i.w70 { width: 70%; }
.nb-bar i.w72 { width: 72%; }
.nb-bar i.w74 { width: 74%; }
.nb-bar i.w76 { width: 76%; }
.nb-bar i.w78 { width: 78%; }
.nb-bar i.w80 { width: 80%; }
.nb-bar i.w82 { width: 82%; }
.nb-bar i.w84 { width: 84%; }
.nb-bar i.w86 { width: 86%; }
.nb-bar i.w88 { width: 88%; }
.nb-bar i.w90 { width: 90%; }
.nb-bar i.w92 { width: 92%; }
.nb-bar i.w94 { width: 94%; }
.nb-bar i.w96 { width: 96%; }
.nb-bar i.w98 { width: 98%; }
.nb-bar i.w100 { width: 100%; }

/* referral mini list and live feed */
.ref-mini, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ref-mini a, .feed a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: inherit; text-decoration: none; }
.ref-mini a:hover, .feed a:hover { background: var(--mist); }
.ref-mini a > span, .feed a > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.ref-mini small, .feed small { color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-mini em { font-style: normal; font-weight: 600; }
.feed-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--mist); }
.feed-ico svg { width: 19px; height: 19px; }
.feed-ico .chain-ico, .feed-ico .coin-ico { width: 24px; height: 24px; }
.f-dep .feed-ico { background: var(--ok-bg); }
.f-dep b { color: var(--ok); }
.feed time { font-size: 12.5px; color: var(--grey); white-space: nowrap; align-self: flex-start; }

/* referral pages */
.ref-new-row { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr auto; gap: 12px; align-items: end; }
.ref-prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.ref-prefix > span { padding: 0 2px 0 12px; color: var(--grey); font-size: 14px; white-space: nowrap; }
.ref-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; flex: 1; background: transparent; }
.ref-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ref-card { padding: 18px; display: grid; gap: 14px; }
.ref-card.off { opacity: .6; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rc-name { display: grid; color: inherit; text-decoration: none; min-width: 0; }
.rc-name b { font-size: 18px; }
.rc-name small { color: var(--grey); }
.rc-money { padding: 14px; border-radius: 12px; background: var(--night); color: #fff; display: grid; gap: 2px; }
.rc-money small, .rc-money span { color: rgba(255,255,255,.65); font-size: 12.5px; }
.rc-money b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.rc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.rc-nums div { padding: 10px; border-radius: 10px; background: var(--mist); display: grid; }
.rc-nums dt { font-size: 12px; color: var(--grey); }
.rc-nums dd { margin: 0; font-size: 18px; font-weight: 600; }
.rc-nums small { font-size: 12px; color: var(--grey); }
.rc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-btn.mini { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn.mini svg { width: 14px; height: 14px; }
label.check { display: flex; align-items: center; gap: 8px; flex-direction: row; }
label.check input { width: auto; }
.mini.danger svg { width: 14px; height: 14px; vertical-align: -2px; }

/* phone */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-right: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-new-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -6px 6px; padding-bottom: 4px; }
  .kpi { flex: 0 0 auto; min-width: 46%; scroll-snap-align: start; border-right: 0; }
  .kpi-main { min-width: 78%; }
  .kpi .spark { display: none; }
  .kpi b { font-size: 21px; }
  .kpi-main b { font-size: 28px; }
  .lc-plot { padding-left: 40px; }
  .lc-y { width: 36px; font-size: 10.5px; }
  .lc-plot svg { height: 190px; }
  .lc-x { padding-left: 40px; }
  .tiles { gap: 10px; }
  .tile { padding: 12px; gap: 10px; }
  .tile b { font-size: 17px; }
  .tile-chev { display: none; }
  .net-bars li { grid-template-columns: 1fr auto; }
  .nb-bar { grid-column: 1 / -1; grid-row: 2; }
  .ref-new-row { grid-template-columns: 1fr; }
  .ref-cards { grid-template-columns: 1fr; }
  .cust-head { gap: 12px; }
  .cust-head .av-lg { width: 46px; height: 46px; font-size: 20px; }
  .cust-acts { width: 100%; }
  .ov-live { padding: 7px 12px; }
}

/* fixes: grid columns never wider than the screen, chain icon rows */
.cust-main, .cust-side { grid-template-columns: minmax(0, 1fr); }
.acct-rows li:has(> .pw-icons) { grid-template-columns: auto auto 1fr; }
@media (max-width: 640px) {
  .cust-main .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cust-main .stat { padding: 16px; }
  .cust-main .stat b { font-size: 22px; }
  .topbar-actions > .tlink { display: none; }
  .acct-rows li:has(> .pw-icons) { grid-template-columns: auto 1fr; }
  .acct-rows li:has(> .pw-icons) b { grid-column: 1 / -1; text-align: left; font-size: 12px; }
}

/* ===== analytics ===== */
.fn-title { margin: 18px 0 10px; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 200px 1fr 90px; align-items: center; gap: 14px; }
.fn-name { display: grid; }
.fn-name small, .fn-num small { color: var(--grey); font-size: 12px; }
.fn-bar { height: 26px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 8px; background: var(--info); }
.fn-bar i.w2 { width: 2%; }
.fn-bar i.w4 { width: 4%; }
.fn-bar i.w6 { width: 6%; }
.fn-bar i.w8 { width: 8%; }
.fn-bar i.w10 { width: 10%; }
.fn-bar i.w12 { width: 12%; }
.fn-bar i.w14 { width: 14%; }
.fn-bar i.w16 { width: 16%; }
.fn-bar i.w18 { width: 18%; }
.fn-bar i.w20 { width: 20%; }
.fn-bar i.w22 { width: 22%; }
.fn-bar i.w24 { width: 24%; }
.fn-bar i.w26 { width: 26%; }
.fn-bar i.w28 { width: 28%; }
.fn-bar i.w30 { width: 30%; }
.fn-bar i.w32 { width: 32%; }
.fn-bar i.w34 { width: 34%; }
.fn-bar i.w36 { width: 36%; }
.fn-bar i.w38 { width: 38%; }
.fn-bar i.w40 { width: 40%; }
.fn-bar i.w42 { width: 42%; }
.fn-bar i.w44 { width: 44%; }
.fn-bar i.w46 { width: 46%; }
.fn-bar i.w48 { width: 48%; }
.fn-bar i.w50 { width: 50%; }
.fn-bar i.w52 { width: 52%; }
.fn-bar i.w54 { width: 54%; }
.fn-bar i.w56 { width: 56%; }
.fn-bar i.w58 { width: 58%; }
.fn-bar i.w60 { width: 60%; }
.fn-bar i.w62 { width: 62%; }
.fn-bar i.w64 { width: 64%; }
.fn-bar i.w66 { width: 66%; }
.fn-bar i.w68 { width: 68%; }
.fn-bar i.w70 { width: 70%; }
.fn-bar i.w72 { width: 72%; }
.fn-bar i.w74 { width: 74%; }
.fn-bar i.w76 { width: 76%; }
.fn-bar i.w78 { width: 78%; }
.fn-bar i.w80 { width: 80%; }
.fn-bar i.w82 { width: 82%; }
.fn-bar i.w84 { width: 84%; }
.fn-bar i.w86 { width: 86%; }
.fn-bar i.w88 { width: 88%; }
.fn-bar i.w90 { width: 90%; }
.fn-bar i.w92 { width: 92%; }
.fn-bar i.w94 { width: 94%; }
.fn-bar i.w96 { width: 96%; }
.fn-bar i.w98 { width: 98%; }
.fn-bar i.w100 { width: 100%; }

.fn-num { display: grid; text-align: right; }
.fn-num b { font-size: 17px; }
.an-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.an-grid .panel { margin: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; }
.b-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.b-name .li { width: 16px; height: 16px; flex: none; }
.b-num { display: flex; align-items: baseline; gap: 6px; }
.b-num small { color: var(--grey); font-size: 12px; }
.bars .nb-bar { grid-column: 1 / -1; height: 6px; }
.cflag { font-size: 17px; line-height: 1; }
.vis-flag { font-size: 22px; background: var(--mist); color: inherit; }
.vis-list small { display: flex; align-items: center; gap: 5px; }
.vis-list small .li { width: 14px; height: 14px; flex: none; }
.vis-list b .pill { font-size: 11px; margin-left: 6px; vertical-align: 1px; font-style: normal; }
.cust-dev { margin-top: 2px !important; }
.j-day { margin: 18px 0 8px; font-size: 13px; color: var(--grey); font-weight: 500; text-transform: lowercase; }
.journey { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.journey li { display: grid; grid-template-columns: 64px 30px 1fr; gap: 10px; align-items: start; padding: 8px 0; position: relative; }
.journey li::before { content: ''; position: absolute; left: 92px; top: 34px; bottom: -8px; width: 1px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey time { font-size: 12px; color: var(--grey); padding-top: 6px; font-variant-numeric: tabular-nums; }
.j-ico { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--mist); }
.j-ico .li { width: 15px; height: 15px; }
.j-text { display: grid; padding-top: 4px; min-width: 0; }
.j-text b { font-weight: 500; overflow-wrap: anywhere; }
.j-text small { color: var(--grey); font-size: 12.5px; }
.j-key .j-ico { background: var(--info-bg); color: var(--info); }
.j-money .j-ico { background: var(--warn-bg); color: var(--warn); }
.j-dep .j-ico { background: var(--ok-bg); color: var(--ok); }
.j-dep b { color: var(--ok); font-weight: 600; }
.j-ord .j-ico { background: var(--night); color: #fff; }
@media (max-width: 1100px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .an-grid { grid-template-columns: 1fr; gap: 12px; }
  .funnel li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .fn-bar { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .journey li { grid-template-columns: 54px 28px 1fr; gap: 8px; }
  .journey li::before { left: 76px; }
}

/* analytics icons */
.an-h { display: flex; align-items: center; gap: 10px; }
.an-hi { width: 32px; height: 32px; border-radius: 9px; background: var(--mist); display: grid; place-items: center; flex: none; }
.an-hi .li { width: 17px; height: 17px; }
.b-name .pi { width: 16px; height: 16px; flex: none; fill: currentColor; }
.b-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kpi-l { display: inline-flex; align-items: center; gap: 6px; }
.kpi-l .li { width: 14px; height: 14px; }
.fn-name { display: flex !important; align-items: center; gap: 10px; }
.fn-name > span:last-child { display: grid; min-width: 0; }
.fn-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--mist); display: grid; place-items: center; }
.fn-ico .li { width: 15px; height: 15px; }
.vis-list small .pi { width: 13px; height: 13px; fill: currentColor; flex: none; }
.j-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.j-meta .li, .j-meta .pi { width: 14px; height: 14px; flex: none; fill: none; }
.j-meta .pi { fill: currentColor; }

/* ticket waiting for our reply */
.flash.info { background: var(--info-bg); color: var(--info); }
.wait-reply { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.wait-reply .li, .wait-reply svg { width: 17px; height: 17px; flex: none; }

/* close a ticket with a reason */
.close-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 14px 14px; }
.close-form select, .close-form input { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); font: inherit; font-size: 13.5px; color: inherit; }
.close-form input { flex: 1 1 200px; min-width: 0; }
.ct-close { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ct-close .close-form { margin: 0; }
@media (max-width: 640px) { .close-form select, .close-form input, .close-form .mini { flex: 1 1 100%; } }

/* network not available yet */
.tile.net.soon { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.tile.net.soon:hover { background: inherit; }

/* ===== customize: backgrounds ===== */
.site-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-size: cover; background-position: center; display: none; }
.site-bg::after { content: ''; position: absolute; inset: 0; background: var(--mist); opacity: 0; }
body.has-bg .site-bg { display: block; }
body.has-bg .app-main { position: relative; z-index: 1; }
body.has-bg.app-body { background: var(--mist); }
body.has-bg .topbar { background: color-mix(in srgb, var(--mist) 70%, transparent); }
.site-bg[data-bg="sakura"] { background-image: url(/img/bg/sakura-1920.webp); }
.site-bg[data-bg="sakura-rail"] { background-image: url(/img/bg/sakura-rail-1920.webp); }
.site-bg[data-bg="fuji"] { background-image: url(/img/bg/fuji-1920.webp); }
.site-bg[data-bg="neon-tokyo"] { background-image: url(/img/bg/neon-tokyo-1920.webp); }
.site-bg[data-bg="torii"] { background-image: url(/img/bg/torii-1920.webp); }
.site-bg[data-bg="great-wave"] { background-image: url(/img/bg/great-wave-1920.webp); }
.site-bg[data-bg="cosmic-cliffs"] { background-image: url(/img/bg/cosmic-cliffs-1920.webp); }
.site-bg[data-bg="pillars"] { background-image: url(/img/bg/pillars-1920.webp); }
.site-bg[data-bg="aurora-iss"] { background-image: url(/img/bg/aurora-iss-1920.webp); }
.site-bg[data-bg="blue-marble"] { background-image: url(/img/bg/blue-marble-1920.webp); }
.site-bg[data-bg="mystic-mountain"] { background-image: url(/img/bg/mystic-mountain-1920.webp); }
.site-bg[data-bg="mountain-lake"] { background-image: url(/img/bg/mountain-lake-1920.webp); }
.site-bg[data-bg="waves"] { background-image: url(/img/bg/waves-1920.webp); }
.site-bg[data-bg="forest"] { background-image: url(/img/bg/forest-1920.webp); }
.site-bg[data-bg="sunset"] { background-image: url(/img/bg/sunset-1920.webp); }
@media (min-width: 1600px), (min-width: 1000px) and (min-resolution: 2dppx) {
  .site-bg[data-bg="sakura"] { background-image: url(/img/bg/sakura.webp); }
  .site-bg[data-bg="sakura-rail"] { background-image: url(/img/bg/sakura-rail.webp); }
  .site-bg[data-bg="fuji"] { background-image: url(/img/bg/fuji.webp); }
  .site-bg[data-bg="neon-tokyo"] { background-image: url(/img/bg/neon-tokyo.webp); }
  .site-bg[data-bg="torii"] { background-image: url(/img/bg/torii.webp); }
  .site-bg[data-bg="great-wave"] { background-image: url(/img/bg/great-wave.webp); }
  .site-bg[data-bg="cosmic-cliffs"] { background-image: url(/img/bg/cosmic-cliffs.webp); }
  .site-bg[data-bg="pillars"] { background-image: url(/img/bg/pillars.webp); }
  .site-bg[data-bg="aurora-iss"] { background-image: url(/img/bg/aurora-iss.webp); }
  .site-bg[data-bg="blue-marble"] { background-image: url(/img/bg/blue-marble.webp); }
  .site-bg[data-bg="mystic-mountain"] { background-image: url(/img/bg/mystic-mountain.webp); }
  .site-bg[data-bg="mountain-lake"] { background-image: url(/img/bg/mountain-lake.webp); }
  .site-bg[data-bg="waves"] { background-image: url(/img/bg/waves.webp); }
  .site-bg[data-bg="forest"] { background-image: url(/img/bg/forest.webp); }
  .site-bg[data-bg="sunset"] { background-image: url(/img/bg/sunset.webp); }
}
.site-bg[data-bg="hearts"] { background: url(/img/bg/hearts.svg) 0 0 / 140px 140px repeat; }
.site-bg[data-bg="clouds"] { background: url(/img/bg/clouds.svg) 0 0 / 200px 200px repeat; }
.site-bg[data-bg="strawberries"] { background: url(/img/bg/strawberries.svg) 0 0 / 160px 160px repeat; }
.site-bg[data-bg="kitties"] { background: url(/img/bg/kitties.svg) 0 0 / 180px 180px repeat; }
.site-bg[data-bg="bubbles"] { background: url(/img/bg/bubbles.svg) 0 0 / 220px 220px repeat; }

/* colours */
.site-bg[data-bg="c-sunset"] { background: radial-gradient(at 15% 20%, #ff9a8b 0, transparent 55%), radial-gradient(at 85% 10%, #ffcf71 0, transparent 50%), radial-gradient(at 70% 90%, #ff6a88 0, transparent 55%), radial-gradient(at 10% 90%, #a770ef 0, transparent 50%), #ffb199; }
.site-bg[data-bg="c-ocean"] { background: radial-gradient(at 20% 10%, #00c6fb 0, transparent 55%), radial-gradient(at 90% 30%, #005bea 0, transparent 50%), radial-gradient(at 40% 100%, #0b1e5b 0, transparent 60%), #0a3d91; }
.site-bg[data-bg="c-candy"] { background: radial-gradient(at 10% 10%, #fbc2eb 0, transparent 50%), radial-gradient(at 90% 20%, #a6c1ee 0, transparent 50%), radial-gradient(at 50% 90%, #fdcbf1 0, transparent 55%), radial-gradient(at 90% 90%, #e6dee9 0, transparent 50%), #f3d1f4; }
.site-bg[data-bg="c-mint"] { background: radial-gradient(at 0% 0%, #d4fc79 0, transparent 55%), radial-gradient(at 100% 30%, #96e6a1 0, transparent 50%), radial-gradient(at 40% 100%, #43e97b 0, transparent 55%), #b8f5c8; }
.site-bg[data-bg="c-midnight"] { background: radial-gradient(at 20% 20%, #3a1c71 0, transparent 50%), radial-gradient(at 80% 30%, #1a2a6c 0, transparent 50%), radial-gradient(at 50% 100%, #b21f66 0, transparent 55%), #0b0b1e; }

/* animated (our own, smooth at any size) */
.site-bg[data-bg="a-aurora"] { background: #06121f; overflow: hidden; }
.site-bg[data-bg="a-aurora"]::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(40% 30% at 30% 40%, #2af598aa, transparent 70%), radial-gradient(35% 25% at 70% 35%, #009efdaa, transparent 70%), radial-gradient(30% 30% at 50% 70%, #b721ffaa, transparent 70%); filter: blur(40px); animation: bg-aurora 18s ease-in-out infinite alternate; }
@keyframes bg-aurora { 0% { transform: translate(-6%, -4%) rotate(0deg) scale(1); } 50% { transform: translate(6%, 3%) rotate(12deg) scale(1.15); } 100% { transform: translate(-3%, 6%) rotate(-8deg) scale(1.05); } }
.site-bg[data-bg="a-flow"] { background: linear-gradient(120deg, #ff9a9e, #fad0c4, #a18cd1, #84fab0, #8fd3f4, #ff9a9e); background-size: 400% 400%; animation: bg-flow 22s ease infinite; }
@keyframes bg-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.site-bg[data-bg="a-stars"] { background: radial-gradient(ellipse at 50% 120%, #1b2a4a 0, #05060f 70%); overflow: hidden; }
.site-bg[data-bg="a-stars"]::before, .site-bg[data-bg="a-stars"] > i { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(2px 2px at 55% 30%, #cfe1ff, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 15%, #fff, transparent), radial-gradient(1px 1px at 45% 55%, #fff, transparent), radial-gradient(2px 2px at 20% 90%, #ffe9c4, transparent), radial-gradient(1px 1px at 65% 10%, #fff, transparent); background-size: 280px 280px; animation: bg-twinkle 4s ease-in-out infinite alternate; }
.site-bg[data-bg="a-stars"] > i { background-size: 410px 410px; background-position: 60px 90px; animation-delay: -2s; animation-duration: 5.5s; }
@keyframes bg-twinkle { from { opacity: .35; } to { opacity: 1; } }
.site-bg[data-bg="a-hearts"] { background: linear-gradient(180deg, #ffe4ec, #ffd1e0); overflow: hidden; }
.site-bg[data-bg="a-hearts"]::before, .site-bg[data-bg="a-hearts"] > i { content: ''; position: absolute; inset: 0 0 -100% 0; background: url(/img/bg/hearts.svg) 0 0 / 150px 150px repeat; opacity: .55; animation: bg-rise 30s linear infinite; }
.site-bg[data-bg="a-hearts"] > i { background-size: 230px 230px; background-position: 70px 40px; opacity: .35; animation-duration: 45s; }
@keyframes bg-rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.site-bg[data-bg="a-grid"] { background: linear-gradient(180deg, #120024 0%, #3b0a5e 45%, #ff3e9a 46%, #ff7b39 47%, #120024 47.5%); overflow: hidden; perspective: 300px; }
.site-bg[data-bg="a-grid"]::before { content: ''; position: absolute; left: -50%; right: -50%; top: 48%; height: 120%; background-image: linear-gradient(#ff3e9a 2px, transparent 2px), linear-gradient(90deg, #ff3e9a 2px, transparent 2px); background-size: 60px 60px; transform: rotateX(70deg); transform-origin: top; animation: bg-grid 2.4s linear infinite; opacity: .8; }
.site-bg[data-bg="a-grid"]::after { background: radial-gradient(circle at 50% 46%, #ffcf5c 0, #ff3e9a 9%, transparent 10%); opacity: 1 !important; }
@keyframes bg-grid { from { background-position: 0 0; } to { background-position: 0 60px; } }
@media (prefers-reduced-motion: reduce) { .site-bg::before, .site-bg > i { animation: none !important; } .site-bg[data-bg="a-flow"] { animation: none; } }

/* how strongly the background shows (the rest is covered by the page colour) */
body[data-bgop="10"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.9; }
body[data-bgop="20"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.8; }
body[data-bgop="30"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.7; }
body[data-bgop="40"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.6; }
body[data-bgop="50"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.5; }
body[data-bgop="60"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.4; }
body[data-bgop="70"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.3; }
body[data-bgop="80"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.2; }
body[data-bgop="90"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.1; }
body[data-bgop="100"] .site-bg:not([data-bg="a-grid"])::after { opacity: 0.0; }

/* background blur */
body[data-blur="4"] .site-bg { filter: blur(4px); inset: -8px; }
body[data-blur="8"] .site-bg { filter: blur(8px); inset: -16px; }
body[data-blur="12"] .site-bg { filter: blur(12px); inset: -24px; }
body[data-blur="16"] .site-bg { filter: blur(16px); inset: -32px; }
body[data-blur="20"] .site-bg { filter: blur(20px); inset: -40px; }

/* cards see-through: lower = more glass */
body.has-bg[data-glass="40"] .app-content .frame, body.has-bg[data-glass="40"] .app-content .h { background: color-mix(in srgb, var(--card) 40%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-bg[data-glass="50"] .app-content .frame, body.has-bg[data-glass="50"] .app-content .h { background: color-mix(in srgb, var(--card) 50%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-bg[data-glass="60"] .app-content .frame, body.has-bg[data-glass="60"] .app-content .h { background: color-mix(in srgb, var(--card) 60%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-bg[data-glass="70"] .app-content .frame, body.has-bg[data-glass="70"] .app-content .h { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-bg[data-glass="80"] .app-content .frame, body.has-bg[data-glass="80"] .app-content .h { background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-bg[data-glass="90"] .app-content .frame, body.has-bg[data-glass="90"] .app-content .h { background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* customize page */
.cz-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cz-mode { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.cz-mode[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cz-mode svg { width: 20px; height: 20px; }
.cz-mode b { display: block; }
.cz-mode small { color: var(--grey); }
.cz-cat { margin: 18px 0 10px; font-size: 14px; color: var(--grey); font-weight: 500; text-transform: lowercase; }
.cz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cz-bg { position: relative; display: block; cursor: pointer; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--paper); }
.cz-bg input { position: absolute; opacity: 0; pointer-events: none; }
.cz-bg:has(input:checked) { border-color: var(--ink); }
.cz-bg:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.cz-prev { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background-size: cover; background-position: center; }
.cz-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-prev .site-bg { display: block; position: absolute; inset: 0; z-index: 0; }
.cz-prev .site-bg::after { display: none; }
.cz-bg > span:last-child { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 13px; }
.cz-bg > span:last-child small { color: var(--grey); font-size: 11px; }
.cz-none { display: grid; place-items: center; height: 100%; color: var(--grey); font-size: 13px; background: repeating-linear-gradient(45deg, var(--mist) 0 10px, var(--paper) 10px 20px); }
.cz-sliders { display: grid; gap: 18px; }
.cz-slider { display: grid; gap: 8px; }
.cz-slider > span { display: flex; justify-content: space-between; font-size: 14px; }
.cz-slider output { color: var(--grey); font-variant-numeric: tabular-nums; }
.cz-slider input[type=range] { width: 100%; accent-color: var(--ink); }
.cz-actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 12px; z-index: 5; }
.cz-credits { font-size: 12px; color: var(--grey); line-height: 1.6; }
.cz-credits a { color: inherit; }
@media (max-width: 640px) { .cz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cz-modes { grid-template-columns: 1fr 1fr; } }

.cz-soon .hint { margin: 4px 0 0; }
