/* ═══════════════════════════════════════════════════════════════
   IBAN.in.ua — повний дизайн-сет v2
   Палітра: deep navy + mint accent + чистий white
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0a1628;
  --bg-2:        #0f1f3a;
  --bg-3:        #122a4a;
  --surface:     #ffffff;
  --surface-2:   #f7f9fc;
  --surface-3:   #eef2f7;
  --text:        #1a1a2e;
  --text-light:  #e8edf5;
  --text-muted:  #6b7280;
  --text-faint:  #9ca3af;
  --accent:      #00d4aa;
  --accent-2:    #00b894;
  --accent-dark: #00a387;
  --accent-soft: #e6faf5;
  --blue:        #2563eb;
  --blue-soft:   #eff6ff;
  --red:         #ef4444;
  --red-soft:    #fef2f2;
  --amber:       #f59e0b;
  --amber-soft:  #fffbeb;
  --border:      #e5e7eb;
  --border-2:    #d1d5db;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.12);
  --maxw:        1140px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ═══ Buttons ═══ */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 20px rgba(0,212,170,.25);
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,212,170,.35); background: var(--accent-2); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-danger:hover { background: #fee2e2; }

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE v2 — premium, unique
   ═══════════════════════════════════════════════════════════════ */

.landing-hero {
  background: var(--bg);
  color: var(--text-light);
  padding: 0 20px 140px;
  position: relative;
  overflow: hidden;
}
/* Animated grid background */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
/* Glow */
.landing-hero::after {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,170,.15) 0%, transparent 70%);
  pointer-events: none;
}

.landing-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.landing-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg);
  font-weight: 900;
}
.landing-logo span { color: var(--accent); }
.landing-nav-links { display: flex; gap: 32px; align-items: center; }
.landing-nav-links a {
  color: rgba(232,237,245,.6);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.landing-nav-links a:hover { color: var(--accent); }
.landing-nav-links .btn-login {
  border: 1.5px solid rgba(0,212,170,.35);
  padding: 8px 22px;
  border-radius: 100px;
  color: var(--accent);
  font-weight: 600;
}
.landing-nav-links .btn-login:hover { background: rgba(0,212,170,.1); }

.landing-hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0 0;
  position: relative;
  z-index: 2;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,170,.1);
  border: 1px solid rgba(0,212,170,.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.landing-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.landing-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.landing-hero h1 .hl { color: var(--accent); }
.landing-hero h1 .underline {
  position: relative;
  display: inline-block;
}
.landing-hero h1 .underline::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  opacity: .3;
}
.landing-hero p {
  font-size: clamp(17px, 2.5vw, 22px);
  color: rgba(232,237,245,.6);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.5;
}
.landing-hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-hero .btn-primary { padding: 16px 36px; font-size: 17px; }
.landing-hero .btn-secondary {
  color: var(--text-light);
  border-color: rgba(232,237,245,.2);
  padding: 16px 36px;
  font-size: 17px;
}
.landing-hero .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero stats */
.landing-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.landing-hero-stat { text-align: center; }
.landing-hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.landing-hero-stat .label {
  font-size: 14px;
  color: rgba(232,237,245,.5);
  margin-top: 4px;
}

/* Sections */
.landing-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 20px;
}
.landing-section.alt { background: var(--surface-2); max-width: none; padding-left: 0; padding-right: 0; }
.landing-section.alt > div { max-width: var(--maxw); margin: 0 auto; padding: 100px 20px; }
.landing-section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.landing-section > p, .landing-section.alt > div > p:first-of-type {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 64px;
}

/* Steps — horizontal flow */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.step-card .step-num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 48px;
  font-weight: 900;
  color: var(--surface-3);
  line-height: 1;
}

/* Banks */
.banks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}
.bank-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.bank-chip:hover { transform: translateY(-2px); }
.bank-chip .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform .2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.price-card.popular::before {
  content: 'Популярний';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.price-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.price-card .price {
  font-size: 44px;
  font-weight: 800;
  margin: 20px 0;
  letter-spacing: -1.5px;
}
.price-card .price small { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; }
.price-card ul li {
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 15px;
  border-top: 1px solid var(--border);
}
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  margin-right: 12px;
}
.price-card .btn-primary, .price-card .btn-secondary { width: 100%; }

