/* ==========================================================================
   JJJ PAY — DESIGN SYSTEM & INTERACTIVE PROTOTYPE STUDIO (PRO-MAX v2.0)
   Aesthetic: High-Trust Neo-Banking & Payment Infrastructure (Almaty, KZ)
   Typography: SF Pro Display / Inter + SF Mono (strict tabular-nums)
   Zero Emojis • Pure Vector Geometry • Tactile Micro-Interactions
   ========================================================================== */

:root {
  --studio-bg: #eef2f6;
  --studio-grid: rgba(15, 23, 42, 0.035);
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;

  --brand-obsidian: #091524;
  --brand-deep: #0c2d34;
  --brand-emerald: #059669;
  --brand-emerald-hover: #047857;
  --brand-emerald-soft: #ecfdf5;
  --brand-emerald-border: #a7f3d0;

  --accent-blue: #2563eb;
  --accent-blue-soft: #eff6ff;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;
  --crimson: #dc2626;
  --crimson-soft: #fef2f2;
  --crimson-border: #fecaca;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 28px -8px rgba(15, 23, 42, 0.07);
  --shadow-phone: 0 30px 70px -15px rgba(9, 21, 36, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "JetBrains Mono", monospace;
}

body.studio-dark {
  --studio-bg: #0b111b;
  --studio-grid: rgba(255, 255, 255, 0.03);
  --surface: #131c2b;
  --surface-subtle: #182336;
  --surface-muted: #1e2b42;
  --border: #26354d;
  --border-strong: #364968;
  --ink: #f1f5f9;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;
  --brand-emerald-soft: rgba(5, 150, 105, 0.16);
  --brand-emerald-border: rgba(16, 185, 129, 0.35);
  --amber-soft: rgba(217, 119, 6, 0.16);
  --amber-border: rgba(245, 158, 11, 0.35);
  --crimson-soft: rgba(220, 38, 38, 0.16);
  --crimson-border: rgba(248, 113, 113, 0.35);
  --accent-blue-soft: rgba(37, 99, 235, 0.18);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--studio-bg);
  background-image:
    linear-gradient(to right, var(--studio-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--studio-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 180ms ease, color 180ms ease;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

button, select, input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-emerald);
  outline-offset: 2px;
}

/* ==========================================================================
   ВЕРХНЯЯ СТУДИЙНАЯ ПАНЕЛЬ (SHOWCASE HEADER)
   ========================================================================== */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 21, 36, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 10px 22px;
}

.studio-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.brand-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stage-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

/* Переключатель 4 экранов экосистемы */
.product-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 3px;
  flex-wrap: wrap;
}

.prod-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 150ms ease;
}

.prod-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.prod-tab.active {
  background: #ffffff;
  color: #091524;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.prod-tab svg {
  width: 15px;
  height: 15px;
}

.alert-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f59e0b;
  color: #091524;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-sync-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 12px;
  color: #d1fae5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   ОСНОВНОЙ КОНТЕЙНЕР СЦЕНИЧЕСКОЙ ПРЕЗЕНТАЦИИ
   ========================================================================== */
.studio-stage {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px;
}

.hidden {
  display: none !important;
}

/* Глобальное всплывающее уведомление студийного уровня */
.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  max-width: 420px;
  background: #091524;
  color: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(9, 21, 36, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.studio-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.studio-toast-body {
  font-size: 13px;
  line-height: 1.45;
}

.studio-toast-title {
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff;
}

.studio-toast-sub {
  color: #cbd5e1;
  font-size: 12px;
}

/* ==========================================================================
   ЭКРАН 1: МОБИЛЬНОЕ ПРИЛОЖЕНИЕ (iPHONE 16 PRO + ПУЛЬТ ПРЕЗЕНТАЦИИ)
   ========================================================================== */
.mobile-showcase-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .mobile-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

/* Корпус титанового iPhone 16 Pro */
.iphone-chassis {
  width: min(394px, 100%);
  height: 816px;
  background: linear-gradient(145deg, #2b303b 0%, #14171f 50%, #262b35 100%);
  border-radius: 56px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  position: relative;
  user-select: none;
}

/* Боковые кнопки титановой рамки */
.iphone-chassis::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 145px;
  width: 3px;
  height: 54px;
  background: #3b4252;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 70px 0 #3b4252;
}

.iphone-chassis::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 185px;
  width: 3px;
  height: 82px;
  background: #3b4252;
  border-radius: 0 3px 3px 0;
}

