:root {
  --bg: #0d1117;
  --card: #161b22;
  --card-muted: #12161c;
  --text: #e6edf3;
  --text-muted: #9fb1c1;
  --primary: #2f81f7;
  --primary-strong: #1f6feb;
  --border: #243040;
  --success: #2ea043;
  --shadow: 0 30px 80px rgba(0,0,0,0.35);
  --radius: 14px;
  --gap: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  filter: blur(110px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background: radial-gradient(circle at 30% 30%, rgba(47,129,247,0.32), transparent 60%);
  top: -80px; left: -60px;
}
body::after {
  background: radial-gradient(circle at 70% 70%, rgba(46,160,67,0.26), transparent 60%);
  bottom: -120px; right: -40px;
}
.page {
  width: min(1200px, 100%);
  padding: 28px clamp(16px, 3vw, 32px) 48px;
  position: relative;
  z-index: 1;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .header-top {
    width: 100%;
  }
  .brand-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .header-actions {
    width: auto;
    justify-content: center;
    gap: 6px;
    margin: 0;
    flex-wrap: nowrap;
    padding: 4px 6px;
  }
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 6px;
  }
  nav a {
    padding: 5px 6px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  }
  .toggle {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .brand {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-direction: column;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}
nav {
  display: flex;
  gap: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .2s, color .2s, box-shadow .2s;
  background: linear-gradient(135deg, rgba(47,129,247,0.14), rgba(31,111,235,0.08));
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  white-space: nowrap;
}
nav a:hover { background: var(--card); color: var(--text); }
nav::-webkit-scrollbar { display: none; }
nav { scrollbar-width: none; }
.toggle {
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 6px 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, color .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.toggle:active { transform: scale(.98); }
.toggle .icon {
  width: 18px;
  height: 18px;
}
.toggle .sun { display: none; }
.light .toggle .sun { display: inline-block; }
.light .toggle .moon { display: none; }
.light .toggle {
  background: transparent;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(47,129,247,0.12);
}
.icon-btn {
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform .15s ease, color .2s, box-shadow .2s;
}
.icon-btn:active { transform: scale(.96); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn .icon-label { font-size: 12px; font-weight: 700; }
.light .icon-btn { background: transparent; box-shadow: 0 10px 24px rgba(47,129,247,0.12); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-wrap: nowrap;
}
.light .header-actions { background: transparent; }
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.hero {
  text-align: center;
  margin: 32px 0 28px;
}
.hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4.5vw, 40px);
}
.hero p { margin: 0; color: var(--text-muted); font-size: 17px; }
.grid {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 960px) {
  .grid.two { grid-template-columns: 1.3fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .smart-first { order: 0; }
}
@media (max-width: 959px) {
  .grid.two { grid-template-columns: 1fr; }
  .smart-first { order: -1; }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.section-title {
  margin: 0 0 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47,129,247,0.12), rgba(31,111,235,0.08));
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(47,129,247,0.15);
}
.features {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--card-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(47,129,247,0.08), transparent 45%);
  pointer-events: none;
}
.feature strong { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.feature small { color: var(--text-muted); line-height: 1.5; }
.team-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.member {
  background: linear-gradient(145deg, var(--card), var(--card-muted));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.member::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(47,129,247,0.14), transparent 55%);
  top: -60px; right: -40px;
  pointer-events: none;
}
.member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f81f7, #1f6feb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 30px rgba(47,129,247,0.35);
  flex-shrink: 0;
}
.member h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.member span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}
.member p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 14px;
  z-index: 1;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(46,160,67,0.15);
}
.trust {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.trust .badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.partner {
  background: linear-gradient(145deg, var(--card), var(--card-muted));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
@media (max-width: 640px) {
  .hero { margin: 24px 0 22px; }
  .partners { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .partner { min-height: 56px; }
}
.partner img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: saturate(1.1);
  display: block;
}
.partner .bybit-light { display: none; }
.light .partner .bybit-light { display: block; }
.light .partner .bybit-dark { display: none; }
.smart-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, rgba(47,129,247,0.14), rgba(18,24,38,0.85));
  border: 1px solid var(--border);
}
.light .smart-card {
  background: linear-gradient(145deg, rgba(47,129,247,0.08), #ffffff);
}
.smart-card::before,
.smart-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
}
.smart-card::before {
  background: rgba(47,129,247,0.45);
  top: -60px; left: -40px;
}
.smart-card::after {
  background: rgba(46,160,67,0.35);
  bottom: -70px; right: -20px;
}
.smart-card .body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.smart-card .tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-weight: 600;
}
.light .smart-card .tagline {
  background: rgba(47,129,247,0.12);
  color: var(--text);
  border-color: rgba(47,129,247,0.25);
}
.smart-connect {
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  color: #eaf1ff;
}
.light .option {
  background: rgba(47,129,247,0.08);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(47,129,247,0.12);
}
.btn {
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 35px rgba(47,129,247,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.connected {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 35px rgba(34,197,94,0.4);
}
.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn .btn-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}
.btn:active { transform: translateY(1px) scale(.99); box-shadow: 0 8px 20px rgba(47,129,247,0.25); }
.smart-card .smart-connect-btn {
  background: linear-gradient(150deg, rgba(47,129,247,0.35), rgba(18,24,38,0.95));
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  color: #eaf1ff;
  font-weight: 600;
}
.smart-card .smart-connect-btn.connected {
  background: linear-gradient(150deg, rgba(34,197,94,0.45), rgba(8, 24, 18, 0.95));
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  color: #eaf1ff;
  border-color: rgba(34,197,94,0.45);
}
.light .smart-card .smart-connect-btn {
  background: linear-gradient(145deg, rgba(47,129,247,0.16), #ffffff);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(47,129,247,0.12);
}
.light .smart-card .smart-connect-btn.connected {
  background: linear-gradient(145deg, rgba(34,197,94,0.2), #ffffff);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.35);
}
.inputs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.input {
  display: grid;
  gap: 6px;
}
.input label { color: var(--text-muted); font-weight: 600; }
.input input, .input textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-muted);
  color: var(--text);
  resize: vertical;
  min-height: 44px;
}
footer {
  margin-top: 32px;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}
.light {
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-muted: #f0f3f8;
  --text: #0b1524;
  --text-muted: #4a5568;
  --primary: #2f81f7;
  --primary-strong: #1f6feb;
  --border: #d9e2ec;
  --shadow: 0 24px 60px rgba(15,23,42,0.10);
  color-scheme: light;
}
.icon { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.check { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.partner-icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* מודאל להצגת היתרה הגבוהה ביותר */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-content h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.modal-content p {
  margin: 8px 0;
  color: var(--text-muted);
}
.light .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Payment request modal */
.payment-modal.hidden {
  display: none;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(4px);
}

.payment-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.payment-modal-close:hover {
  background: rgba(59, 130, 246, 0.2);
}

.payment-modal-title {
  font-size: 18px;
  font-weight: 700;
}

.payment-modal-message {
  color: #cbd5f5;
  font-size: 14px;
  line-height: 1.5;
}

.payment-modal-status {
  font-size: 12px;
  color: #94a3b8;
  min-height: 18px;
}

.payment-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.payment-modal-actions .btn.ghost {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  box-shadow: none;
}

.payment-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-weight: 600;
  font-size: 13px;
}


/* ספינר */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.service-unavailable-message {
  margin-top: 12px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
  text-align: center;
  display: none;
}
.service-unavailable-message.show {
  display: block;
}


