/* ══════════════════════════════════════
   ONBOARDING MODAL
   ══════════════════════════════════════ */

.onb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.onb-overlay.active {
  opacity: 1;
}

.onb-overlay.closing {
  opacity: 0;
}

.onb-modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.onb-overlay.active .onb-modal {
  transform: scale(1) translateY(0);
}

.onb-overlay.closing .onb-modal {
  transform: scale(0.92) translateY(20px);
}

.onb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.onb-close:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-primary);
}

/* ── Header ── */
.onb-header {
  text-align: center;
  margin-bottom: 24px;
}

.onb-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
}

.onb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.onb-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.onb-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Feature Cards ── */
.onb-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.onb-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.08);
  transition: all 0.2s ease;
}

.onb-feature-card:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}

.onb-feature-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  flex-shrink: 0;
}

.onb-feature-info {
  flex: 1;
  min-width: 0;
}

.onb-feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.onb-feature-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Tip ── */
.onb-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.onb-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Footer ── */
.onb-footer {
  text-align: center;
}

.onb-btn-start {
  padding: 13px 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.onb-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

/* ── Scrollbar ── */
.onb-modal::-webkit-scrollbar {
  width: 5px;
}

.onb-modal::-webkit-scrollbar-track {
  background: transparent;
}

.onb-modal::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
}

/* ── Light theme ── */
[data-theme="light"] .onb-modal {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .onb-feature-card {
  background: rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .onb-feature-card:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .onb-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .onb-modal {
    padding: 28px 20px 22px;
    max-height: 90vh;
    border-radius: 20px 20px 12px 12px;
  }

  .onb-header h2 {
    font-size: 1.15rem;
  }

  .onb-feature-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .onb-feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .onb-feature-title {
    font-size: 0.85rem;
  }

  .onb-feature-desc {
    font-size: 0.75rem;
  }
}
