/* ──────────────────────────────────────────────────────────────────
   EdgeVisor onboarding styles
   - Spotlight tour popover skin (driver.js)
   - Identity modal shown on first dashboard visit
   - Deferred-tour banner (deep link to non-picks tab)
   - Milestone toast / inline announcements
   Loaded by dashboard.html. Landing page does NOT include this file.
   ────────────────────────────────────────────────────────────────── */

/* Driver.js popover ----------------------------------------------- */
.driver-popover.ev-tour-popover {
  background: #18181c;
  border: 1px solid rgba(99, 102, 241, .35);
  border-radius: 12px;
  color: #e2e2e8;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .7);
  max-width: 320px;
}
.driver-popover.ev-tour-popover .driver-popover-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.driver-popover.ev-tour-popover .driver-popover-description {
  color: #c2c4d1;
  font-size: 13px;
  line-height: 1.5;
}
.driver-popover.ev-tour-popover .driver-popover-footer button {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.driver-popover.ev-tour-popover .driver-popover-footer button:hover {
  background: #818cf8;
}
.driver-popover.ev-tour-popover .driver-popover-close-btn {
  color: #6b7280;
}
.driver-popover.ev-tour-popover .driver-popover-footer .driver-popover-prev-btn {
  background: transparent;
  color: #c2c4d1;
  border: 1px solid rgba(99, 102, 241, .3);
}
.driver-popover.ev-tour-popover .driver-popover-progress-text {
  font-size: 11px;
  color: #9ca3af;
}

/* Identity modal --------------------------------------------------- */
.ev-identity-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 14, .72);
  animation: ev-identity-in .18s ease;
}
.ev-identity-modal.is-open {
  display: flex;
}
.ev-identity-modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #1e1e28;
  border: 1px solid rgba(99, 102, 241, .35);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  padding: 28px 28px 24px;
  color: #e7e8ef;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}
.ev-identity-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ev-identity-modal__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
}
.ev-identity-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: var(--brand, var(--font, 'Inter', system-ui, sans-serif));
}
.ev-identity-modal__kicker {
  margin: 0 0 18px;
  font-size: 13px;
  color: #a5b4fc;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ev-identity-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ev-identity-modal__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #d6d8e2;
}
.ev-identity-modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
}
.ev-identity-modal__footnote {
  margin: 0 0 22px;
  font-size: 12px;
  color: #9aa0b3;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 14px;
}
.ev-identity-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ev-identity-modal__btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: filter .12s ease, background .12s ease, color .12s ease;
}
.ev-identity-modal__btn--secondary {
  background: transparent;
  color: #b3b6c4;
  border-color: rgba(255, 255, 255, .1);
}
.ev-identity-modal__btn--secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.ev-identity-modal__btn--primary {
  background: #6366f1;
  color: #fff;
}
.ev-identity-modal__btn--primary:hover {
  filter: brightness(1.08);
}
@keyframes ev-identity-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Deferred-tour banner -------------------------------------------- */
.ev-tour-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(99, 102, 241, .06));
  border: 1px solid rgba(99, 102, 241, .35);
  border-radius: 12px;
  color: #e2e3ec;
  font-size: 13px;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}
.ev-tour-banner.is-visible {
  display: flex;
}
.ev-tour-banner__body {
  flex: 1 1 auto;
  min-width: 0;
}
.ev-tour-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.ev-tour-banner__btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ev-tour-banner__btn--primary {
  background: #6366f1;
  color: #fff;
}
.ev-tour-banner__btn--primary:hover {
  filter: brightness(1.08);
}
.ev-tour-banner__btn--secondary {
  background: transparent;
  color: #b3b6c4;
  border-color: rgba(255, 255, 255, .12);
}
.ev-tour-banner__btn--secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}

/* Post–welcome invite (under hero strip on Top Picks) ---------------- */
.ev-tour-postwelcome {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .28);
  border-radius: 12px;
  color: #e4e5ee;
  font-size: 13px;
  line-height: 1.45;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}
.ev-tour-postwelcome:not([hidden]) {
  display: flex;
}
.ev-tour-postwelcome__body {
  flex: 1 1 220px;
  min-width: 0;
}
.ev-tour-postwelcome__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.ev-tour-postwelcome__btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
}
.ev-tour-postwelcome__btn--primary {
  background: #6366f1;
  color: #fff;
}
.ev-tour-postwelcome__btn--primary:hover {
  filter: brightness(1.08);
}
.ev-tour-postwelcome__btn--ghost {
  background: transparent;
  color: #b8bcc9;
  border-color: rgba(255, 255, 255, .12);
}
.ev-tour-postwelcome__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