.iphone-viewport {
  width: 100%;
  height: 100%;
  background: #f6f8fa;
  color: #0f172a;
  border-radius: 45px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Статус-бар и Dynamic Island */
.ios-statusbar {
  height: 50px;
  padding: 14px 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 112px;
  height: 30px;
  background: #05070a;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 0 10px;
}

.dynamic-island.expanded {
  width: 334px;
  max-width: calc(100% - 20px);
  height: 50px;
  border-radius: 24px;
  background: #091524;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  justify-content: flex-start;
  padding: 0 14px;
}

@media (max-width: 480px) {
  .studio-stage {
    padding-inline: 12px;
  }

  .iphone-chassis {
    padding: 8px;
    border-radius: 46px;
  }

  .iphone-viewport {
    border-radius: 38px;
  }
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Прокручиваемая область мобильного экрана */
.app-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
  scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

/* Шапка пользователя в приложении */
.app-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c2d34, #059669);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.user-greeting-sub {
  font-size: 11px;
  color: #64748b;
}

.user-greeting-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-chip.basic {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-chip.verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Главная премиальная карта кошелька с гильош-паттерном */
.hero-wallet-card {
  position: relative;
  background: linear-gradient(135deg, #091524 0%, #0e373c 60%, #065f46 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 15px 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px -10px rgba(9, 21, 36, 0.42);
  margin-bottom: 12px;
}

.hero-wallet-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.wallet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
}

.eye-btn {
  color: rgba(255, 255, 255, 0.78);
  padding: 3px;
  border-radius: 6px;
  display: inline-flex;
}

.eye-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wallet-balance-row {
  margin: 6px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wallet-balance-val {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wallet-limit-bar-wrap {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  padding: 7px 11px;
  backdrop-filter: blur(6px);
}

.wallet-limit-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 5px;
}

.limit-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}

.limit-progress-fill {
  height: 100%;
  background: #34d399;
  border-radius: 99px;
  transition: width 300ms ease;
}

/* 4 круглые кнопки главных операций (как в Revolut / Kaspi) */
.quick-orb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.orb-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-radius: 14px;
  transition: transform 140ms ease;
}

.orb-action:active {
  transform: scale(0.95);
}

.orb-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  color: #091524;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.orb-action.primary .orb-circle {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.orb-action:hover .orb-circle {
  border-color: #059669;
  transform: translateY(-1px);
}

.orb-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
}

/* Баннер видео-проверки личности */
.kyc-Banner-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-radius: 15px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.kyc-Banner-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.1);
}

.kyc-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Карусель привязанных карт */
.section-mini-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-mini-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.section-mini-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
}

.cards-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.services-mini-grid-tight { margin-bottom: 12px; }
.stack-screen { display: flex; flex-direction: column; gap: 20px; }

.linked-card-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.card-brand-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.badge-visa {
  background: #1e3a8a;
  color: #ffffff;
}

.badge-mc {
  background: #7c2d12;
  color: #fed7aa;
}

/* Плитки быстрой оплаты услуг */
.services-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.srv-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.srv-tile:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.srv-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.srv-tile span {
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

/* Список последних операций в телефоне */
.tx-card-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 4px 12px;
  box-shadow: var(--shadow-xs);
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-item:hover {
  opacity: 0.78;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tx-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.tx-meta {
  font-size: 11px;
  color: #64748b;
}

.tx-amt {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tx-amt.plus {
  color: #059669;
}

/* Нижний Tab Bar мобильного приложения */
.ios-tabbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 10px 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}

.ios-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  transition: color 140ms ease;
}

.ios-tab-item.active {
  color: #059669;
}

.ios-tab-item svg {
  width: 20px;
  height: 20px;
}

/* Выезжающая шторка внутри экрана iPhone (Bottom Sheet) */
.phone-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 36, 0.52);
  backdrop-filter: blur(3px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.phone-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.phone-sheet {
  background: #ffffff;
  color: #0f172a;
  border-radius: 28px 28px 0 0;
  padding: 14px 20px 26px;
  max-height: 86%;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-sheet-backdrop.open .phone-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 99px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Чипы быстрого выбора суммы */
.amt-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.amt-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  transition: all 140ms ease;
}

.amt-chip:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
}

