:root {
  --tour-accent: #1e3a5f;
  --tour-accent-strong: #2d5a87;
  --tour-text: #334e68;
  --tour-shadow: 0 18px 40px rgba(16, 24, 40, 0.25);
}

/* Tool Panel */
.tool-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10001;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tool-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.tool-panel__link:hover {
  background: rgba(0, 0, 0, 0.95);
}

.tool-panel__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.7;
}

.tour-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: var(--tour-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
  cursor: pointer;
}

.tour-toggle[data-active="true"] {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.tour-toggle:focus-visible {
  outline: 3px solid rgba(30, 90, 135, 0.4);
  outline-offset: 2px;
}

.tour-toggle__status {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 999px;
}

.tour-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

body.has-bottom-nav .tool-panel {
  bottom: 90px;
}

@media (max-width: 520px) {
  .tool-panel {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  body.has-bottom-nav .tool-panel {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

.shepherd-element {
  border-radius: 16px;
  box-shadow: var(--tour-shadow);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shepherd-header {
  background: #f4f7fb;
}

.shepherd-title {
  color: #102a43;
  font-size: 16px;
  font-weight: 700;
}

.shepherd-text {
  color: var(--tour-text);
  font-size: 14px;
  line-height: 1.5;
}

.shepherd-text p {
  margin: 0 0 12px 0;
}

.shepherd-text p:last-child {
  margin-bottom: 0;
}

.shepherd-text strong {
  color: #102a43;
}

.shepherd-footer {
  gap: 8px;
}

.shepherd-button {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
}

.shepherd-button-primary {
  background: var(--tour-accent);
  color: #fff;
}

.shepherd-button-primary:hover {
  background: var(--tour-accent-strong);
}

.shepherd-button-secondary {
  background: #eef2f6;
  color: var(--tour-accent);
}

.shepherd-button-tertiary {
  background: transparent;
  color: #6b7280;
}

.shepherd-cancel-icon {
  color: #667085;
}

.shepherd-modal-overlay-container {
  background: rgba(10, 20, 30, 0.55);
}

/* Intro Modal */
.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.intro-modal.hidden {
  display: none;
}

.intro-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.75);
}

.intro-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--tour-shadow);
  animation: intro-modal-in 0.3s ease-out;
}

@keyframes intro-modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.intro-modal__icon {
  margin-bottom: 20px;
}

.intro-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #102a43;
  margin-bottom: 16px;
}

.intro-modal__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tour-text);
  margin-bottom: 16px;
}

.intro-modal__description:last-of-type {
  margin-bottom: 24px;
}

.intro-modal__cta {
  display: block;
  width: 100%;
  background: var(--tour-accent);
  color: #fff;
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.intro-modal__cta:hover {
  background: var(--tour-accent-strong);
}

.intro-modal__hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
}
