/* ── PackBuddy Guided Tour ──────────────────────────── */

/* ── FAB ─────────────────────────────────────────────── */
/* Tour FAB is only relevant on the landing page — hide it on map view */
body:not(.hero-active) #pb-tour-fab {
  display: none;
}

/* Onboarding-Checklist überlagert sonst dauerhaft die Karte – auf der
   Kartenansicht nur noch über den Einstellungsmenü-Eintrag
   (#pb-checklist-settings-btn-sh) erreichbar, siehe js/tour.js. */
body:not(.hero-active) #pb-onboard-panel:not(.pb-chk-force-show) {
  display: none;
}

/* Tour bereits abgeschlossen/übersprungen: Neustart-FAB dauerhaft ausblenden
   (per JS in tour.js gesetzt, sowohl beim init() als auch nach endTour()) */
#pb-tour-fab.pb-tour-done {
  display: none !important;
}

#pb-tour-fab {
  position: fixed;
  bottom: 88px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange, #FF6B35);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  box-shadow: 0 4px 16px rgba(255,107,53,.45);
  transition: transform .15s, box-shadow .15s;
  color: #fff;
}
#pb-tour-fab:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(255,107,53,.6); }

/* ── Backdrop – only used for no-target steps ─────────── */
#pb-tour-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1510;
  pointer-events: none;
  transition: background .3s;
}
#pb-tour-backdrop.pb-tour-active { pointer-events: auto; }
#pb-tour-backdrop.pb-dim         { background: rgba(0,0,0,.65); }

/* ── Spotlight: subtle glow only, NO position override ── */
.pb-tour-spotlight {
  box-shadow: 0 0 0 3px #FF6B35, 0 0 20px 6px rgba(255,107,53,.25) !important;
  border-radius: var(--radius, 14px) !important;
  animation: pb-spotlight-glow 1.8s ease-in-out infinite;
}
@keyframes pb-spotlight-glow {
  0%,100% { box-shadow: 0 0 0 3px #FF6B35, 0 0 20px 6px rgba(255,107,53,.22); }
  50%     { box-shadow: 0 0 0 4px #FF6B35, 0 0 32px 10px rgba(255,107,53,.1); }
}

/* ── Corner frame – positioned + dimming via box-shadow ── */
#pb-tour-frame {
  position: fixed;       /* viewport-relative, JS keeps it locked */
  z-index: 1512;
  pointer-events: none;
  display: none;
  border-radius: calc(var(--radius, 14px) + 4px);
  /* The 9999px spread dims everything OUTSIDE the frame area */
  box-shadow: 0 0 0 9999px rgba(0,0,0,.65),
              inset 0 0 0 1px rgba(255,107,53,.5);
}
/* Corner brackets */
.pb-tc {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #FF6B35;
  border-style: solid;
}
.pb-tc--tl { top: -1px;    left: -1px;    border-width: 2.5px 0 0 2.5px; border-top-left-radius: 5px; }
.pb-tc--tr { top: -1px;    right: -1px;   border-width: 2.5px 2.5px 0 0; border-top-right-radius: 5px; }
.pb-tc--bl { bottom: -1px; left: -1px;    border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 5px; }
.pb-tc--br { bottom: -1px; right: -1px;   border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 5px; }
#pb-tour-frame.pb-frame-on .pb-tc { animation: pb-tc-blink 1.8s ease-in-out infinite; }
@keyframes pb-tc-blink { 0%,100% { opacity:1; } 50% { opacity:.38; } }

/* Scan-line sweep inside the spotlit area */
#pb-tour-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%, rgba(255,107,53,.07) 46%,
    rgba(255,107,53,.16) 50%, rgba(255,107,53,.07) 54%, transparent 100%);
  background-size: 100% 250%;
  animation: pb-scan 2.8s linear infinite;
  border-radius: inherit;
}
@keyframes pb-scan {
  from { background-position: 0 -100%; }
  to   { background-position: 0  200%; }
}

/* ── Step label – anchored to element top ─────────────── */
#pb-tour-label {
  position: fixed;     /* JS keeps it locked via rAF */
  z-index: 1520;
  background: #FF6B35;
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .22rem .65rem;
  border-radius: 7px;
  pointer-events: none;
  white-space: nowrap;
  display: none;
  box-shadow: 0 3px 10px rgba(255,107,53,.4);
  animation: pb-label-in .22s ease;
}
@keyframes pb-label-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#pb-tour-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-top-color: #FF6B35;
  border-bottom: none;
}
#pb-tour-label.pb-label-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom: 5px solid #FF6B35;
  border-top: none;
}