/* Анимация кольца видео-сканирования лица */
.face-scan-ring {
  width: 156px;
  height: 156px;
  margin: 12px auto 16px;
  border-radius: 50%;
  border: 4px dashed #10b981;
  background: radial-gradient(circle, #ecfdf5 0%, #f8fafc 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  position: relative;
}

@keyframes pulseRing {
  0% { transform: scale(0.97); border-color: #10b981; }
  50% { transform: scale(1.03); border-color: #047857; }
  100% { transform: scale(0.97); border-color: #10b981; }
}

.face-scan-ring.scanning {
  animation: pulseRing 1.4s infinite ease-in-out;
}

/* Правая колонка пульта демонстрации инвестору */
.director-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-heading {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Кнопки готовых демо-сценариев для показа инвестору в 1 клик */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

.scenario-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 160ms ease;
}

.scenario-btn:hover {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald-soft);
  transform: translateY(-1px);
}

.scenario-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scenario-btn strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.scenario-btn span {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
  display: block;
}

/* Живые карточки показателей экосистемы */
.live-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .live-metrics-strip {
    grid-template-columns: 1fr;
  }
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.metric-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}

.metric-foot {
  font-size: 11.5px;
  color: var(--brand-emerald);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   ЭКРАН 2 (WEB-КОШЕЛЁК), ЭКРАН 3 (АГЕНТ POS), ЭКРАН 4 (ПАНЕЛЬ КОНТРОЛЯ)
   ========================================================================== */
.desktop-app-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 660px;
}

@media (max-width: 900px) {
  .desktop-app-shell {
    grid-template-columns: 1fr;
  }
}

.desktop-sidebar {
  background: var(--surface-subtle);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 4px;
  text-align: left;
  transition: all 140ms ease;
}

.side-nav-item:hover {
  background: var(--surface-muted);
}

.side-nav-item.active {
  background: var(--brand-emerald-soft);
  color: var(--brand-emerald);
}

.desktop-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Универсальные формы, поля и кнопки */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 140ms ease;
}

.field-input:focus {
  border-color: var(--brand-emerald);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand-emerald);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 150ms ease, transform 120ms ease;
}

.btn-emerald:hover {
  background: var(--brand-emerald-hover);
}

.btn-emerald:active {
  transform: scale(0.985);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 140ms ease;
}

.btn-outline:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--crimson-soft);
  border: 1px solid var(--crimson-border);
  color: var(--crimson);
  font-size: 12.5px;
  font-weight: 700;
}

/* Таблицы высокого уровня */
.pro-table-wrap {
  overflow-x: auto;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pro-table th {
  text-align: left;
  padding: 11px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pro-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}

.pro-table tr:last-child td {
  border-bottom: none;
}

.pro-table tbody tr:hover {
  background: var(--surface-subtle);
}

/* Тумблер активности точки агента */
.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 160ms ease;
  display: inline-block;
  vertical-align: middle;
}

.toggle-switch.on {
  background: #059669;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.on::after {
  transform: translateX(18px);
}

/* Баннер зеркального равенства счетов с банком */
.equality-banner {
  background: linear-gradient(135deg, #091524 0%, #0c2d34 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 20px;
}

@media (max-width: 920px) {
  .equality-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.eq-sign {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Печатный штамп в электронном чеке */
.receipt-box {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  margin: 10px 0 14px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f6;
}

.receipt-row:last-child {
  border-bottom: none;
}

.stamp-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #059669;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