/* Feature grid (new) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card .icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Footer */
.landing-footer {
  background: var(--bg);
  color: rgba(232,237,245,.4);
  padding: 56px 20px 40px;
}
.landing-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.landing-footer .footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-footer .footer-logo span { color: var(--accent); }
.landing-footer p { font-size: 14px; line-height: 1.6; }
.landing-footer h4 {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.landing-footer ul { list-style: none; }
.landing-footer ul li { margin-bottom: 8px; }
.landing-footer ul li a {
  color: rgba(232,237,245,.5);
  font-size: 14px;
  transition: color .15s;
}
.landing-footer ul li a:hover { color: var(--accent); }
.landing-footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(232,237,245,.1);
  text-align: center;
  font-size: 13px;
  color: rgba(232,237,245,.3);
}

/* ═══════════════════════════════════════════════════════════════
   CABINET
   ═══════════════════════════════════════════════════════════════ */

.cab-page { background: var(--surface-2); min-height: 100vh; }

.cab-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cab-topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cab-topbar .logo { font-size: 22px; font-weight: 800; color: var(--bg); display: flex; align-items: center; gap: 8px; }
.cab-topbar .logo span { color: var(--accent); }
.cab-topbar-right { display: flex; align-items: center; gap: 16px; }
.cab-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.cab-user-chip .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.cab-plan-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cab-plan-badge.free { background: var(--surface-3); color: var(--text-muted); }
.cab-plan-badge.pro { background: var(--accent-soft); color: var(--accent-dark); }
.cab-plan-badge.business { background: var(--blue-soft); color: var(--blue); }

.cab-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.cab-sidebar { position: sticky; top: 88px; }
.cab-nav { display: flex; flex-direction: column; gap: 4px; }
.cab-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.cab-nav a:hover { background: var(--surface-3); color: var(--text); }
.cab-nav a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.cab-nav a .icon { font-size: 18px; width: 20px; text-align: center; }

.cab-content { min-width: 0; }

.cab-page-header { margin-bottom: 24px; }
.cab-page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.cab-page-header p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

