:root {
  color-scheme: dark;
  --bg: #070912;
  --bg-soft: #0b0f1c;
  --bg-elevated: #101528;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf8;
  --text-soft: #c3cbdd;
  --muted: #8b95ae;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #ff5c7a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Onest', 'Segoe UI', system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(180deg, #080b15 0%, #070912 60%, #060810 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.16; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code {
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.13);
  color: #cfc7ff;
}
hr { border: 0; border-top: 1px solid var(--border); }

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.muted-small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-strong); border-color: rgba(255, 255, 255, 0.26); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #5b7cff 55%, var(--accent2) 140%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #8a6dff 0%, #6a89ff 55%, #3fe0ff 140%); color: #fff; box-shadow: 0 14px 38px rgba(124, 92, 255, 0.45); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 92, 122, 0.35); background: rgba(255, 92, 122, 0.12); color: #ffb3c0; }
.btn-danger:hover { background: rgba(255, 92, 122, 0.22); color: #fff; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 0.82rem; border-radius: 10px; }
.btn-large { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 32px; min-height: 32px; }
.btn .icon { width: 17px; height: 17px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-strong); color: #fff; }

.link { color: #b9adff; border-bottom: 1px solid rgba(185, 173, 255, 0.3); }
.link:hover { color: #fff; border-color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, 0.32);
  background: rgba(124, 92, 255, 0.1); color: #cfc5ff; font-size: 0.8rem; font-weight: 600;
}
.pill .icon { width: 15px; height: 15px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: #a995ff; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.grad-text { background: linear-gradient(100deg, #a68cff 0%, #61e7ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-block; width: 34px; height: 34px; flex: 0 0 auto;
  object-fit: contain; border-radius: 10px;
  filter: drop-shadow(0 8px 18px rgba(124, 92, 255, 0.4));
}
.brand-text span { color: #a995ff; }
.brand-compact .brand-text { display: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.field > span { display: flex; align-items: center; gap: 4px; }
.field em { color: #ff8da1; font-style: normal; }
.field small { color: var(--muted); font-weight: 400; font-size: 0.76rem; line-height: 1.4; }
.input {
  width: 100%; min-height: 44px; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 11px;
  background: rgba(8, 11, 22, 0.65); color: var(--text);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input:focus { border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16); background: rgba(8, 11, 22, 0.9); }
.input::placeholder { color: #5f6880; }
.input-small { min-height: 34px; padding: 6px 10px; font-size: 0.8rem; width: auto; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #6d7790; pointer-events: none; }
.input-wrap .input { padding-left: 40px; }
.input-code { font-family: ui-monospace, monospace; font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--text-soft); cursor: pointer; line-height: 1.45; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-1 { grid-template-columns: 1fr; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-title { margin-bottom: 14px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; }
.inline-form-block { display: block; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search-field { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-field .input { padding-left: 37px; }
.color-input { width: 64px; min-height: 44px; padding: 4px; }

/* ---------- Alerts & badges ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; margin-bottom: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); font-size: 0.88rem; }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.alert-ok { border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.09); color: #a7f3d0; }
.alert-err { border-color: rgba(255, 92, 122, 0.3); background: rgba(255, 92, 122, 0.09); color: #ffc0cb; }
.alert-warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); color: #fde68a; }
.alert-info { border-color: rgba(34, 211, 238, 0.28); background: rgba(34, 211, 238, 0.08); color: #a5f3fc; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text-soft); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge-active, .badge-paid, .badge-delivered, .badge-approved, .badge-paid_out { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.1); color: #8ef0c8; }
.badge-pending, .badge-warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.09); color: #fde68a; }
.badge-failed, .badge-cancelled, .badge-rejected, .badge-refunded { border-color: rgba(255, 92, 122, 0.3); background: rgba(255, 92, 122, 0.1); color: #ffb3c0; }
.badge-hidden { color: var(--muted); }

/* ---------- Public header/footer ---------- */
.aurora { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.aurora-hero { width: 520px; height: 520px; top: -220px; left: 8%; background: rgba(124, 92, 255, 0.25); }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; background: rgba(7, 9, 18, 0.72); backdrop-filter: blur(18px); }
.site-header::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link { color: var(--text-soft); font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.mobile-menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; }
.site-main { min-height: 60vh; }
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: rgba(6, 8, 15, 0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 52px 24px 36px; }
.footer-brand p { max-width: 320px; margin-top: 14px; color: var(--muted); font-size: 0.86rem; }
.footer-grid h4 { margin-bottom: 14px; font-family: var(--font); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--text-soft); font-size: 0.88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }

/* ---------- Landing ---------- */
.hero { padding: 84px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-copy h1 { margin: 18px 0; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.hero-lead { max-width: 560px; color: var(--text-soft); font-size: 1.07rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.18rem; }
.hero-stats span { color: var(--muted); font-size: 0.78rem; }
.hero-visual { position: relative; min-height: 430px; display: flex; align-items: center; justify-content: center; }
.visual-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%); filter: blur(30px); }
.store-preview { position: relative; width: min(100%, 460px); padding: 22px; border: 1px solid var(--border-strong); border-radius: 24px; background: linear-gradient(160deg, rgba(24, 29, 52, 0.95), rgba(10, 13, 25, 0.98)); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.store-preview-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.store-logo { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #7c5cff, #22d3ee); font-family: var(--display); font-weight: 700; }
.store-preview-head div { display: flex; flex-direction: column; }
.store-preview-head small { color: var(--muted); font-size: 0.74rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #8ef0c8; font-size: 0.72rem; font-weight: 600; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.13); }
.store-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 0; }
.mini-product { display: flex; flex-direction: column; gap: 4px; padding: 13px 11px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.035); font-size: 0.78rem; }
.mini-product strong { font-family: var(--display); font-size: 0.85rem; }
.mini-product > span:last-child { color: #cfc5ff; font-weight: 700; }
.mini-product.featured { border-color: rgba(124, 92, 255, 0.55); background: linear-gradient(160deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.06)); transform: translateY(-4px); }
.mini-tag { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; }
.preview-toast { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(52, 211, 153, 0.26); border-radius: 14px; background: rgba(52, 211, 153, 0.08); }
.toast-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(52, 211, 153, 0.18); color: #8ef0c8; }
.preview-toast div { display: flex; flex-direction: column; font-size: 0.8rem; }
.preview-toast small { color: var(--muted); }

.section { padding: 76px 0; }
.section-muted { position: relative; background: rgba(255, 255, 255, 0.018); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p, .section-lead { color: var(--muted); font-size: 0.98rem; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); transition: transform 0.18s, border-color 0.18s, background 0.18s; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.35); background: var(--panel-strong); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 13px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(34, 211, 238, 0.12)); color: #b9adff; border: 1px solid rgba(124, 92, 255, 0.25); }
.feature-card h3 { margin-bottom: 8px; font-family: var(--font); font-size: 1rem; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.step-num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, 0.055); }
.step-icon { display: inline-flex; margin-bottom: 16px; color: #a995ff; }
.step-icon .icon { width: 30px; height: 30px; }
.step-card p { margin-top: 8px; color: var(--muted); font-size: 0.87rem; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: 0.9rem; }
.check-list .icon { width: 18px; height: 18px; margin-top: 2px; color: #8ef0c8; }
.check-list.large { gap: 18px; }
.check-list.large li { font-size: 0.94rem; }
.check-list.large div { display: flex; flex-direction: column; gap: 2px; }
.check-list.large span { color: var(--muted); font-size: 0.84rem; }
.cores-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cores { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.cores span { padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 0.76rem; }
.code-sample { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #070a13; }
.code-head { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); }
.code-head span { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.code-head span:nth-child(2) { background: #febc2e; }
.code-head span:nth-child(3) { background: #28c840; }
.code-head em { margin-left: auto; color: var(--muted); font-size: 0.72rem; font-style: normal; }
.code-sample pre, .code-block { margin: 0; padding: 16px; overflow-x: auto; font-size: 0.8rem; line-height: 1.6; color: #c9d2ea; }
.cores-card .muted-small { margin-top: 14px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; }
.price-card { position: relative; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.price-card.featured { border-color: rgba(124, 92, 255, 0.55); background: linear-gradient(170deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.025)); box-shadow: 0 20px 60px rgba(124, 92, 255, 0.16); }
.price-badge { position: absolute; top: -11px; right: 24px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 0.68rem; font-weight: 700; }
.price { margin: 14px 0; font-family: var(--display); font-size: 2.4rem; font-weight: 700; }
.price span { font-family: var(--font); font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.price-card p { color: var(--muted); font-size: 0.86rem; }
.price-card .check-list { margin: 20px 0 24px; }
.pricing-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.8rem; }
.cta-section { padding: 40px 0 90px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px; border: 1px solid rgba(124, 92, 255, 0.4); border-radius: 26px; background: linear-gradient(120deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.08)); }
.cta-card h2 { margin-bottom: 10px; }
.cta-card p { color: var(--text-soft); font-size: 0.92rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 100vh; }
.auth-aside { position: relative; display: flex; padding: 46px; overflow: hidden; border-right: 1px solid var(--border); background: linear-gradient(150deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.07) 60%, rgba(7, 9, 18, 0.2)); }
.auth-aside::before { content: ''; position: absolute; width: 460px; height: 460px; right: -160px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.38), transparent 65%); }
.auth-aside-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.auth-pitch { max-width: 430px; }
.auth-pitch h2 { margin: 20px 0 16px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.auth-pitch > p { color: var(--text-soft); font-size: 0.96rem; }
.auth-foot { color: var(--muted); font-size: 0.75rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 430px; padding: 34px; border: 1px solid var(--border); border-radius: 22px; background: rgba(12, 16, 30, 0.82); box-shadow: var(--shadow); }
.auth-card-wide { max-width: 520px; }
.auth-mobile-brand { display: none; margin-bottom: 26px; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { margin-bottom: 8px; font-size: 1.9rem; }
.auth-head p { color: var(--muted); font-size: 0.88rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; }
.auth-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; text-align: center; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dev-hint { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 11px 13px; border: 1px dashed rgba(34, 211, 238, 0.32); border-radius: 11px; background: rgba(34, 211, 238, 0.05); font-size: 0.78rem; }
.dev-hint > .icon { color: #67e8f9; }
.dev-hint div { display: flex; flex-direction: column; }
.dev-hint span { color: var(--muted); }

/* ---------- Telegram-вход ---------- */
.auth-split { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.auth-split::before, .auth-split::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.tg-entry { display: flex; align-items: center; justify-content: center; gap: 9px; }
.tg-entry > .icon { color: #28a7e8; }
.tg-connect { display: flex; flex-direction: column; gap: 14px; animation: tg-fade 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.tg-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(124, 92, 255, 0.07); color: var(--text-soft); font-size: 0.84rem; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.tg-status.is-ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.09); color: #6ee7b7; }
.tg-status.is-err { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: #fca5a5; }
.tg-spinner { width: 14px; height: 14px; flex: none; border: 2px solid rgba(124, 92, 255, 0.28); border-top-color: var(--accent, #7c5cff); border-radius: 50%; animation: tg-spin 0.9s linear infinite; }
.tg-hint { color: var(--muted); font-size: 0.76rem; }
.tg-hint code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-size: 0.72rem; }
.tg-finish { animation: tg-fade 0.3s ease both; }
@keyframes tg-spin { to { transform: rotate(360deg); } }
@keyframes tg-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tg-connect, .tg-finish { animation: none; }
  .tg-spinner { animation-duration: 2.4s; }
}

/* ---------- CP shell ---------- */
.cp-shell { display: flex; min-height: 100vh; }
.cp-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column;
  width: 264px; border-right: 1px solid var(--border); background: rgba(8, 11, 21, 0.94); backdrop-filter: blur(18px);
  transition: transform 0.22s ease;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; }
.side-close { display: none; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 12px 20px; }
.side-group { padding: 10px 0; border-top: 1px solid var(--border); }
.side-group:first-child { border-top: 0; }
.side-caption { padding: 6px 12px 8px; color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0; border-radius: 10px; color: var(--text-soft); font-size: 0.85rem; font-weight: 500; }
.side-link .icon { width: 18px; height: 18px; color: #7d87a1; }
.side-link:hover { background: var(--panel); color: #fff; }
.side-link.active { background: linear-gradient(100deg, rgba(124, 92, 255, 0.24), rgba(124, 92, 255, 0.07)); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.22); }
.side-link.active .icon { color: #b9adff; }
.side-foot { padding: 14px 12px; border-top: 1px solid var(--border); }
.cp-body { flex: 1; min-width: 0; margin-left: 264px; }
.cp-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 28px; border-bottom: 1px solid var(--border); background: rgba(7, 9, 18, 0.82); backdrop-filter: blur(16px); }
.cp-topbar > .icon-btn { display: none; }
.topbar-title { font-family: var(--display); font-size: 0.92rem; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.balance-pill { padding: 7px 13px; border: 1px solid rgba(52, 211, 153, 0.22); border-radius: 999px; background: rgba(52, 211, 153, 0.07); color: #a7f3d0; font-size: 0.8rem; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 0.8rem; font-weight: 700; }
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--text-soft); font-size: 0.78rem; white-space: nowrap; }
.shop-switcher { position: relative; }
.shop-switcher summary { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text-soft); font-size: 0.84rem; cursor: pointer; list-style: none; }
.shop-switcher summary::-webkit-details-marker { display: none; }
.shop-switcher summary .icon { width: 14px; height: 14px; margin-left: 4px; }
.shop-switcher[open] summary { border-color: rgba(124, 92, 255, 0.5); }
.shop-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 250px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 14px; background: #0d1222; box-shadow: var(--shadow); }
.shop-option { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--text-soft); font-size: 0.84rem; }
.shop-option:hover { background: var(--panel); color: #fff; }
.shop-option.active { background: rgba(124, 92, 255, 0.14); color: #fff; }
.shop-option.muted { color: var(--muted); }
.shop-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--accent)) 20%, transparent); flex: 0 0 auto; }
.shop-dot.large { width: 13px; height: 13px; }
.cp-main { padding: 32px 0 70px; }
.sidebar-overlay { display: none; }

/* ---------- CP content ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-head p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: #a995ff; flex: 0 0 auto; }
.stat-card.stat-accent .stat-icon { background: rgba(124, 92, 255, 0.17); color: #c6bcff; }
.stat-card.stat-warn .stat-icon { background: rgba(251, 191, 36, 0.12); color: #fde68a; }
.stat-body { min-width: 0; }
.stat-label { color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.stat-value { margin-top: 3px; font-family: var(--display); font-size: 1.28rem; font-weight: 600; overflow-wrap: anywhere; }
.stat-hint { margin-top: 3px; color: var(--muted); font-size: 0.73rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin-bottom: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 0.78rem; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-card { padding: 8px 2px 0; }
.chart { width: 100%; height: 190px; display: block; }
.chart-label { fill: var(--muted); font-size: 4px; font-family: var(--font); }
.chart-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 0; color: var(--muted); font-size: 0.78rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .icon { width: 16px; height: 16px; }
.chart-legend strong { color: var(--text); font-size: 0.9rem; }
.attention-list { display: flex; flex-direction: column; gap: 8px; }
.attention-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.attention-row:hover { border-color: rgba(124, 92, 255, 0.35); background: var(--panel); }
.attention-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.attention-row strong { font-size: 0.84rem; }
.attention-row small { color: var(--muted); font-size: 0.74rem; }
.attention-row > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.attention-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(124, 92, 255, 0.12); color: #b9adff; flex: 0 0 auto; }
.attention-icon .icon { width: 17px; height: 17px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-soft); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.table td strong { color: var(--text); }
.table-empty { padding: 34px 16px; color: var(--muted); font-size: 0.86rem; text-align: center; }
.cell-title { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.cell-title > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-title small { color: var(--muted); font-size: 0.72rem; }
.product-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(124, 92, 255, 0.14); color: #cfc5ff; font-family: var(--display); font-size: 0.9rem; font-weight: 600; overflow: hidden; }
.product-dot img { width: 100%; height: 100%; object-fit: cover; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .table { min-width: 620px; } }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text-soft); font-size: 0.8rem; }
.page-btn:hover { border-color: var(--border-strong); color: #fff; }
.page-btn.active { border-color: transparent; background: linear-gradient(135deg, var(--accent), #5b7cff); color: #fff; }

/* cards & lists */
.shop-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shop-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.shop-card-head { display: flex; align-items: center; gap: 11px; }
.shop-card-head h3 { font-family: var(--font); font-size: 0.95rem; font-weight: 700; }
.shop-card-head .badge { margin-left: auto; }
.shop-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; padding: 12px 0; border-block: 1px solid var(--border); }
.shop-card-stats div { display: flex; flex-direction: column; }
.shop-card-stats strong { font-family: var(--display); font-size: 0.9rem; }
.shop-card-stats span { color: var(--muted); font-size: 0.72rem; }
.shop-card-actions { display: flex; gap: 8px; align-items: center; }
.shop-card-actions .btn:last-child { margin-left: auto; }
.empty-state { padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; }
.empty-state > .icon { width: 34px; height: 34px; margin-bottom: 12px; color: #a995ff; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: 0.86rem; }
.create-panel { margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.create-panel summary { display: flex; align-items: center; gap: 9px; padding: 15px 18px; color: var(--text-soft); font-size: 0.88rem; font-weight: 600; cursor: pointer; list-style: none; }
.create-panel summary::-webkit-details-marker { display: none; }
.create-panel summary .icon { width: 17px; height: 17px; color: #a995ff; }
.create-panel[open] summary { border-bottom: 1px solid var(--border); }
.create-body { padding: 18px; }
.note-card { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid rgba(34, 211, 238, 0.2); border-radius: var(--radius); background: rgba(34, 211, 238, 0.045); margin-bottom: 18px; }
.note-card > .icon { color: #67e8f9; margin-top: 2px; }
.note-card div { display: flex; flex-direction: column; gap: 3px; }
.note-card strong { font-size: 0.86rem; }
.note-card span { color: var(--muted); font-size: 0.8rem; }
.detail-list { display: flex; flex-direction: column; }
.detail-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.steps-list { display: flex; flex-direction: column; gap: 14px; counter-reset: step; list-style: none; }
.steps-list li { position: relative; padding-left: 38px; }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 8px; background: var(--accent-soft); color: #cfc5ff; font-size: 0.74rem; font-weight: 700; }
.steps-list strong { display: block; font-size: 0.86rem; }
.steps-list span { color: var(--muted); font-size: 0.8rem; }

/* code blocks */
.code-list { display: flex; flex-direction: column; gap: 9px; }
.code-list > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.code-list code { background: none; color: #c9d2ea; padding: 0; }
.code-list small { width: 100%; color: var(--muted); font-size: 0.75rem; }
.code-tag { display: inline-flex; padding: 2px 6px; border-radius: 5px; background: rgba(52, 211, 153, 0.12); color: #8ef0c8; font-family: ui-monospace, monospace; font-size: 0.64rem; font-weight: 700; }
.code-block { border: 1px solid var(--border); border-radius: 12px; background: #070a13; color: #c9d2ea; margin-top: 10px; }
.api-docs { display: flex; flex-direction: column; gap: 16px; }
.api-endpoint { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.api-endpoint > code { margin-left: 8px; background: none; color: #c9d2ea; padding: 0; }
.api-endpoint p { margin-top: 7px; color: var(--muted); font-size: 0.8rem; }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.key-box > div { display: flex; flex-direction: column; gap: 3px; }
.key-box span { color: var(--muted); font-size: 0.75rem; }
.new-key-card { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.new-key-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.new-key-head > .icon { color: #8ef0c8; }
.new-key-head div { display: flex; flex-direction: column; }
.new-key-head span { color: var(--muted); font-size: 0.8rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-size: 0.8rem; }
.danger-card { border-color: rgba(255, 92, 122, 0.3); background: rgba(255, 92, 122, 0.045); }
.danger-text { color: #ffb3c0 !important; }

/* ---------- Shop ---------- */
.theme-shop { background: #070912; }
.shop-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: rgba(7, 9, 18, 0.8); backdrop-filter: blur(16px); }
.shop-header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.shop-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.shop-brand > span { display: flex; flex-direction: column; line-height: 1.2; }
.shop-brand strong { font-family: var(--display); font-size: 0.98rem; }
.shop-brand small { color: var(--muted); font-size: 0.68rem; }
.shop-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.shop-logo-fallback { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; }
.shop-nav { display: flex; align-items: center; gap: 20px; margin-left: 10px; overflow-x: auto; }
.shop-nav a { color: var(--text-soft); font-size: 0.84rem; white-space: nowrap; }
.shop-nav a:hover { color: #fff; }
.shop-contact { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.shop-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.shop-hero { position: relative; overflow: hidden; padding: 56px 0 46px; border-bottom: 1px solid var(--border); background: radial-gradient(800px 360px at 15% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 65%); }
.shop-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(7, 9, 18, 0.55)); pointer-events: none; }
.shop-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.shop-hero h1 { margin: 16px 0 10px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.shop-hero p { max-width: 620px; color: var(--text-soft); }
.shop-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.shop-contact-pill { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.78rem; }
.shop-hero-stats { display: flex; gap: 26px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 11, 21, 0.55); backdrop-filter: blur(10px); }
.shop-hero-stats div { display: flex; flex-direction: column; }
.shop-hero-stats strong { font-family: var(--display); font-size: 0.9rem; }
.shop-hero-stats span { color: var(--muted); font-size: 0.7rem; }
.shop-main { min-height: 60vh; }
.shop-section { padding: 36px 0 10px; }
.shop-section-head { margin-bottom: 18px; }
.shop-section-head h2 { margin-bottom: 5px; font-size: 1.45rem; }
.shop-section-head p { color: var(--muted); font-size: 0.86rem; }
.sale-banner { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sale-banner > .icon { color: #cfc5ff; }
.sale-banner div { display: flex; flex-direction: column; }
.sale-banner span { color: var(--muted); font-size: 0.8rem; }
.catalog-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 0.8rem; }
.chip:hover { border-color: var(--border-strong); color: #fff; }
.chip.active { border-color: transparent; background: var(--accent); color: #fff; }
.catalog-group { margin-bottom: 26px; }
.catalog-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.catalog-group-head h3 { font-family: var(--font); font-size: 0.95rem; font-weight: 700; }
.catalog-group-head span { padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 0.7rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28); }
.product-img, .product-hero-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 28%, #101528), #0c101d); }
.product-img img, .product-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img-fallback { display: flex; align-items: center; justify-content: center; }
.product-img-fallback span { font-family: var(--display); font-size: 2.9rem; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 17px 17px; }
.product-body h3 { margin-bottom: 6px; font-family: var(--font); font-size: 1rem; font-weight: 700; }
.product-body p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 0.82rem; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.price { font-family: var(--display); font-weight: 600; }
.product-foot .price { font-size: 1.08rem; }
.price s { margin-right: 5px; color: var(--muted); font-family: var(--font); font-size: 0.78rem; font-weight: 400; }
.product-buy { display: inline-flex; align-items: center; gap: 5px; color: #b9adff; font-size: 0.78rem; font-weight: 700; }
.product-buy .icon { width: 14px; height: 14px; }
.sale-flag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: rgba(255, 92, 122, 0.92); color: #fff; font-size: 0.7rem; font-weight: 800; }
.collection-flag { background: rgba(34, 211, 238, 0.9); color: #041018; }
.shop-info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 20px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.shop-info-strip div { display: flex; flex-direction: column; gap: 3px; }
.shop-info-strip .icon { margin-bottom: 7px; color: #a995ff; }
.shop-info-strip strong { font-size: 0.86rem; }
.shop-info-strip span { color: var(--muted); font-size: 0.78rem; }
.shop-footer { margin-top: 56px; border-top: 1px solid var(--border); background: rgba(6, 8, 15, 0.75); }
.shop-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 30px 24px; }
.shop-footer-inner p { margin-top: 4px; max-width: 460px; color: var(--muted); font-size: 0.8rem; }
.shop-footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 0.76rem; }
.powered a { color: #b9adff; }

.product-page { padding-top: 26px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: 0.78rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .icon { width: 13px; height: 13px; }
.product-layout { display: grid; grid-template-columns: 1fr 390px; gap: 26px; align-items: start; }
.product-main { min-width: 0; }
.product-hero-img { border: 1px solid var(--border); border-radius: var(--radius); }
.product-head { padding: 24px 2px 0; }
.product-head h1 { margin: 12px 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.product-desc { color: var(--text-soft); font-size: 0.94rem; line-height: 1.65; }
.product-benefits { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.product-benefits div { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.78rem; }
.product-benefits .icon { width: 16px; height: 16px; color: #8ef0c8; }
.checkout-card { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(170deg, rgba(20, 25, 45, 0.95), rgba(10, 13, 25, 0.98)); box-shadow: var(--shadow); }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.checkout-head span { color: var(--muted); font-size: 0.8rem; }
.checkout-head strong { font-family: var(--display); font-size: 1.3rem; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-note { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 9px; background: rgba(52, 211, 153, 0.08); color: #a7f3d0; font-size: 0.76rem; }
.checkout-note .icon { width: 15px; height: 15px; }
.provider-list { display: flex; flex-direction: column; gap: 8px; }
.provider { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.provider:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.provider input { accent-color: var(--accent); }
.provider-body { display: flex; flex-direction: column; }
.provider-body strong { font-size: 0.84rem; }
.provider-body small { color: var(--muted); font-size: 0.72rem; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--border); }
.checkout-total span { color: var(--muted); font-size: 0.82rem; }
.checkout-total strong { font-family: var(--display); font-size: 1.35rem; }
.checkout-safe { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 0.72rem; }
.checkout-safe .icon { width: 13px; height: 13px; }
.article-page { padding-top: 30px; }
.article-card { padding: 34px; }
.article-card h1 { margin-bottom: 20px; }
.article-content { color: var(--text-soft); font-size: 0.94rem; line-height: 1.75; }
.pay-page { display: flex; justify-content: center; padding: 48px 24px 20px; }
.pay-card { width: 100%; max-width: 560px; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.pay-status { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pay-status > .icon { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--panel-strong); }
.pay-status.ok > .icon { background: rgba(52, 211, 153, 0.16); color: #8ef0c8; }
.pay-status.bad > .icon { background: rgba(255, 92, 122, 0.16); color: #ffb3c0; }
.pay-status.wait > .icon { background: rgba(251, 191, 36, 0.14); color: #fde68a; }
.pay-status h1 { font-size: 1.4rem; }
.pay-status p { margin-top: 4px; color: var(--muted); font-size: 0.84rem; }
.pay-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 14px 0; }
.pay-details > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pay-details span { color: var(--muted); font-size: 0.72rem; }
.pay-details strong { font-size: 0.84rem; overflow-wrap: anywhere; }
.delivery-box { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 14px 0; border: 1px solid rgba(251, 191, 36, 0.26); border-radius: 12px; background: rgba(251, 191, 36, 0.06); }
.delivery-box.ok { border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.07); }
.delivery-box > .icon { color: #fde68a; }
.delivery-box.ok > .icon { color: #8ef0c8; }
.delivery-box div { display: flex; flex-direction: column; }
.delivery-box span { color: var(--muted); font-size: 0.78rem; }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }

/* ---------- Light shop theme ---------- */
body.theme-light {
  color-scheme: light;
  --bg: #f4f5fa;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-strong: rgba(15, 18, 35, 0.06);
  --border: rgba(20, 24, 42, 0.1);
  --border-strong: rgba(20, 24, 42, 0.18);
  --text: #151a2c;
  --text-soft: #3c445c;
  --muted: #6a7390;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --shadow: 0 22px 55px rgba(20, 24, 42, 0.12);
}
body.theme-light::before {
  background:
    radial-gradient(900px 600px at 12% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(180deg, #fafbff 0%, #f4f5fa 60%, #eef0f7 100%);
}
body.theme-light a:hover { color: var(--text); }
body.theme-light .shop-header { background: rgba(255, 255, 255, 0.86); }
body.theme-light .shop-hero::after { background: linear-gradient(180deg, transparent, rgba(244, 245, 250, 0.65)); }
body.theme-light .shop-hero-stats { background: rgba(255, 255, 255, 0.72); box-shadow: 0 12px 30px rgba(20, 24, 42, 0.07); }
body.theme-light .sale-banner > .icon,
body.theme-light .shop-info-strip .icon { color: var(--accent); }
body.theme-light .product-img,
body.theme-light .product-hero-img { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 20%, #ffffff), #eef0f8); }
body.theme-light .product-img-fallback span { color: color-mix(in srgb, var(--accent) 55%, #ffffff); }
body.theme-light .product-buy,
body.theme-light .powered a { color: color-mix(in srgb, var(--accent) 78%, #000); }
body.theme-light .checkout-card { background: linear-gradient(170deg, #ffffff, #f7f8fd); }
body.theme-light .checkout-note { background: rgba(16, 185, 129, 0.1); color: #047857; }
body.theme-light .shop-footer { background: #edeff7; }
body.theme-light .delivery-box { background: rgba(251, 191, 36, 0.1); }
body.theme-light .delivery-box > .icon { color: #b45309; }
body.theme-light .delivery-box.ok { background: rgba(16, 185, 129, 0.1); }
body.theme-light .delivery-box.ok > .icon,
body.theme-light .pay-status.ok > .icon { color: #047857; }
body.theme-light .pay-status.bad > .icon { color: #be123c; }
body.theme-light .pay-status.wait > .icon { color: #b45309; }
body.theme-light .chip.active,
body.theme-light .shop-logo-fallback { color: #fff; }
body.theme-light .btn-primary { color: #fff; }
body.theme-light .badge { color: var(--text-soft); }

/* ---------- Legal, error, misc ---------- */
.legal-hero { padding: 66px 0 34px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.legal-hero p { max-width: 620px; margin-top: 10px; color: var(--muted); }
.legal-wrap { display: flex; justify-content: center; }
.legal { width: 100%; max-width: 820px; color: var(--text-soft); font-size: 0.94rem; line-height: 1.75; }
.legal h2 { margin: 30px 0 10px; font-family: var(--font); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.error-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.error-card { max-width: 540px; width: 100%; padding: 36px; border: 1px solid var(--border); border-radius: 22px; background: rgba(12, 16, 30, 0.9); box-shadow: var(--shadow); text-align: center; }
.error-card .brand { justify-content: center; margin-bottom: 22px; }
.error-card .feature-icon { margin: 0 auto 16px; }
.error-card h1 { margin-bottom: 10px; font-size: 1.7rem; }
.error-card p { margin-bottom: 20px; color: var(--muted); font-size: 0.9rem; word-break: break-word; }
.error-card .row { justify-content: center; }

/* ---------- Cabinet v2 ---------- */
.cp-app { min-height: 100vh; }
.cp-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: rgba(7, 9, 18, 0.86); backdrop-filter: blur(18px); }
.cp-header-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.cp-nav { display: flex; align-items: center; gap: 4px; }
.cp-nav-link { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: 0.86rem; font-weight: 600; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.cp-nav-link:hover { background: var(--panel); color: var(--text); }
.cp-nav-link.active { background: rgba(124, 92, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.24); }
.cp-header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cp-balance { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 13px; border: 1px solid rgba(52, 211, 153, 0.2); border-radius: 12px; background: rgba(52, 211, 153, 0.06); line-height: 1.15; }
.cp-balance span { color: #86efac; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cp-balance strong { color: #d1fae5; font-family: var(--display); font-size: 0.9rem; }
.cp-user { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.cp-user-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--text-soft); font-size: 0.78rem; white-space: nowrap; }
.cp-shopbar { border-top: 1px solid var(--border); background: rgba(10, 13, 24, 0.72); }
.cp-shopbar-inner { display: flex; align-items: center; gap: 18px; min-height: 54px; }
.cp-shoptabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cp-shoptabs::-webkit-scrollbar { display: none; }
.cp-shoptab { padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.cp-shoptab:hover { background: var(--panel); color: var(--text); }
.cp-shoptab.active { background: var(--panel-strong); color: #fff; }
.cp-main-v2 { padding: 38px 0 80px; }
.cp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.cp-greeting { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.cp-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1.02; }
.cp-date { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.cp-hero-aside { display: flex; align-items: center; gap: 12px; }
.cp-hero-shops { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 0.78rem; font-weight: 600; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.promo-card { position: relative; display: flex; align-items: center; gap: 16px; overflow: hidden; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.promo-card::after { content: ''; position: absolute; inset: auto -30px -80px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 66%); pointer-events: none; }
.promo-main { border-color: rgba(124, 92, 255, 0.26); background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.05) 60%, transparent); }
.promo-pay { border-color: rgba(52, 211, 153, 0.2); background: linear-gradient(120deg, rgba(52, 211, 153, 0.08), transparent 65%); }
.promo-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: rgba(255, 255, 255, 0.07); color: #c6bcff; }
.promo-pay .promo-icon { color: #86efac; }
.promo-icon .icon { width: 20px; height: 20px; }
.promo-copy { min-width: 0; flex: 1; }
.promo-copy > span { color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.promo-copy h3 { margin: 3px 0 3px; font-family: var(--font); font-size: 0.95rem; font-weight: 700; }
.promo-copy p { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.promo-card > .btn { position: relative; z-index: 1; flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.metric-card { padding: 20px 22px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.metric-label { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-value { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.metric-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--muted); font-size: 0.75rem; }
.metric-chart { margin-top: 10px; }
.metric-chart .chart { height: 82px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: rgba(7, 10, 20, 0.55); }
.seg-item { padding: 4px 9px; border-radius: 6px; color: var(--muted); font-size: 0.71rem; font-weight: 600; }
.seg-item:hover { color: var(--text); }
.seg-item.active { background: rgba(124, 92, 255, 0.24); color: #fff; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.delta-up { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.delta-down { background: rgba(255, 92, 122, 0.12); color: #ff9aae; }
.delta-flat { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.cp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 26px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.cp-strip a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; background: #0a0e1b; color: var(--text-soft); font-size: 0.78rem; }
.cp-strip a:hover { background: #0e1322; color: #fff; }
.cp-strip a strong { font-family: var(--display); font-size: 0.9rem; }
.cp-strip a.warn strong { color: var(--warn); }
.cp-section { margin-bottom: 24px; }
.cp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.cp-section-head h2 { font-family: var(--font); font-size: 1.02rem; font-weight: 700; }
.cp-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.cp-link:hover { color: #fff; }
.cp-link .icon { width: 14px; height: 14px; }
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ov-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.ov-stat span { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ov-stat strong { margin-top: 3px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.ov-stat small { color: var(--muted); font-size: 0.72rem; }
.ov-stat.warn { border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.06); }
.ov-stat.warn strong { color: #fde68a; }
.shop-admin-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-bottom: 18px; }
.admin-panel { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 0.86rem; font-weight: 700; }
.api-key-row { display: flex; align-items: center; gap: 8px; }
.api-key-row code { flex: 1; min-width: 0; overflow: hidden; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: rgba(7, 10, 20, 0.6); color: #cfc5ff; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-panel .muted-small { margin-top: 8px; font-size: 0.73rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text-soft); font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.switch-knob { position: relative; width: 34px; height: 19px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.18s; }
.switch-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.switch.on { border-color: rgba(52, 211, 153, 0.34); color: #d1fae5; }
.switch.on .switch-knob { background: #34d399; }
.switch.on .switch-knob::after { transform: translateX(15px); }
.shop-head-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-head-main { display: flex; align-items: center; gap: 15px; }
.shop-avatar { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(140deg, color-mix(in srgb, var(--dot, var(--accent)) 65%, #101528), #101528); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot, var(--accent)) 40%, transparent); font-family: var(--display); font-size: 1.15rem; }
.shop-head-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-head-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.shop-head-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 0.78rem; }
.shop-head-link:hover { color: #cfc5ff; }
.shop-head-link .icon { width: 13px; height: 13px; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--text); }
.modal::backdrop { background: rgba(3, 5, 12, 0.72); backdrop-filter: blur(6px); }
.modal-card { margin: 0; padding: 24px; border: 1px solid var(--border-strong); border-radius: 20px; background: #0c1120; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { font-size: 1.3rem; }
.modal-head p { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.subdomain-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 11px; background: rgba(8, 11, 22, 0.65); }
.subdomain-input .input { border: 0; background: transparent; box-shadow: none; }
.subdomain-input span { display: inline-flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
.test-mode-note { border: 1px solid rgba(124, 92, 255, 0.34); background: rgba(124, 92, 255, 0.12); color: #d9d2ff; }
.profile-rows { display: flex; flex-direction: column; margin-bottom: 12px; }
.profile-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-rows > div:last-child { border-bottom: 0; }
.profile-rows span { color: var(--muted); font-size: 0.8rem; }
.profile-rows strong { text-align: right; font-size: 0.84rem; font-weight: 600; }
.checklist { display: flex; flex-direction: column; gap: 4px; }
.checklist-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 0.78rem; }
.checklist-head strong { color: var(--text); font-family: var(--display); font-size: 0.9rem; }
.progress { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.check-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; color: var(--text-soft); font-size: 0.82rem; }
.check-item .icon { width: 15px; height: 15px; color: var(--muted); }
.check-item:hover { background: rgba(255, 255, 255, 0.03); color: #fff; }
.check-item.done { color: var(--muted); }
.check-item.done .icon { color: #34d399; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.link-card > div { display: flex; align-items: center; gap: 11px; }
.link-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.copy-inline { display: flex; gap: 8px; }
.copy-inline .input { flex: 1; min-width: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row-details { margin-top: 2px; }
.row-detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 6px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); font-size: 0.8rem; }
.row-detail-body span { margin-right: 6px; color: var(--muted); }
.collection-card { text-decoration: none; }

@media (max-width: 1100px) {
  .cp-nav-link { padding: 8px 9px; font-size: 0.8rem; }
  .cp-user-email { display: none; }
  .promo-grid { grid-template-columns: 1fr; }
  .shop-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cp-header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .cp-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cp-nav::-webkit-scrollbar { display: none; }
  .cp-header-right { margin-left: auto; }
  .cp-header-right .btn span { display: none; }
  .cp-balance { display: none; }
  .cp-shopbar-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .cp-shopbar-inner .shop-switcher { align-self: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .cp-strip { grid-template-columns: 1fr 1fr; }
  .ov-stats { grid-template-columns: 1fr 1fr; }
  .shop-head-card { align-items: flex-start; }
}
@media (max-width: 640px) {
  .cp-hero h1 { font-size: 2rem; }
  .cp-hero-aside { width: 100%; justify-content: space-between; }
  .cp-hero-aside .btn { flex: 1; justify-content: center; }
  .promo-card { flex-wrap: wrap; }
  .promo-card > .btn { width: 100%; justify-content: center; }
  .metric-top { flex-direction: column; gap: 10px; }
  .seg { align-self: flex-start; }
  .cp-strip { grid-template-columns: 1fr 1fr; }
  .ov-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ov-stat { padding: 13px; }
  .ov-stat strong { font-size: 1.1rem; }
  .modal-card { padding: 18px; }
  .subdomain-input span { font-size: 0.72rem; }
}

/* ---------- Shop template ---------- */
.theme-shop .shop-header { padding: 14px 0 0; border-bottom: 0; background: transparent; backdrop-filter: none; }
.theme-shop .shop-header-inner { max-width: 1180px; min-height: 66px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 20px; background: rgba(9, 12, 22, 0.8); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26); }
.theme-shop .shop-logo { width: 42px; height: 42px; border-radius: 14px; }
.theme-shop .shop-hero { max-width: 1180px; margin: 16px auto 0; padding: 48px 0 42px; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(760px 320px at 12% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 66%), linear-gradient(150deg, #0d1222, #090d17 70%); }
.theme-shop .shop-hero::after { display: none; }
.theme-shop .shop-hero h1 { text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.theme-shop .shop-hero-stats { border-radius: 18px; }
.theme-shop .shop-section { padding-top: 36px; }
.theme-shop .product-card { border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)); }
.theme-shop .product-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34); }
.theme-shop .product-img { aspect-ratio: 4 / 3; }
.theme-shop .checkout-card { border-radius: 22px; }
.theme-shop .shop-footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(8, 11, 20, 0.72); }
body.theme-light .shop-header-inner { background: rgba(255, 255, 255, 0.88); border-color: rgba(20, 24, 42, 0.1); box-shadow: 0 18px 44px rgba(20, 24, 42, 0.08); }
body.theme-light .shop-hero { background: radial-gradient(760px 320px at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%), linear-gradient(150deg, #ffffff, #f3f5fb 72%); border-color: rgba(20, 24, 42, 0.09); }
body.theme-light .shop-hero h1 { text-shadow: none; }
body.theme-light .shop-footer { background: #eef0f7; }
@media (max-width: 640px) {
  .theme-shop .shop-header-inner { min-height: 60px; margin: 0 10px; padding: 8px 12px; border-radius: 16px; }
  .theme-shop .shop-hero { margin: 10px 10px 0; padding: 34px 0 30px; border-radius: 22px; }
  .theme-shop .shop-hero h1 { margin-top: 12px; }
  .theme-shop .shop-section { padding-top: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr 340px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--border-strong); border-radius: 16px; background: #0c101d; box-shadow: var(--shadow); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open .nav-link { padding: 10px 12px; border-radius: 9px; }
  .site-header.nav-open .nav-link:hover { background: var(--panel); }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions { margin-left: 0; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; margin-top: 10px; }
  .store-preview { transform: none; }
  .integration-grid { grid-template-columns: 1fr; gap: 34px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-card { border: 0; background: transparent; box-shadow: none; padding: 10px; }
  .cp-sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .cp-sidebar.open { transform: translateX(0); }
  .side-close { display: inline-flex; }
  .cp-body { margin-left: 0; }
  .cp-topbar > .icon-btn { display: inline-flex; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .shop-cards { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
  .shop-hero-inner { flex-direction: column; align-items: flex-start; }
  .shop-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .cta-actions { width: 100%; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .site-nav { top: 64px; }
  .header-actions .btn span { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .shop-info-strip { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-value { font-size: 1.05rem; }
  .shop-card-stats { grid-template-columns: 1fr 1fr; }
  .pay-details { grid-template-columns: 1fr; }
  .shop-footer-inner { flex-direction: column; }
  .shop-footer-links { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .shop-hero-stats { width: 100%; justify-content: space-between; gap: 10px; padding: 14px; }
  .user-email { display: none; }
  .balance-pill { display: none; }
  .page-head { align-items: flex-start; }
  .form-actions .btn { flex: 1; }
  .filter-bar .input-small { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Биллинг ===== */
.bill-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 18px; padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(124, 92, 255, 0.35); border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.34), rgba(34, 211, 238, 0.12) 60%, rgba(16, 21, 40, 0.8));
}
.bill-hero::before { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 70%); }
.bill-hero-main { flex: 1 1 360px; min-width: 0; }
.bill-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bill-eyebrow .icon { width: 16px; height: 16px; }
.bill-balance { display: block; margin: 8px 0 4px; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; }
.bill-hero-main p { margin: 0 0 16px; color: var(--text-soft); }
.bill-meter { height: 8px; max-width: 460px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bill-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.4s; }
.bill-hero-foot { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.bill-cta { flex: 0 0 auto; }

.bill-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.bill-stat { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
.bill-stat > div { display: flex; flex-direction: column; min-width: 0; }
.bill-stat small { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.bill-stat strong { margin-top: 2px; font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }
.bill-stat em { margin-top: 2px; color: var(--muted); font-size: 0.72rem; font-style: normal; }
.bill-stat-ico, .bill-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; }
.bill-ico { width: 40px; height: 40px; border-radius: 13px; }
.bill-stat-ico .icon, .bill-ico .icon { width: 20px; height: 20px; }
.tone-in { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.tone-out { background: rgba(255, 92, 122, 0.14); color: #ff7b93; }
.tone-wait { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.tone-accent { background: var(--accent-soft); color: #b8a8ff; }

.bill-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.bill-card { padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); margin-bottom: 0; }
.bill-grid + .bill-card { margin-bottom: 18px; }
.bill-card-head { margin-bottom: 18px; }
.bill-card-head h2 { font-family: var(--font); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; }
.bill-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.84rem; }

.bill-form { display: flex; flex-direction: column; gap: 16px; }
.bill-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bill-method { cursor: pointer; }
.bill-method input { position: absolute; opacity: 0; pointer-events: none; }
.bill-method span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.025); transition: border-color 0.18s, background 0.18s; }
.bill-method .icon { width: 20px; height: 20px; margin-bottom: 6px; color: var(--muted); }
.bill-method strong { font-size: 0.9rem; }
.bill-method small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.bill-method:hover span { border-color: var(--border-strong); }
.bill-method input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.bill-method input:checked + span .icon { color: #cfc5ff; }
.bill-method input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.bill-amount { display: flex; gap: 10px; }
.bill-amount .input { flex: 1; }
.bill-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 0.8rem; }
.bill-hint .icon { width: 15px; height: 15px; }
.bill-form button[disabled] { opacity: 0.5; cursor: not-allowed; }

.bill-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bill-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); }
.bill-list li:first-child { border-top: 0; padding-top: 0; }
.bill-li-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bill-li-main strong { font-size: 0.92rem; }
.bill-li-main small, .bill-li-side small { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-li-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.bill-li-side strong { font-family: var(--display); font-size: 0.92rem; }
.bill-li-side .positive { color: #34d399; }
.bill-li-side .negative { color: #ff7b93; }
.bill-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 10px; color: var(--muted); text-align: center; font-size: 0.86rem; }
.bill-empty .icon { width: 28px; height: 28px; opacity: 0.6; }
.bill-private { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.bill-private .icon { width: 14px; height: 14px; flex: 0 0 auto; }

/* ===== Настройки магазина ===== */
.set-form { display: flex; flex-direction: column; gap: 16px; }
.set-section { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 26px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.set-head h2 { font-family: var(--font); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.set-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.84rem; }
.set-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-save { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: 20px; background: rgba(13, 18, 34, 0.9); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.set-save span { color: var(--muted); font-size: 0.8rem; max-width: 520px; }
.social-field > span { display: flex; align-items: center; gap: 8px; }
.social-field .icon { width: 16px; height: 16px; color: #b8a8ff; }

.img-field-row { display: flex; align-items: center; gap: 14px; }
.img-thumb { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 64px; height: 64px; border: 1px dashed var(--border-strong); border-radius: 16px; background: rgba(255, 255, 255, 0.03); overflow: hidden; color: var(--muted); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb .icon { width: 24px; height: 24px; }
.img-thumb.loading { opacity: 0.5; animation: img-pulse 1s ease-in-out infinite; }
@keyframes img-pulse { 50% { opacity: 0.25; } }
.img-field-ctl { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.img-field-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.img-field-btns label { cursor: pointer; }
.shop-single { cursor: default; }

@media (max-width: 1000px) {
  .bill-stats { grid-template-columns: repeat(2, 1fr); }
  .bill-grid { grid-template-columns: 1fr; }
  .set-section { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .bill-stats { grid-template-columns: 1fr; }
  .bill-methods { grid-template-columns: 1fr; }
  .bill-amount { flex-direction: column; }
  .bill-card, .set-section { padding: 18px; }
}

/* ---------- Движение: единые тайминги и плавные переходы ---------- */
:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --d1: .16s;
  --d2: .24s;
  --d3: .38s;
}

@keyframes yd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes yd-pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes yd-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cp-main, .site-main, .auth-main { animation: yd-rise var(--d3) var(--ease) both; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--reveal-delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

.btn, .icon-btn, .page-btn, .switch-knob, .badge, .chip, .pill, .link, .nav-link, .cp-link,
.side-link, .cp-nav-link, .cp-shoptab, .shop-option, .seg-item, .input, .textarea, .color-input,
.provider, .bill-method span, .checkbox, .copy-row .btn {
  transition: transform var(--d2) var(--ease), background var(--d2) var(--ease-soft), border-color var(--d2) var(--ease-soft),
    box-shadow var(--d2) var(--ease-soft), color var(--d1) linear, opacity var(--d2) var(--ease-soft);
}

.card, .stat-card, .metric-card, .shop-card, .product-card, .feature-card, .price-card, .step-card,
.collection-card, .cores-card, .article-card, .note-card, .link-card, .promo-card, .pay-card, .bill-card,
.chart-card, .checkout-card, .danger-card, .error-card, .cta-card, .new-key-card {
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease-soft), border-color var(--d2) var(--ease-soft), background var(--d2) var(--ease-soft);
}
.card:hover, .stat-card:hover, .metric-card:hover, .shop-card:hover, .product-card:hover, .feature-card:hover,
.price-card:hover, .step-card:hover, .collection-card:hover, .link-card:hover, .promo-card:hover { transform: translateY(-3px); }

.btn:hover, .icon-btn:hover, .page-btn:hover { transform: translateY(-1px); }
.btn:active, .icon-btn:active, .page-btn:active { transform: translateY(0) scale(.985); transition-duration: var(--d1); }

.input:focus, .textarea:focus, .color-input:focus { transition-duration: var(--d1); }
.table tbody tr { transition: background var(--d2) var(--ease-soft); }
.side-link:hover, .cp-nav-link:hover, .cp-shoptab:hover, .shop-option:hover { transform: translateX(2px); }
.seg-item, .cp-shoptab { position: relative; }

.modal[open] { animation: yd-fade-in var(--d2) var(--ease-soft) both; }
.modal[open] .modal-card { animation: yd-pop-in var(--d3) var(--ease) both; }
.modal::backdrop { animation: yd-fade-in var(--d2) var(--ease-soft) both; }

.shop-menu, .cp-shopbar .shop-menu { animation: yd-pop-in var(--d2) var(--ease) both; transform-origin: top left; }
details[open] > .shop-menu { animation: yd-pop-in var(--d2) var(--ease) both; }

.site-header, .cp-header, .cp-topbar, .cp-shopbar, .set-save { transition: box-shadow var(--d2) var(--ease-soft), background var(--d2) var(--ease-soft), transform var(--d2) var(--ease); }
.site-header.scrolled, .cp-header.scrolled { background: rgba(7, 9, 18, 0.94); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.site-header.nav-open .site-nav { animation: yd-pop-in var(--d2) var(--ease) both; }
.mobile-menu-btn, .side-close { transition: transform var(--d2) var(--ease), background var(--d2) var(--ease-soft); }
#yd-toast { transition: opacity var(--d2) var(--ease-soft), transform var(--d2) var(--ease) !important; }

.progress span, .bill-meter span { transition: width .5s var(--ease); }
.chart rect { transform-box: fill-box; transform-origin: bottom; animation: yd-bar .55s var(--ease) both; }
@keyframes yd-bar { from { transform: scaleY(0); opacity: .25; } to { transform: scaleY(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
