/* =========================================================
   DREAMMAKER MODULE 8 — INTERACTIVE DASHBOARD TOUR
   ========================================================= */

.dm-module8-tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dm-module8-tour-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(85, 169, 255, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(22, 48, 98, 0.58),
      rgba(7, 17, 46, 0.86)
    );
}

.dm-module8-tour-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #06101f;
  font-weight: 900;
  background:
    linear-gradient(
      135deg,
      #52b8ff,
      #54e5a0
    );
}

.dm-module8-tour-card strong {
  display: block;
  color: #f4f8ff;
  font-size: 14px;
}

.dm-module8-tour-card p {
  margin: 6px 0 0;
  color: #9eaccb;
  font-size: 13px;
  line-height: 1.55;
}

.dm-module8-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dm-module8-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(74, 231, 151, 0.3);
  border-radius: 999px;
  color: #aef6cf;
  background: rgba(45, 205, 128, 0.09);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dm-module8-complete-status {
  margin: 22px 0;
  padding: 17px;
  border: 1px solid rgba(86, 169, 255, 0.22);
  border-radius: 15px;
  color: #c7d4ef;
  background: rgba(13, 31, 70, 0.58);
  line-height: 1.6;
}

.dm-module8-highlight {
  position: relative !important;
  z-index: 100002 !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 4px rgba(77, 174, 255, 0.92),
    0 0 0 11px rgba(77, 174, 255, 0.17),
    0 24px 70px rgba(0, 0, 0, 0.52) !important;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease !important;
}

#dm-module8-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(1, 4, 15, 0.76);
  backdrop-filter: blur(4px);
}

#dm-module8-tour-dialog {
  position: fixed;
  z-index: 100003;
  width: min(430px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(92, 175, 255, 0.36);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 35, 78, 0.98),
      rgba(5, 12, 35, 0.99)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  color: #f5f8ff;
}

.dm-module8-dialog-eyebrow {
  color: #55baff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

#dm-module8-tour-dialog h2 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
}

#dm-module8-tour-dialog p {
  margin: 0;
  color: #aab8d6;
  font-size: 14px;
  line-height: 1.65;
}

.dm-module8-dialog-progress {
  height: 6px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.dm-module8-dialog-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #4db7ff,
      #55e69f
    );
}

.dm-module8-dialog-count {
  color: #7f8cab;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.dm-module8-dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.dm-module8-dialog-actions-group {
  display: flex;
  gap: 9px;
}

.dm-module8-tour-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(98, 172, 255, 0.28);
  border-radius: 11px;
  cursor: pointer;
  color: #dce7fb;
  background: rgba(30, 56, 105, 0.62);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.dm-module8-tour-button:hover {
  border-color: rgba(99, 184, 255, 0.56);
  background: rgba(44, 82, 145, 0.72);
}

.dm-module8-tour-button-primary {
  color: #06111f;
  border-color: transparent;
  background:
    linear-gradient(
      135deg,
      #4fb8ff,
      #55e69f
    );
}

.dm-module8-tour-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.dm-module8-tour-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100010;
  max-width: 390px;
  padding: 15px 18px;
  border: 1px solid rgba(77, 224, 148, 0.31);
  border-radius: 14px;
  color: #c9f8dd;
  background: rgba(8, 32, 31, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .dm-module8-tour-grid {
    grid-template-columns: 1fr;
  }

  #dm-module8-tour-dialog {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto;
  }

  .dm-module8-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dm-module8-dialog-actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dm-module8-tour-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-module8-highlight {
    transition: none !important;
  }
}