/* ── Tour card ────────────────────────────────────────── */
#pb-tour-card {
  position: fixed;
  z-index: 1560;
  background: var(--navy-card, #142236);
  color: #e6edf3;
  border: 1px solid rgba(255,107,53,.4);
  border-radius: var(--radius-lg, 22px);
  padding: 1.3rem 1.5rem 1.1rem;
  max-width: 340px;
  width: calc(100vw - 40px);
  box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 0 1px rgba(255,107,53,.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pb-tour-card-in .28s cubic-bezier(.34,1.26,.64,1);
}
@keyframes pb-tour-card-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#pb-tour-card.pb-anchored {
  animation: pb-card-in-a .26s cubic-bezier(.34,1.26,.64,1);
}
@keyframes pb-card-in-a {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
[data-theme="light"] #pb-tour-card {
  background: #fff;
  color: #2D3748;
  border-color: rgba(255,107,53,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(255,107,53,.1);
}

/* Directional arrow tip on card */
#pb-tour-card.pb-arrow-up::before {
  content: '';
  position: absolute;
  top: -9px;
  left: var(--arrow-x, 30px);
  border: 9px solid transparent;
  border-bottom-color: var(--navy-card, #142236);
  border-top: none;
}
#pb-tour-card.pb-arrow-down::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: var(--arrow-x, 30px);
  border: 9px solid transparent;
  border-top-color: var(--navy-card, #142236);
  border-bottom: none;
}
[data-theme="light"] #pb-tour-card.pb-arrow-up::before   { border-bottom-color: #fff; }
[data-theme="light"] #pb-tour-card.pb-arrow-down::before { border-top-color:    #fff; }

.pb-tour-card-head {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .5rem;
}
.pb-tour-step-badge {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .05em;
  background: rgba(255,107,53,.18);
  color: #FF6B35;
  padding: .2rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: .1rem;
}
.pb-tour-title { font-size: .95rem; font-weight: 700; margin: 0; line-height: 1.3; }
.pb-tour-text  { font-size: .82rem; line-height: 1.55; color: rgba(230,237,243,.72); margin: 0 0 1rem; }
[data-theme="light"] .pb-tour-text { color: #718096; }

.pb-tour-kbd-hint {
  font-size: .65rem;
  color: rgba(230,237,243,.28);
  text-align: right;
  margin-bottom: .55rem;
  letter-spacing: .03em;
}
[data-theme="light"] .pb-tour-kbd-hint { color: #b0bec5; }
.pb-tour-kbd-hint kbd {
  font-family: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: .05rem .3rem;
  font-size: .62rem;
}
[data-theme="light"] .pb-tour-kbd-hint kbd { background: #f0f4f8; border-color: #dde3ec; }

.pb-tour-actions { display: flex; align-items: center; gap: .55rem; }
.pb-tour-skip {
  font-size: .77rem; color: rgba(230,237,243,.38);
  background: none; border: none; cursor: pointer; padding: 0;
  margin-right: auto; transition: color .15s;
}
[data-theme="light"] .pb-tour-skip { color: #a0aec0; }
.pb-tour-skip:hover { color: #FF6B35; }

.pb-tour-prev, .pb-tour-next {
  border: none; border-radius: 10px; padding: .45rem .9rem;
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.pb-tour-prev { background: rgba(255,255,255,.09); color: #e6edf3; }
[data-theme="light"] .pb-tour-prev { background: #f0f4f8; color: #2D3748; }
.pb-tour-prev:hover { background: rgba(255,255,255,.16); }
.pb-tour-next { background: #FF6B35; color: #fff; }
.pb-tour-next:hover { background: #E05520; }

/* Progress dots */
.pb-tour-dots {
  display: flex; gap: 5px; align-items: center; justify-content: center; margin-top: .85rem;
}
.pb-tour-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.18); flex-shrink: 0; cursor: pointer;
  transition: background .2s, width .25s cubic-bezier(.34,1.3,.64,1), border-radius .2s;
}
[data-theme="light"] .pb-tour-dot { background: #e2e8f0; }
.pb-tour-dot:hover { background: rgba(255,107,53,.5); }
.pb-tour-dot.active { background: #FF6B35; width: 20px; border-radius: 3px; }

/* ── Trust Bar ────────────────────────────────────────── */
#pb-trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: .6rem; flex-wrap: wrap; padding: .6rem .9rem; margin-top: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius, 14px);
}
[data-theme="light"] #pb-trust-bar { background: rgba(255,107,53,.05); border-color: rgba(255,107,53,.2); }
.pb-trust-item { display: flex; align-items: center; gap: .3rem; font-size: .71rem; font-weight: 600; color: rgba(230,237,243,.65); white-space: nowrap; }
[data-theme="light"] .pb-trust-item { color: #718096; }
.pb-trust-sep { width: 1px; height: 12px; background: rgba(255,255,255,.15); flex-shrink: 0; }
[data-theme="light"] .pb-trust-sep { background: rgba(0,0,0,.12); }

/* ── Free First Contact Strip ─────────────────────────── */
#pb-free-strip {
  margin-top: .85rem;
  background: linear-gradient(135deg, rgba(255,107,53,.15) 0%, rgba(255,107,53,.06) 100%);
  border: 1.5px solid rgba(255,107,53,.4); border-radius: var(--radius, 14px);
  padding: .7rem 1rem; cursor: pointer; transition: border-color .2s, background .2s;
}
#pb-free-strip:hover { border-color: rgba(255,107,53,.7); background: linear-gradient(135deg, rgba(255,107,53,.22) 0%, rgba(255,107,53,.1) 100%); }
[data-theme="light"] #pb-free-strip { background: linear-gradient(135deg, rgba(255,107,53,.09) 0%, rgba(255,107,53,.03) 100%); }
.pb-free-strip-head { display: flex; align-items: center; gap: .55rem; }
.pb-free-badge { background: #FF6B35; color: #fff; font-size: .63rem; font-weight: 800; letter-spacing: .08em; padding: .18rem .5rem; border-radius: 6px; flex-shrink: 0; }
.pb-free-strip-text { font-size: .82rem; font-weight: 700; color: #e6edf3; flex: 1; }
[data-theme="light"] .pb-free-strip-text { color: #2D3748; }
.pb-free-chevron { font-size: .7rem; color: rgba(230,237,243,.4); transition: transform .2s; }
.pb-free-strip-sub { font-size: .71rem; color: rgba(230,237,243,.5); margin-top: .18rem; }
[data-theme="light"] .pb-free-strip-sub { color: #a0aec0; }
.pb-free-strip-form { display: none; margin-top: .65rem; }
.pb-free-strip-form.open { display: block; }
#pb-free-strip.fs-open .pb-free-chevron { transform: rotate(180deg); }
.pb-free-email-row { display: flex; gap: .45rem; }
.pb-free-email-input { flex: 1; padding: .48rem .7rem; border-radius: 10px; border: 1px solid rgba(255,107,53,.35); background: rgba(0,0,0,.28); color: #e6edf3; font-size: .8rem; outline: none; min-width: 0; }
[data-theme="light"] .pb-free-email-input { background: #fff; color: #2D3748; border-color: rgba(255,107,53,.35); }
.pb-free-email-input:focus { border-color: #FF6B35; }
.pb-free-submit-btn { background: #FF6B35; color: #fff; border: none; border-radius: 10px; padding: .48rem .95rem; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s; white-space: nowrap; flex-shrink: 0; }
.pb-free-submit-btn:hover { background: #E05520; }
.pb-free-note { font-size: .67rem; color: rgba(230,237,243,.38); margin-top: .3rem; text-align: center; }
[data-theme="light"] .pb-free-note { color: #a0aec0; }
.pb-free-success { display: none; text-align: center; padding: .4rem 0; font-size: .82rem; font-weight: 700; color: var(--green, #27AE60); }
.pb-free-success.show { display: block; }

/* ── Feature 1: Hotspot dots ─────────────────────── */
.pb-hotspot {
  display: none !important; /* hidden: confusing on map view, re-enable via JS if needed */
  position: fixed;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #FF6B35;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(255,107,53,.5);
  animation: pb-hotspot-pulse 2.4s ease-in-out infinite;
  transition: transform .15s;
}
.pb-hotspot:hover { transform: scale(1.25); }
.pb-hotspot-ring {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255,107,53,.55);
  border-radius: 50%;
  animation: pb-hotspot-ring 2.4s ease-in-out infinite;
}
.pb-hotspot-num {
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
}
@keyframes pb-hotspot-pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(255,107,53,.5), 0 0 0 0 rgba(255,107,53,.4); }
  50%     { box-shadow: 0 2px 8px rgba(255,107,53,.5), 0 0 0 8px rgba(255,107,53,0); }
}
@keyframes pb-hotspot-ring {
  0%,100% { opacity: .6; transform: scale(1); }
  50%     { opacity: 0;  transform: scale(1.6); }
}

/* ── Feature 4: Social-proof ticker ──────────────── */
#pb-social-ticker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .65rem;
  padding: .4rem .75rem;
  background: rgba(255,107,53,.08);
  border: 1px solid rgba(255,107,53,.2);
  border-radius: 10px;
  font-size: .73rem;
  color: rgba(230,237,243,.65);
  min-height: 32px;
  overflow: hidden;
}
[data-theme="light"] #pb-social-ticker {
  background: rgba(255,107,53,.06);
  border-color: rgba(255,107,53,.18);
  color: #718096;
}
.pb-ticker-icon { flex-shrink: 0; font-size: .8rem; }
.pb-ticker-inner {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
}
.pb-ticker-inner.pb-ticker-in {
  animation: pb-ticker-fade 4.5s ease forwards;
}
@keyframes pb-ticker-fade {
  0%   { opacity: 0; transform: translateY(6px); }
  8%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.pb-ticker-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(230,237,243,.28);
  font-size: .7rem;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.pb-ticker-close:hover { color: #FF6B35; }

/* ── Feature 3: Empty-state Hilferuf CTA ─────────── */
#pb-no-results-cta {
  padding: 1.5rem 1rem;
  text-align: center;
}
.pb-nrc-icon { font-size: 2.2rem; margin-bottom: .5rem; }
#pb-no-results-cta h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}
#pb-no-results-cta p {
  font-size: .8rem;
  color: var(--muted, rgba(230,237,243,.55));
  margin: 0 0 .9rem;
  line-height: 1.55;
}
.pb-nrc-btn {
  background: #FF6B35;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .55rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: .5rem;
}
.pb-nrc-btn:hover { background: #E05520; }
.pb-nrc-tip {
  font-size: .68rem;
  color: var(--muted, rgba(230,237,243,.38));
}

/* ── Feature 5: Onboarding checklist panel ───────── */
#pb-onboard-panel {
  position: fixed;
  bottom: 96px;
  left: 20px;
  z-index: 1195;
  background: var(--navy-card, #142236);
  border: 1px solid rgba(255,107,53,.35);
  border-radius: 16px;
  width: 220px;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  overflow: hidden;
  transition: opacity .4s, transform .4s;
}
[data-theme="light"] #pb-onboard-panel {
  background: #fff;
  border-color: rgba(255,107,53,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.pb-chk-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
[data-theme="light"] .pb-chk-header { border-bottom-color: rgba(0,0,0,.08); }
.pb-chk-title {
  font-size: .75rem;
  font-weight: 700;
  flex: 1;
  color: #e6edf3;
}
[data-theme="light"] .pb-chk-title { color: #2D3748; }
.pb-chk-count {
  font-size: .65rem;
  color: #FF6B35;
  font-weight: 700;
}
.pb-chk-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .6rem;
  color: rgba(230,237,243,.4);
  padding: 0;
  line-height: 1;
}
[data-theme="light"] .pb-chk-toggle { color: #a0aec0; }
.pb-chk-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
[data-theme="light"] .pb-chk-bar { background: #f0f4f8; }
.pb-chk-bar-fill {
  height: 100%;
  background: #FF6B35;
  border-radius: 2px;
  transition: width .5s cubic-bezier(.34,1.26,.64,1);
}
.pb-chk-body { padding: .35rem 0; }
.pb-chk-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .75rem;
  font-size: .74rem;
  color: rgba(230,237,243,.65);
  transition: color .2s, background .15s;
  cursor: default;
}
[data-theme="light"] .pb-chk-item { color: #718096; }
.pb-chk-item.done { color: rgba(230,237,243,.38); text-decoration: line-through; }
[data-theme="light"] .pb-chk-item.done { color: #c0ccda; }
.pb-chk-icon  { font-size: .8rem; flex-shrink: 0; }
.pb-chk-label { flex: 1; line-height: 1.35; }
.pb-chk-check {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
  color: #FF6B35;
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s, transform .3s cubic-bezier(.34,1.5,.64,1);
}
.pb-chk-item.done .pb-chk-check { opacity: 1; transform: scale(1); }

/* ── Tour Welcome Prompt ─────────────────────────── */
.pb-tw-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1649;
  opacity: 0;
  transition: opacity .3s;
}
.pb-tw-backdrop.pb-tw-in { opacity: 1; }

.pb-tour-welcome {
  position: fixed;
  z-index: 1650;
  bottom: 108px;
  right: 20px;
  width: 300px;
  background: var(--navy-card, #142236);
  border: 1px solid rgba(255,107,53,.32);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow:
    0 16px 48px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,107,53,.08);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity .32s ease, transform .38s cubic-bezier(.34,1.26,.64,1);
  pointer-events: none;
}
.pb-tour-welcome.pb-tw-in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
[data-theme="light"] .pb-tour-welcome {
  background: #ffffff;
  border-color: rgba(255,107,53,.22);
  box-shadow: 0 8px 32px rgba(0,0,0,.11), 0 0 0 1px rgba(255,107,53,.06);
}

/* Close ✕ */
.pb-tw-close {
  position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  font-size: .72rem; color: rgba(230,237,243,.42);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; line-height: 1;
}
.pb-tw-close:hover { background: rgba(255,107,53,.2); color: #FF6B35; }
[data-theme="light"] .pb-tw-close { background: #f0f4f8; color: #a0aec0; }

/* Icon + text */
.pb-tw-icon { font-size: 1.85rem; line-height: 1; margin-bottom: .45rem; }
.pb-tw-title {
  font-size: .94rem; font-weight: 800; margin: 0 0 .32rem;
  color: #e6edf3; line-height: 1.3;
}
[data-theme="light"] .pb-tw-title { color: #1a202c; }
.pb-tw-text {
  font-size: .78rem; line-height: 1.55;
  color: rgba(230,237,243,.58); margin: 0 0 .85rem;
}
[data-theme="light"] .pb-tw-text { color: #718096; }

/* Step progress dots */
.pb-tw-steps {
  display: flex; gap: 4px; margin-bottom: .9rem; align-items: center;
}
.pb-tw-step-dot {
  width: 18px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.1); flex-shrink: 0;
  transition: background .2s;
}
.pb-tw-step-dot:first-child { background: #FF6B35; width: 26px; }
[data-theme="light"] .pb-tw-step-dot { background: #e2e8f0; }
[data-theme="light"] .pb-tw-step-dot:first-child { background: #FF6B35; }

/* Buttons */
.pb-tw-actions { display: flex; align-items: center; gap: .5rem; }
.pb-tw-skip {
  font-size: .76rem; color: rgba(230,237,243,.36);
  background: none; border: none; cursor: pointer; padding: 0;
  margin-right: auto; transition: color .15s; font-family: inherit;
}
.pb-tw-skip:hover { color: rgba(230,237,243,.72); }
[data-theme="light"] .pb-tw-skip { color: #a0aec0; }
[data-theme="light"] .pb-tw-skip:hover { color: #718096; }
.pb-tw-start {
  background: #FF6B35; color: #fff; border: none;
  border-radius: 10px; padding: .52rem 1.05rem;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.pb-tw-start:hover  { background: #e05520; transform: scale(1.03); }
.pb-tw-start:active { transform: scale(.97); }

/* Mobile / tablet: full-width bottom sheet */
@media (max-width: 680px) {
  .pb-tw-backdrop { display: block; }
  .pb-tour-welcome {
    bottom: 0; left: 0; right: 0; width: auto;
    border-radius: 22px 22px 0 0;
    padding: 1.6rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,107,53,.14);
    transform: translateY(100%);
    opacity: 1;
  }
  .pb-tour-welcome.pb-tw-in { transform: translateY(0); }
  .pb-tw-start { flex: 1; text-align: center; padding: .62rem 1rem; font-size: .88rem; }
  .pb-tw-title { font-size: 1.02rem; }
  .pb-tw-text  { font-size: .82rem; }
  .pb-tw-step-dot { flex: 1; width: auto; max-width: 32px; }
  .pb-tw-step-dot:first-child { width: auto; }
}

@media (max-width: 480px) {
  #pb-trust-bar { gap: .4rem; }
  .pb-trust-sep { display: none; }
  #pb-tour-fab  { bottom: 76px; right: 16px; width: 46px; height: 46px; }
  #pb-tour-card { padding: 1.1rem 1.2rem 1rem; }
  #pb-onboard-panel { width: 200px; left: 12px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  #pb-tour-frame::after, .pb-tour-spotlight,
  #pb-tour-frame.pb-frame-on .pb-tc, .pb-hotspot, .pb-hotspot-ring { animation: none !important; }
  .pb-tour-welcome, .pb-tw-backdrop {
    transition: opacity .15s !important;
    transform: none !important;
  }
  .pb-tour-welcome.pb-tw-in { transform: none !important; }
}