/* Milestone toast / inline ---------------------------------------- */
.ev-toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10090;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.ev-toast {
  pointer-events: auto;
  background: #1e1e28;
  border: 1px solid rgba(99, 102, 241, .35);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
  padding: 12px 14px 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #e7e8ef;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
  animation: ev-toast-in .18s ease;
}
.ev-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}
.ev-toast__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}
.ev-toast__text {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
  color: #c5c7d3;
}
.ev-toast__close {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.ev-toast__close:hover {
  color: #fff;
}
@keyframes ev-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ev-toast--inline {
  position: static;
  margin: 12px 0 0;
  width: 100%;
  box-shadow: none;
}

/* How-to-use static page ------------------------------------------ */
.ev-howto {
  margin: 0;
  padding: 4px 0 40px;
  max-width: 1080px;
  color: var(--text, #eeeff5);
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}

.ev-howto-layout {
  display: grid;
  gap: 24px 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .ev-howto-layout {
    grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
  }
}

.ev-howto__toc {
  display: none;
}

@media (min-width: 960px) {
  .ev-howto__toc {
    display: block;
    position: sticky;
    top: 72px;
    padding: 4px 0 24px;
    border-right: 1px solid rgba(255, 255, 255, .06);
    margin-right: 4px;
  }
}

.ev-howto__toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #8b90a3);
  margin: 0 0 12px;
}

.ev-howto__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-howto__toc-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  margin-left: -10px;
  border-radius: 10px;
  text-decoration: none;
  color: #c5c8d6;
  font-size: 13px;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ev-howto__toc-nav a:hover {
  background: rgba(99, 102, 241, .1);
  color: #fff;
  border-left-color: rgba(99, 102, 241, .45);
}

.ev-howto__toc-num {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #6b7089;
  width: 1.5rem;
}

.ev-howto__toc-nav a:hover .ev-howto__toc-num {
  color: #a5b4fc;
}

.ev-howto__toc-text {
  flex: 1;
}

.ev-howto__main {
  min-width: 0;
}

.ev-howto__hero {
  margin: 0 0 18px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, .22);
  background: linear-gradient(165deg, rgba(99, 102, 241, .16) 0%, rgba(34, 34, 44, .85) 48%, var(--surface, #22222c) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.ev-howto__hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .2);
  border: 1px solid rgba(99, 102, 241, .35);
}

.ev-howto__hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text, #eeeff5);
}

.ev-howto__hero-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #aeb4c7);
}

.ev-howto__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0 2px 12px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 960px) {
  .ev-howto__chips {
    display: none;
  }
}

.ev-howto__chips li {
  flex-shrink: 0;
}

.ev-howto__chips a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .12);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, .28);
  white-space: nowrap;
}

.ev-howto__chips a:hover {
  background: rgba(99, 102, 241, .22);
  color: #fff;
}

.ev-howto__card {
  scroll-margin-top: 88px;
  margin: 0 0 16px;
  padding: 20px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--border, #3a3a48);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, var(--surface, #22222c) 42%);
  border-left: 3px solid rgba(99, 102, 241, .55);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ev-howto__card:target {
  border-color: rgba(99, 102, 241, .55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .35), 0 16px 48px rgba(0, 0, 0, .28);
}

.ev-howto__card--risk {
  border-left-color: rgba(251, 146, 60, .65);
  background: linear-gradient(180deg, rgba(251, 146, 60, .08) 0%, var(--surface, #22222c) 55%);
}

.ev-howto__card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.ev-howto__card-num {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #818cf8;
}

.ev-howto__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text, #eeeff5);
}

.ev-howto__card-lead {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #d8dce8;
}

.ev-howto__card-lead strong {
  font-weight: 700;
  color: #eef0f8;
}

.ev-howto__card-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted, #a8adb9);
}

.ev-howto__inline-link {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ev-howto__inline-link:hover {
  color: #c7d2fe;
}

.ev-howto__compare {
  display: grid;
  gap: 12px;
  margin: 14px 0 14px;
}

@media (min-width: 560px) {
  .ev-howto__compare {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.ev-howto__compare-item {
  padding: 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
}

.ev-howto__compare-item--conv {
  border-top: 3px solid rgba(52, 211, 153, .65);
}

.ev-howto__compare-item--early {
  border-top: 3px solid rgba(96, 165, 250, .75);
}

.ev-howto__compare-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e5e7eb;
}

.ev-howto__compare-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #a8adb9;
}

.ev-howto__cta {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .28);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.ev-howto__cta-copy {
  font-size: 13px;
  line-height: 1.5;
  color: #c9cdd9;
  max-width: 42ch;
}

.ev-howto__cta-copy strong {
  color: #eef0f8;
  font-weight: 700;
}

.ev-howto__cta-btn {
  flex-shrink: 0;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ev-howto__cta-btn:hover {
  filter: brightness(1.08);
}
