:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --card: #141b30;
  --card-border: #232c47;
  --text: #e8ecf5;
  --muted: #8b93ad;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(135deg, #22d3ee, #a78bfa);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
}

/* ---------- Слайди ---------- */
.slide {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
  padding: 40px 20px 90px;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slide-inner {
  width: 100%;
  max-width: 1180px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.slide-inner.center { text-align: center; }

h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 750; margin: 14px 0 30px; }
h3 { font-size: 19px; margin-bottom: 10px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle { color: var(--muted); font-size: 20px; margin-top: 18px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 40px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.slide-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .35);
  padding: 6px 14px;
  border-radius: 999px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.title-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.chip {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
}

.slide-lead { color: var(--muted); font-size: 17px; margin: -14px 0 24px; max-width: 820px; }

/* ---------- Картки ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.4); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-icon { font-size: 30px; margin-bottom: 14px; }

.accent-cyan { border-top: 3px solid var(--cyan); }
.accent-violet { border-top: 3px solid var(--violet); }
.accent-green { border-top: 3px solid var(--green); }

/* ---------- Callout ---------- */
.callout {
  margin-top: 26px;
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 12px;
  padding: 16px 22px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
}
.callout-strong {
  background: rgba(167, 139, 250, .08);
  border-color: rgba(167, 139, 250, .35);
}

code {
  background: rgba(139, 147, 173, .15);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .9em;
}

/* ---------- Flow strip (слайд 3) ---------- */
.flow-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.flow-node {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
}
.flow-node small { color: var(--muted); font-weight: 400; }
.flow-arrow {
  font-size: 24px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slideArrow 1.6s infinite;
}
@keyframes slideArrow { 50% { transform: translateX(6px); } }

/* ---------- Позиціонування (слайд 4) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col-do, .col-dont {
  border-radius: 16px;
  padding: 26px;
}
.col-do { background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .3); }
.col-dont { background: rgba(248, 113, 113, .06); border: 1px solid rgba(248, 113, 113, .3); }
.col-do ul, .col-dont ul, .tech-col ul, .road-col ul { list-style: none; margin-top: 12px; }
.col-do li, .col-dont li, .tech-col li, .road-col li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.col-do li::before { content: "▸"; position: absolute; left: 4px; color: var(--green); }
.col-dont li::before { content: "▸"; position: absolute; left: 4px; color: var(--red); }
.col-dont li small { color: var(--muted); }

/* ---------- Технології (слайд 5) ---------- */
.tech-col {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px;
}
.tech-col li::before { content: "▸"; position: absolute; left: 4px; color: var(--cyan); }
.tech-col li { padding-left: 24px; position: relative; color: var(--muted); }
.tech-col li b { color: var(--text); }

/* ---------- Монетизація (слайд 7) ---------- */
.monet-table {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.monet-row {
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
  align-items: center;
}
.monet-row:last-child { border-bottom: none; }
.monet-row:not(.monet-head) div:first-child { font-weight: 650; }
.monet-row:not(.monet-head) div:nth-child(2) { color: var(--muted); line-height: 1.5; }
.monet-row:not(.monet-head) div:last-child { color: var(--cyan); font-weight: 600; }
.monet-head {
  background: var(--bg2);
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- UC1 (слайд 8) ---------- */
.uc1-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.uc1-features { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.feature-pill {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 600;
}
.uc1-note { width: 100%; color: var(--muted); margin-top: 12px; font-size: 15px; }

.batch-diagram {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
}
.batch-title { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.batch-call {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 15px;
}
.batch-num {
  background: var(--grad);
  color: #081018;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.batch-footer { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

.ui-example {
  margin-top: 16px;
  background: rgba(52, 211, 153, .06);
  border: 1px solid rgba(52, 211, 153, .25);
  border-radius: 12px;
  padding: 16px 20px;
}
.ui-line { padding: 4px 0; font-size: 15px; }
.green { color: var(--green); }

/* ---------- UC2 (слайд 9) ---------- */
.biz-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.biz-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.biz-step span {
  background: var(--grad);
  color: #081018;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.biz-arrow { color: var(--cyan); font-size: 20px; }

/* ---------- UC3 платіжна сторінка (слайд 10) ---------- */
.paypage-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.paypage {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.paypage-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 20px;
}
.paypage-logo { font-size: 32px; }
.paypage-title { font-weight: 700; font-size: 17px; }
.paypage-merchant { color: var(--muted); font-size: 13.5px; }
.paypage-amount { margin-left: auto; text-align: right; font-weight: 700; font-size: 18px; }
.paypage-amount small { color: var(--muted); font-weight: 400; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
}
.pay-method span { font-size: 20px; }
.pay-method small { color: var(--muted); font-weight: 400; margin-left: auto; }
.pay-method:hover { border-color: rgba(34,211,238,.5); transform: translateX(4px); }
.pay-method.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .08);
  box-shadow: 0 0 0 1px var(--cyan);
}

.pay-steps {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  min-height: 300px;
}
.pay-steps-placeholder { color: var(--muted); font-size: 15px; padding-top: 100px; text-align: center; }
.pay-steps h3 { margin-bottom: 16px; color: var(--cyan); }
.step-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  opacity: 0;
  transform: translateX(14px);
  animation: stepIn .4s ease forwards;
}
.step-line .step-dot {
  background: var(--grad);
  color: #081018;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.step-line p { font-size: 15px; line-height: 1.45; padding-top: 2px; }
.step-line p small { color: var(--muted); }
@keyframes stepIn { to { opacity: 1; transform: translateX(0); } }
.pay-steps .verdict {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- SSO (слайд 11) ---------- */
.sso-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sso-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  transition: all .3s ease;
  opacity: .45;
}
.sso-step b:first-child {
  background: var(--bg2);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: all .3s ease;
}
.sso-step.lit {
  opacity: 1;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .07);
  color: var(--text);
  transform: scale(1.02);
}
.sso-step.lit b:first-child { background: var(--grad); color: #081018; }

/* ---------- Roadmap (слайд 12) ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road-col {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
}
.road-col li::before { content: "▸"; position: absolute; left: 4px; color: var(--violet); }
.road-col li { padding-left: 24px; position: relative; color: var(--muted); }
.road-col li b { color: var(--text); }

/* ---------- Навігація ---------- */
.nav-arrows {
  position: fixed;
  bottom: 26px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
}
.nav-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  transition: all .2s ease;
}
.nav-arrows button:hover { border-color: var(--cyan); transform: scale(1.08); }
#slideCounter { color: var(--muted); font-size: 13.5px; min-width: 56px; text-align: center; }

.nav-dots {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.nav-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card-border);
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  padding: 0;
}
.nav-dots .dot.active { background: var(--cyan); transform: scale(1.5); box-shadow: 0 0 10px var(--cyan); }
.nav-dots .dot:hover { background: var(--muted); }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg2);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  background: var(--grad);
  width: 0;
  transition: width .4s ease;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .cards-3, .two-col, .uc1-grid, .paypage-wrap, .sso-steps, .roadmap { grid-template-columns: 1fr; }
  .nav-dots { display: none; }
  .slide { padding: 20px 14px 90px; align-items: flex-start; overflow-y: auto; }
  .monet-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ================= МОКАПИ ================= */

/* --- Телефон (UC1) --- */
.mock-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
}
.phone {
  width: 340px;
  height: 640px;
  background: #05080f;
  border: 2px solid var(--card-border);
  border-radius: 40px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(34,211,238,.08);
}
.phone-notch {
  width: 120px; height: 22px;
  background: #05080f;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
.phone-screen {
  background: var(--bg2);
  border-radius: 28px;
  height: calc(100% - 22px);
  margin-top: -22px;
  padding: 34px 18px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }

.w-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.w-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #081018; font-size: 14px;
}
.w-email { font-size: 12.5px; color: var(--muted); }
.w-total { text-align: center; margin: 10px 0 18px; }
.w-total b { font-size: 30px; }
.w-total small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.w-action {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}
.w-action:hover { border-color: var(--cyan); }
.w-action span { display: block; font-size: 18px; margin-bottom: 4px; }

.w-asset {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.w-asset .coin {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #081018; flex-shrink: 0;
}
.w-asset .coin.usdt { background: #26a17b; color: #fff; }
.w-asset .coin.usdtg { background: linear-gradient(135deg,#26a17b,#22d3ee); color: #fff; }
.w-asset .coin.trx { background: #ef4444; color: #fff; }
.w-asset .coin.usdc { background: #2775ca; color: #fff; }
.w-asset .aname { font-size: 13.5px; font-weight: 600; }
.w-asset .anet { font-size: 11px; color: var(--muted); }
.w-asset .abal { margin-left: auto; text-align: right; font-size: 13.5px; font-weight: 650; white-space: nowrap; flex-shrink: 0; }
.w-asset .abal small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.gasfree-badge {
  font-size: 9px; background: rgba(34,211,238,.15); color: var(--cyan);
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}

.w-btn {
  width: 100%;
  background: var(--grad);
  color: #081018;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: transform .15s;
}
.w-btn:hover { transform: scale(1.02); }
.w-btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--card-border); }
.w-btn.danger { background: var(--card); color: var(--red); border: 1px solid rgba(248,113,113,.4); }

.w-back {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 0 0 12px;
}
.w-back:hover { color: var(--text); }

.w-field { margin-bottom: 12px; }
.w-field label { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.w-field input, .w-field select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.w-field input:focus { border-color: var(--cyan); }

.w-feebox {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 12.5px;
}
.w-feebox .row { display: flex; justify-content: space-between; padding: 4px 0; }
.w-feebox .row.total { border-top: 1px solid var(--card-border); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.w-feebox .free { color: var(--green); font-weight: 600; }

.w-success { text-align: center; padding-top: 60px; }
.w-success .ok-ring {
  width: 80px; height: 80px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(52,211,153,.12);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  animation: popIn .4s ease;
}
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.w-success h4 { font-size: 18px; margin-bottom: 8px; }
.w-success p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.w-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.w-onramp-brand {
  text-align: center; font-size: 11px; color: var(--muted);
  border: 1px dashed var(--card-border); border-radius: 8px; padding: 6px; margin-bottom: 12px;
}
.w-spinner {
  width: 40px; height: 40px; margin: 30px auto;
  border: 3px solid var(--card-border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mock-side h3 { margin-bottom: 14px; color: var(--cyan); }
.side-list { list-style: none; }
.side-list li {
  padding: 9px 0 9px 24px; position: relative;
  color: var(--muted); font-size: 15px; line-height: 1.5;
}
.side-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--cyan); }
.side-list li b { color: var(--text); }

/* --- Дашборд мерчанта (UC2) --- */
.dash-mock {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.dash-sidebar {
  background: var(--card);
  border-right: 1px solid var(--card-border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-logo { font-weight: 800; font-size: 15px; padding: 6px 10px 16px; }
.dash-nav {
  background: none; border: none; color: var(--muted);
  text-align: left; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.dash-nav:hover { color: var(--text); background: var(--bg2); }
.dash-nav.active { color: var(--text); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }

.dash-main { padding: 22px; overflow-y: auto; max-height: 520px; scrollbar-width: thin; }
.dash-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.dash-btn {
  background: var(--grad); color: #081018; border: none;
  padding: 9px 16px; border-radius: 9px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.dash-btn.sm { padding: 6px 12px; font-size: 12px; }
.dash-btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--card-border); }

.inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-table th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
.inv-table td { padding: 11px 10px; border-bottom: 1px solid var(--card-border); }
.inv-table tr:last-child td { border-bottom: none; }
.inv-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-paid { background: rgba(52,211,153,.15); color: var(--green); }
.st-swept { background: rgba(34,211,238,.15); color: var(--cyan); }
.st-pending { background: rgba(251,191,36,.15); color: #fbbf24; }
.st-partial { background: rgba(167,139,250,.15); color: var(--violet); }
.st-expired { background: rgba(139,147,173,.15); color: var(--muted); }
.addr { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,15,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; border-radius: 0 18px 18px 0;
}
.modal {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 24px; width: 340px;
}
.modal h4 { margin-bottom: 16px; font-size: 16px; }
.modal .w-field input { font-size: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .dash-btn { flex: 1; padding: 11px; }

.dash-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.dash-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px;
}
.dash-card .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.dash-card .val { font-size: 20px; font-weight: 750; }
.dash-card .val small { font-size: 12px; color: var(--muted); font-weight: 400; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 13.5px;
}
.toggle-row small { display: block; color: var(--muted); margin-top: 3px; }
.toggle {
  width: 46px; height: 26px; border-radius: 999px;
  background: var(--card-border); border: none; cursor: pointer;
  position: relative; transition: background .25s; flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .25s;
}
.toggle.on { background: var(--cyan); }
.toggle.on::after { transform: translateX(20px); }

.otc-form { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.otc-quote {
  background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.3);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-top: 12px;
}

/* --- Платіжна сторінка: стани --- */
.pp-state { animation: stepIn .35s ease; }
.pp-qr {
  width: 150px; height: 150px; margin: 14px auto;
  background:
    repeating-conic-gradient(#e8ecf5 0% 25%, #0f1526 0% 50%) 50% / 18px 18px;
  border-radius: 10px;
  border: 8px solid #e8ecf5;
  image-rendering: pixelated;
}
.pp-addr {
  font-family: ui-monospace, monospace; font-size: 11.5px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 10px; word-break: break-all;
  text-align: center; color: var(--muted);
}
.pp-timer { text-align: center; color: #fbbf24; font-size: 12.5px; margin-top: 10px; font-weight: 600; }
.pp-methods-title { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

@media (max-width: 900px) {
  .mock-grid { grid-template-columns: 1fr; }
  .dash-mock { grid-template-columns: 1fr; }
  .dash-sidebar { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--card-border); }
}

/* --- Додаткові елементи мокапів --- */
.coin.usdt { background: #26a17b; color: #fff; }
.coin.usdc { background: #2775ca; color: #fff; }
.coin.trx  { background: #ef4444; color: #fff; }
.pay-method .coin {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; flex-shrink: 0;
}

.dash-wallet {
  margin: 0 6px 14px;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.dash-wallet .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dash-wallet .dw-bal { font-weight: 750; font-size: 15px; margin-top: 5px; }
.dash-wallet .dw-addr { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.w-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-check {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--muted); margin-top: 4px; cursor: pointer;
}
.w-check input { accent-color: var(--cyan); }

/* === UC1/UC2/UC3 additions === */
.coin.sol { background: #9945FF; color: #fff; }
.coin.usdtg { background: linear-gradient(135deg,#26a17b,#22d3ee); color: #fff; }

.w-menu { display: flex; flex-direction: column; gap: 8px; }
.w-mi {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; font-weight: 650; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.w-mi:hover { border-color: var(--accent); background: rgba(34,211,238,.06); }
.w-mi span { font-size: 16px; }
.w-mi small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 11px; }

.b-mini-btn {
  padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: rgba(34,211,238,.12); color: var(--accent);
  border: 1px solid rgba(34,211,238,.35); cursor: pointer; white-space: nowrap;
}
.b-mini-btn:hover { background: rgba(34,211,238,.22); }
.b-mini-btn.quar {
  background: rgba(248,113,113,.12); color: #f87171;
  border-color: rgba(248,113,113,.4);
}
.b-mini-btn.quar:hover { background: rgba(248,113,113,.22); }

.quar-badge {
  font-size: 9px; background: rgba(248,113,113,.15); color: #f87171;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.quar-note {
  border: 1px solid rgba(248,113,113,.35) !important;
  background: rgba(248,113,113,.07) !important;
  color: #fca5a5 !important;
  text-align: left; margin-bottom: 12px;
}

/* ---------- Посилання на джерела (слайди правил) ---------- */
.slide a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34,211,238,.4);
  transition: border-color .2s;
}
.slide a:hover { border-bottom-style: solid; border-bottom-color: var(--cyan); }

/* ---------- Переваги (слайд) ---------- */
.adv-user li::before { color: var(--green); }
.adv-user li b, .adv-biz li b { color: var(--text); }
.adv-user ul, .adv-biz ul { margin-top: 14px; }

.w-select {
  width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 14px;
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid var(--line); outline: none; cursor: pointer;
}
.w-select option { background: #141824; color: var(--text); }

.w-mi.off { opacity: .45; cursor: not-allowed; }
.w-biz { margin-top: 12px; }
.w-hist { display: flex; flex-direction: column; gap: 6px; }
.w-hrow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.w-hrow b { font-size: 12px; display: block; }
.w-hrow small { font-size: 10.5px; color: var(--muted); display: block; }
.w-hrow span {
  font-size: 9.5px; color: var(--cyan); white-space: nowrap; flex-shrink: 0;
  background: rgba(34,211,238,.1); padding: 2px 7px; border-radius: 999px;
}

/* ================= Парольний захист ================= */
body.gated { overflow: hidden; }
#gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s ease;
}
#gate.hide { opacity: 0; pointer-events: none; }
.gate-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 44px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5); max-width: 360px; width: calc(100% - 40px);
}
.gate-lock { font-size: 42px; }
.gate-title { font-size: 22px; font-weight: 700; }
.gate-sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
#gateInput {
  width: 100%; padding: 12px 16px; font-size: 18px; letter-spacing: 3px;
  text-align: center; color: var(--text);
  background: var(--bg2); border: 1px solid var(--card-border); border-radius: 12px;
  outline: none;
}
#gateInput:focus { border-color: var(--cyan); }
#gateBtn {
  width: 100%; padding: 12px 16px; font-size: 16px; font-weight: 600;
  color: #06121a; background: var(--grad); border: none; border-radius: 12px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
#gateBtn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,211,238,.25); }
.gate-err { display: none; color: var(--red); font-size: 13px; margin-top: 4px; }
.gate-err.show { display: block; }
.gate-box.shake { animation: gateShake .3s ease; }
@keyframes gateShake {
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
