/*
 * SHALOBOT — "Get started": have a Deriv account, or new to Deriv.
 * One sheet over the landing page, on the site's own tokens.
 */

.dc-root { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.dc-root[hidden] { display: none; }
.dc-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); }

.dc {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px 24px 20px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--raise); color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: dc-in .18s ease-out;
}
@keyframes dc-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dc { animation: none; } }

.dc-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--ink-muted); cursor: pointer;
}
.dc-x:hover { color: var(--ink); border-color: var(--line-hi); }

.dc-mark { display: inline-flex; padding: 9px 14px; border-radius: 12px; background: #ffffff; }
.dc-mark img { display: block; height: 20px; width: auto; }
.dc h2 { margin: 16px 0 6px; font-size: clamp(21px, 3vw, 25px); letter-spacing: -0.02em; line-height: 1.2; }
.dc-lede { margin: 0 auto 20px; max-width: 380px; color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }

.dc-choices { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.dc-choices[hidden], .dc-new[hidden] { display: none; }
.dc-choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 16px; border: 1px solid var(--line-hi); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dc-choice:hover { border-color: var(--blue); background: var(--surface-2); }
.dc-choice:active { transform: scale(.99); }
.dc-choice:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-choice-ic {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--real-tint); color: var(--blue);
}
.dc-choice--new .dc-choice-ic { background: rgba(255, 176, 32, .14); color: var(--amber); }
.dc-choice-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-choice-t b { font-size: 15.5px; }
.dc-choice-t span { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.dc-choice-go { margin-left: auto; flex: none; color: var(--ink-faint); }

.dc-new { text-align: left; }
.dc-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dc-steps > li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dc-n {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: var(--blue); color: var(--on-accent); font-size: 13px; font-weight: 800;
}
.dc-steps b { display: block; font-size: 15px; margin: 2px 0 10px; }
.dc-steps .btn { width: 100%; justify-content: center; }
.dc-step-body { flex: 1; min-width: 0; }

.dc-qr { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.dc-qr-img { flex: none; padding: 6px; border-radius: 10px; background: #ffffff; line-height: 0; }
.dc-qr-img img { display: block; width: 104px; height: 104px; }

.dc-backlink {
  margin-top: 12px; padding: 6px 2px; border: 0; background: none; color: var(--ink-muted);
  font: inherit; font-size: 13px; cursor: pointer;
}
.dc-backlink:hover { color: var(--ink); }

.dc-fine { margin: 18px 0 0; font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

@media (max-width: 480px) {
  .dc { padding: 24px 16px 16px; border-radius: 18px; }
  .dc-qr-img img { width: 92px; height: 92px; }
}