.cab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.cab-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.cab-stat .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.cab-stat .value { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.cab-stat .value small { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.cab-stat .sub { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

.cab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.cab-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cab-card-header h2 { font-size: 18px; font-weight: 700; }
.cab-card-body { padding: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group .hint { font-size: 12px; color: var(--text-faint); font-weight: 400; margin-top: 6px; line-height: 1.5; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,.12);
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-error {
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}
.form-success {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Account cards */
.acc-list { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color .15s;
}
.acc-item:hover { border-color: var(--accent); }
.acc-item .acc-info { flex: 1; min-width: 0; }
.acc-item .acc-name { font-weight: 700; font-size: 15px; }
.acc-item .acc-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.acc-item .acc-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
}
.acc-item .acc-default { background: var(--accent-soft); color: var(--accent-dark); }
.acc-item .acc-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Link list */
.links-table { width: 100%; }
.link-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  transition: background .15s;
}
.link-row:first-child { border-top: none; }
.link-row:hover { background: var(--surface-2); }
.link-row .link-url { font-weight: 600; color: var(--blue); font-size: 14px; word-break: break-all; }
.link-row .link-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.link-row .link-amount { font-weight: 700; font-size: 15px; white-space: nowrap; }
.link-row .link-opens {
  font-size: 13px; color: var(--text-muted);
  background: var(--surface-3); padding: 4px 12px;
  border-radius: 100px; white-space: nowrap; font-weight: 600;
}
.link-row .link-actions { display: flex; gap: 6px; }
.link-row .icon-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 6px 10px;
  font-size: 14px; cursor: pointer; color: var(--text-muted);
  transition: background .15s, border-color .15s;
}
.link-row .icon-btn:hover { background: var(--surface-3); border-color: var(--border-2); color: var(--text); }
.link-row .icon-btn.danger:hover { background: var(--red-soft); border-color: #fecaca; color: var(--red); }

/* Payment status badges */
.pay-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.pay-badge-paid { background: var(--accent-soft); color: var(--accent-dark); }
.pay-badge-partial { background: var(--amber-soft); color: var(--amber); }
.pay-badge-unpaid { background: var(--surface-3); color: var(--text-muted); }
.pay-badge-cancelled { background: var(--red-soft); color: var(--red); }
.link-row .link-client { color: var(--accent-dark); font-weight: 600; }

/* Rozetka orders */
.rz-order { align-items: start; }
.rz-share { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.rz-share-btn {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border);
}
.rz-share-btn:hover { border-color: var(--accent); }
.rz-share-btn.rz-wa { background: #e7f8ec; color: #128c4b; border-color: #bfe8cd; }
.rz-share-btn.rz-viber { background: #f5f3ff; color: #7360f2; border-color: #d1ccf9; }
.rz-share-btn.rz-tg { background: #f0f9ff; color: #0088cc; border-color: #b3e0f5; }

/* Filter tabs (links page) */
.cab-filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cab-filter-tab {
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.cab-filter-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.cab-filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Pay modal status radio options */
.pay-status-options { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.pay-status-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s;
}
.pay-status-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.pay-status-opt input[type="radio"] { width: auto; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .3; }
.empty-state p { font-size: 15px; }

/* Modal */
.cab-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.cab-modal-overlay.open { display: flex; }
.cab-modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.cab-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cab-modal-header h2 { font-size: 18px; font-weight: 700; }
.cab-modal-close {
  background: none; border: none; font-size: 24px;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px; line-height: 1;
}
.cab-modal-body { padding: 24px; }

/* Integration guide */
.guide-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.guide-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-steps { list-style: none; counter-reset: step; }
.guide-steps li {
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  counter-increment: step;
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 24px; height: 24px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.guide-steps li a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
.guide-steps li a:hover { text-decoration: underline; }
.guide-steps li code {
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Consolas', monospace;
}
.guide-alert {
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Auth pages */
.auth-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 80%);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
  z-index: 2;
}
.auth-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-logo span { color: var(--accent); }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

/* ═══ Payment page (компактний дизайн у стилі rw057) ═══ */
.pay-page {
  background: #f0f4f8; min-height: 100vh; padding: 12px 12px 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text);
}
.pay-container { max-width: 480px; margin: 0 auto; }
.pay-header { text-align: center; padding: 10px 0 8px; }
.pay-header .logo {
  font-size: 20px; font-weight: 800; color: #1565c0;
  letter-spacing: -0.5px; text-decoration: none; display: inline-block;
}
.pay-header .logo span { color: #111827; }
.pay-brand-header { text-align: center; padding: 12px 16px 8px; }
.pay-brand-name {
  font-size: 19px; font-weight: 800; color: #1a1a2e;
  text-decoration: none; display: inline-block; letter-spacing: -0.3px;
}
a.pay-brand-name:hover { color: #1565c0; }

/* Amount card (синій овал rw057) */
.pay-amount-card {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  border-radius: 16px;
  padding: 18px 20px 16px;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.22);
}
.pay-amount-left { flex: 1; min-width: 0; }
.pay-amount-card .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  opacity: .8; margin-bottom: 4px; font-weight: 700; color: #fff;
}
.pay-amount-card .amount {
  font-size: 38px; font-weight: 800; letter-spacing: -1px;
  color: #fff; line-height: 1.15;
}
.pay-amount-card .currency {
  font-size: 22px; font-weight: 700; opacity: .9; margin-left: 4px;
}
.pay-amount-card .purpose {
  font-size: 14.5px; opacity: .92; margin-top: 6px; line-height: 1.4;
  color: #ffffff; font-weight: 500;
}
.pay-amount-icon {
  margin-left: 14px;
  flex-shrink: 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-amount-icon svg {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

/* Status banner */
.pay-status-banner {
  margin: 0 0 10px; padding: 9px 14px; border-radius: 10px;
  text-align: center; font-weight: 600;
}
.pay-status-banner .pay-status-main { font-size: 14px; font-weight: 700; }
.pay-status-banner .pay-status-sub { font-size: 11.5px; font-weight: 500; margin-top: 2px; opacity: .85; }
.pay-status-unpaid { background: #e5e7eb; color: #4b5563; }
.pay-status-paid { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.pay-status-partial { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pay-status-cancelled { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.pay-section-title {
  font-size: 12.5px; font-weight: 700; color: #1565c0;
  text-transform: uppercase; letter-spacing: .5px;
  margin: 12px 0 8px; padding-left: 2px;
}
.pay-banks-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 8px;
}
.pay-bank-btn {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1.5px solid #e5e7eb;
  border-radius: 12px; padding: 10px 12px;
  text-decoration: none; color: #1a1a2e; font-weight: 600; font-size: 14px;
  transition: border-color .15s, transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pay-bank-btn:active { transform: scale(.98); border-color: #1565c0; }
.pay-bank-logo {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: contain; flex-shrink: 0;
}
.pay-more-toggle {
  width: 100%; background: #f3f4f6; border: 1.5px dashed #d1d5db;
  border-radius: 10px; padding: 9px 12px;
  font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; margin-top: 2px; margin-bottom: 8px;
  text-align: center; transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.pay-more-toggle:hover { background: #e5e7eb; color: #374151; }
.pay-more-banks {
  display: none; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 8px;
}
.pay-more-banks.open { display: grid !important; }

.pay-reqs {
  background: #ffffff; border-radius: 12px;
  border: 1.5px solid #e5e7eb; overflow: hidden;
  margin-top: 6px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pay-reqs-toggle {
  width: 100%; background: none; border: none; padding: 11px 14px;
  font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: #1a1a2e;
  -webkit-tap-highlight-color: transparent;
}
.pay-reqs-body { display: none; padding: 0 14px 10px; }
.pay-reqs-body.open { display: block; }
.pay-copy-all-btn {
  display: block; width: 100%;
  background: #e3f2fd; color: #1565c0;
  border: 1.5px solid #90caf9; border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; margin: 4px 0 8px;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.pay-copy-all-btn:hover { background: #bbdefb; border-color: #64b5f6; }
.pay-copy-all-btn:active { transform: scale(.98); }
.pay-req-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid #f3f4f6; font-size: 13px;
}
.pay-req-row .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: #6b7280; font-weight: 600; flex-shrink: 0;
}
.pay-req-row .val {
  font-weight: 600; color: #1a1a2e;
  font-family: 'SF Mono', 'Roboto Mono', monospace; font-size: 12.5px;
  word-break: break-all; padding: 0 8px; text-align: right; flex: 1;
}
.pay-copy-btn {
  background: #f3f4f6; border: none; border-radius: 6px;
  padding: 4px 8px; cursor: pointer; font-size: 12px;
  transition: background .15s;
}
.pay-copy-btn:active { background: #e5e7eb; }

.pay-share-wrap { margin-top: 10px; margin-bottom: 4px; }
.pay-share-label {
  font-size: 11px; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px; text-align: center;
}
.pay-share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-share-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: #ffffff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 8px 4px; font-size: 12.5px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
  white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.pay-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pay-share-btn.tg { color: #0088cc; border-color: #b3e0f5; background: #f0f9ff; }
.pay-share-btn.tg:hover { background: #e0f2fe; border-color: #7dd3fc; }
.pay-share-btn.vb { color: #7360f2; border-color: #d1ccf9; background: #f5f3ff; }
.pay-share-btn.vb:hover { background: #ede9fe; border-color: #c4b5fd; }
.pay-share-btn.wa { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.pay-share-btn.wa:hover { background: #d1fae5; border-color: #6ee7b7; }
.pay-share-btn:active { transform: scale(.97); }

.pay-footer {
  text-align: center; margin-top: 22px; padding: 10px 0 6px;
  font-size: 12px; color: #9ca3af;
}
.pay-footer a { color: #6b7280; font-weight: 600; text-decoration: none; }
.pay-footer a:hover { color: #1565c0; }
.pay-footer a span { color: #00b894; }

.pay-qr {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 20px;
  text-align: center; margin-bottom: 16px; box-shadow: var(--shadow);
}
.pay-qr img { margin: 0 auto 16px; }
.pay-qr p { color: var(--text-muted); font-size: 14px; }
.pay-qr-alt {
  display: inline-block; margin-top: 12px; padding: 8px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--accent-dark); cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-qr-alt:hover { border-color: var(--accent); background: var(--accent-soft); }

.pay-share { display: flex; gap: 10px; margin-bottom: 16px; }
.pay-share-btn {
  flex: 1; text-align: center; padding: 12px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  transition: border-color .15s;
}
.pay-share-btn:hover { border-color: var(--accent); }

/* QR modal */
.qr-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 22, 40, .6);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.qr-modal.open { display: flex; }
.qr-modal-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px 20px 20px; width: 100%; max-width: 380px;
  position: relative; text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-modal-x {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); font-size: 15px; cursor: pointer;
}
.qr-modal-x:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.qr-modal-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.qr-bank-picker {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 12px; margin-bottom: 4px;
  scrollbar-width: thin;
}
.qr-bank-pick {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 62px; padding: 8px 6px;
  background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  transition: border-color .15s, background .15s; flex-shrink: 0;
}
.qr-bank-pick img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.qr-bank-pick.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.qr-modal-imgwrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: inline-block; margin-bottom: 12px;
}
.qr-modal-imgwrap img, .qr-modal-imgwrap canvas { display: block; margin: 0 auto; }
.qr-modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.qr-modal-note {
  font-size: 12px; color: var(--text-faint); line-height: 1.4;
  margin-bottom: 10px; padding: 0 6px;
}
.qr-modal-amount { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.qr-modal-actions { display: flex; gap: 10px; }
.qr-act {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.qr-act:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 700px) {
  .qr-modal { align-items: flex-end; padding: 0; }
  .qr-modal-card {
    max-width: 100%; border-radius: 20px 20px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg); color: #fff; padding: 12px 24px;
  border-radius: 100px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 999; white-space: nowrap;
  transition: transform .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .cab-layout { grid-template-columns: 1fr; }
  .cab-sidebar { position: static; }
  .cab-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .cab-nav a { white-space: nowrap; }
  .landing-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  /* ── Компактний топбар ── */
  .cab-topbar { padding: 0 12px; }
  .cab-topbar-inner { height: 52px; }
  .cab-topbar .logo { font-size: 18px; }
  .cab-topbar-right { gap: 8px; }
  .cab-plan-badge { display: none; }
  .cab-user-chip span:not(.avatar) { display: none; }
  .cab-user-chip .avatar { width: 30px; height: 30px; font-size: 13px; }

  /* ── Навігація — нижня панель як у мобільному застосунку ── */
  .cab-layout { padding: 16px 12px 96px; }
  .cab-sidebar {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    z-index: 150;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }
  .cab-nav {
    flex-direction: row;
    gap: 2px;
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    overflow-x: auto;
  }
  .cab-nav a {
    flex: 1 0 auto;
    flex-direction: column;
    gap: 3px;
    padding: 7px 10px;
    font-size: 10.5px;
    text-align: center;
    border-radius: 10px;
  }
  .cab-nav a .icon { font-size: 20px; width: auto; }

  /* ── Контент ── */
  .cab-page-header { margin-bottom: 16px; }
  .cab-page-header h1 { font-size: 21px; }
  .cab-card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .cab-card-header h2 { font-size: 16px; }
  .cab-card-body { padding: 16px; }

  .cab-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .cab-stat { padding: 14px 16px; }
  .cab-stat .value { font-size: 22px; }
  .cab-stat .label { font-size: 11px; }

  /* ── Посилання: мобільна картка в один стовпець ── */
  .link-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .link-row > div:first-child { min-width: 0; }
  .link-row .link-meta { overflow-wrap: break-word; }
  .link-row .link-amount { grid-column: auto; grid-row: auto; }
  .link-row .link-opens { display: none; }
  .link-row .link-actions {
    grid-column: auto; grid-row: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .link-row .icon-btn { padding: 8px 12px; font-size: 15px; }

  /* ── Профілі: дії під інформацією ── */
  .acc-item { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .acc-item .acc-actions { justify-content: flex-end; }
  .acc-item .acc-meta { word-break: break-all; }

  /* ── Модалка — шторка знизу ── */
  .cab-modal-overlay { padding: 0; align-items: flex-end; }
  .cab-modal { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .cab-modal-header { padding: 16px; }
  .cab-modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }

  .form-success { flex-wrap: wrap; }
  .form-success a { word-break: break-all; }
  .form-success .btn-ghost { margin-left: 0 !important; }

  .guide-box { padding: 14px 16px; }
  .empty-state { padding: 32px 16px; }
}
@media (max-width: 600px) {
  .landing-nav-links a:not(.btn-login) { display: none; }
  .pay-banks-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .landing-hero-stats { gap: 24px; }
  .landing-footer-inner { grid-template-columns: 1fr; }
}
