/* Onboarding Tour Modal */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: tour-fade-in 0.2s ease;
}

@keyframes tour-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tour-modal {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  animation: tour-slide-up 0.25s ease;
}

@keyframes tour-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tour-header {
  padding: 1.75rem 2rem 0;
  border-bottom: none;
}

.tour-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.tour-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.tour-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.4rem;
  line-height: 1.5;
}

.tour-step-indicator {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 2rem 0;
}

.tour-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(92, 88, 74, 0.4);
  transition: background 0.2s;
  cursor: pointer;
}

.tour-step-dot.active {
  background: var(--accent);
}

.tour-step-dot.done {
  background: rgba(201, 162, 39, 0.4);
}

.tour-body {
  padding: 1.5rem 2rem;
}

.tour-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tour-card {
  background: var(--surface-2);
  border: 1px solid rgba(92, 88, 74, 0.25);
  border-radius: 7px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.tour-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

.tour-card-icon {
  width: 32px;
  height: 32px;
  background: rgba(201, 162, 39, 0.08);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.tour-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tour-card-desc {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tour-card-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
}

.tour-card-link:hover {
  opacity: 0.75;
}

.tour-footer {
  padding: 0 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-skip-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.tour-skip-btn:hover {
  color: var(--text-secondary);
}

.tour-cta-btn {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #0d0d0a;
  background: var(--accent);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.tour-cta-btn:hover {
  background: #d4ad2a;
}

@media (max-width: 600px) {
  .tour-card-grid {
    grid-template-columns: 1fr;
  }
  .tour-title {
    font-size: 1.3rem;
  }
}