:root {
  --tour-blue: #2f6bff;
  --tour-blue-2: #12a8ff;
  --tour-ink: #10213d;
  --tour-muted: #5d7194;
  --tour-line: #d9e5f7;
  --tour-soft: #eef6ff;
}

.mavex-help-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9992;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--tour-blue), #174edb);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: 0 16px 34px rgba(47,107,255,.28);
  cursor: pointer;
}

.mavex-help-button:hover { transform: translateY(-1px); }

.mavex-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9993;
  background: rgba(11, 24, 48, .14);
  backdrop-filter: none;
}

.mavex-tour-focus {
  position: fixed;
  z-index: 9994;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(9, 20, 40, .14), 0 0 0 3px rgba(47,107,255,.85), 0 24px 60px rgba(0,0,0,.18);
  transition: all .22s ease;
}

.mavex-tour-card,
.mavex-tour-menu {
  position: fixed;
  z-index: 9995;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background: #fff;
  color: var(--tour-ink);
  box-shadow: 0 24px 70px rgba(8, 30, 70, .26);
}

.mavex-tour-card { padding: 16px; }
.mavex-tour-card h3,
.mavex-tour-menu h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.12; }
.mavex-tour-card p,
.mavex-tour-menu p { margin: 0; color: var(--tour-muted); line-height: 1.42; font-size: .9rem; }

.mavex-tour-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tour-soft);
  color: var(--tour-blue);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}

.mavex-tour-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--tour-line);
}

.mavex-tour-actions .spacer { flex: 1; }
.mavex-tour-btn {
  border: 1px solid var(--tour-line);
  border-radius: 13px;
  padding: 9px 13px;
  background: #fff;
  color: var(--tour-ink);
  font-weight: 800;
  cursor: pointer;
}
.mavex-tour-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--tour-blue), #1d57df);
  color: #fff;
}
.mavex-tour-btn.ghost { color: var(--tour-muted); }

.mavex-tour-menu {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  width: min(860px, calc(100vw - 28px));
}

.mavex-tour-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mavex-tour-section {
  border: 1px solid var(--tour-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.mavex-tour-section b { display:block; color:var(--tour-ink); margin-bottom:4px; }
.mavex-tour-section span { color:var(--tour-muted); font-size:.82rem; line-height:1.35; }
.mavex-tour-section:hover { border-color: rgba(47,107,255,.55); box-shadow: 0 10px 28px rgba(47,107,255,.1); }

.mavex-tour-sim {
  position: fixed;
  z-index: 9994;
  left: 46%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 470px));
  min-width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 42px));
  overflow: auto;
  border-radius: 24px;
  border: 1px solid #cbdcf3;
  background: #fff;
  box-shadow: 0 28px 88px rgba(4, 24, 60, .34);
}

body.mavex-tour-has-sim .mavex-tour-backdrop {
  background: rgba(11, 24, 48, .10);
}

.mavex-tour-sim-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--tour-line);
  background: linear-gradient(90deg, #f7fbff, #eaf5ff);
}
.mavex-tour-sim-header b { font-size: 1rem; }
.mavex-tour-sim-header small {
  color: #6680a8;
  font-size: .76rem;
  font-weight: 800;
}
.mavex-tour-sim-body { padding: 18px; }
.mavex-tour-sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mavex-tour-sim-field label {
  display:block;
  margin-bottom:5px;
  color:#63789b;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:900;
}
.mavex-tour-sim-field input,
.mavex-tour-sim-field select,
.mavex-tour-sim-field textarea {
  width: 100%;
  min-height: 39px;
  border: 1px solid #cfe0f6;
  border-radius: 12px;
  padding: 9px 11px;
  color: var(--tour-ink);
  background: #f8fbff;
  font-weight: 700;
}
.mavex-tour-sim-field textarea { min-height: 72px; resize: vertical; }
.mavex-tour-sim-row {
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--tour-line);
  border-radius:16px;
  background:#f8fbff;
  margin-bottom:8px;
}
.mavex-tour-pill {
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#e9f2ff;
  color:#1f62e6;
  font-weight:900;
  font-size:.72rem;
}
.mavex-tour-warning {
  border:1px solid #ffd79a;
  background:#fff8e8;
  color:#8a4a00;
  border-radius:14px;
  padding:11px 13px;
  font-weight:800;
  font-size:.84rem;
  margin: 10px 0;
}
.mavex-tour-email {
  border:1px solid var(--tour-line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.mavex-tour-email-head {
  padding:13px 16px;
  background:#173b7a;
  color:#fff;
  font-weight:900;
}
.mavex-tour-email-body { padding:18px; }

@media (max-width: 760px) {
  .mavex-help-button { right: 14px; bottom: 14px; padding: 10px 14px; }
  .mavex-tour-sim-grid { grid-template-columns: 1fr; }
  .mavex-tour-sim { left: 50%; top: 42%; width: calc(100vw - 28px); min-width: 0; max-height: 60vh; }
  .mavex-tour-card { left: 14px !important; right: 14px !important; top: auto !important; bottom: 14px !important; width: auto; }
}
