/* === Driver.js base styles === */
.driver-active .driver-overlay,
.driver-active * {
  pointer-events: none;
}

.driver-active .driver-active-element,
.driver-active .driver-active-element *,
.driver-popover,
.driver-popover * {
  pointer-events: auto;
}

@keyframes animate-fade-in {
  0% { opacity: 0; }
  to { opacity: 1; }
}

.driver-fade .driver-overlay {
  animation: animate-fade-in .2s ease-in-out;
}

.driver-fade .driver-popover {
  animation: animate-fade-in .2s;
}

.driver-popover {
  all: unset;
  box-sizing: border-box;
  color: #2d2d2d;
  margin: 0;
  padding: 15px;
  border-radius: 5px;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 1px 10px #0006;
  z-index: 1000000000;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
}

.driver-popover * {
  font-family: Helvetica Neue, Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;
}

.driver-popover-title {
  font: 19px/normal sans-serif;
  font-weight: 700;
  display: block;
  position: relative;
  line-height: 1.5;
  zoom: 1;
  margin: 0;
}

.driver-popover-close-btn {
  all: unset;
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 28px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #d2d2d2;
  z-index: 1;
  text-align: center;
  transition: color;
  transition-duration: .2s;
}

.driver-popover-close-btn:hover,
.driver-popover-close-btn:focus {
  color: #2d2d2d;
}

.driver-popover-title[style*=block]+.driver-popover-description {
  margin-top: 5px;
}

.driver-popover-description {
  margin-bottom: 0;
  font: 14px/normal sans-serif;
  line-height: 1.5;
  font-weight: 400;
  zoom: 1;
}

.driver-popover-footer {
  margin-top: 15px;
  text-align: right;
  zoom: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-popover-progress-text {
  font-size: 13px;
  font-weight: 400;
  color: #727272;
  zoom: 1;
}

.driver-popover-footer button {
  all: unset;
  display: inline-block;
  box-sizing: border-box;
  padding: 3px 7px;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  background-color: #fff;
  color: #2d2d2d;
  font: 12px/normal sans-serif;
  cursor: pointer;
  outline: 0;
  zoom: 1;
  line-height: 1.3;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.driver-popover-footer .driver-popover-btn-disabled {
  opacity: .5;
  pointer-events: none;
}

:not(body):has(>.driver-active-element) {
  overflow: hidden!important;
}

.driver-no-interaction,
.driver-no-interaction * {
  pointer-events: none!important;
}

.driver-popover-footer button:hover,
.driver-popover-footer button:focus {
  background-color: #f7f7f7;
}

.driver-popover-navigation-btns {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.driver-popover-navigation-btns button+button {
  margin-left: 4px;
}

.driver-popover-arrow {
  content: "";
  position: absolute;
  border: 5px solid #fff;
}

.driver-popover-arrow-side-over {
  display: none;
}

.driver-popover-arrow-side-left {
  left: 100%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.driver-popover-arrow-side-right {
  right: 100%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.driver-popover-arrow-side-top {
  top: 100%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.driver-popover-arrow-side-bottom {
  bottom: 100%;
  border-left-color: transparent;
  border-top-color: transparent;
  border-right-color: transparent;
}

.driver-popover-arrow-side-center {
  display: none;
}

.driver-popover-arrow-side-left.driver-popover-arrow-align-start,
.driver-popover-arrow-side-right.driver-popover-arrow-align-start {
  top: 15px;
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-start,
.driver-popover-arrow-side-bottom.driver-popover-arrow-align-start {
  left: 15px;
}

.driver-popover-arrow-align-end.driver-popover-arrow-side-left,
.driver-popover-arrow-align-end.driver-popover-arrow-side-right {
  bottom: 15px;
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-end,
.driver-popover-arrow-side-bottom.driver-popover-arrow-align-end {
  right: 15px;
}

.driver-popover-arrow-side-left.driver-popover-arrow-align-center,
.driver-popover-arrow-side-right.driver-popover-arrow-align-center {
  top: 50%;
  margin-top: -5px;
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-center,
.driver-popover-arrow-side-bottom.driver-popover-arrow-align-center {
  left: 50%;
  margin-left: -5px;
}

.driver-popover-arrow-none {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   TCS Dark Theme Override — matches TheCollectiblesExchange branding
   ═══════════════════════════════════════════════════════════════════ */

/* Popover card */
.driver-popover {
  background-color: #17171b;
  color: #FFFFFF;
  border: 1px solid #2a2a32;
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,200,87,0.08);
}

.driver-popover * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Title */
.driver-popover-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFC857;
  line-height: 1.4;
  padding-right: 24px;
}

/* Description */
.driver-popover-description {
  font-size: 14px;
  font-weight: 400;
  color: #D1D1D6;
  line-height: 1.6;
}

/* Close button */
.driver-popover-close-btn {
  color: #555560;
  font-size: 20px;
  top: 12px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-popover-close-btn:hover,
.driver-popover-close-btn:focus {
  color: #FFC857;
  background: rgba(255,200,87,0.1);
}

/* Footer */
.driver-popover-footer {
  margin-top: 16px;
  border-top: 1px solid #2a2a32;
  padding-top: 12px;
}

/* Progress text */
.driver-popover-progress-text {
  color: #A1A1AA;
  font-size: 12px;
  font-weight: 500;
}

/* Buttons */
.driver-popover-footer button {
  background: #222228;
  color: #D1D1D6;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-shadow: none;
  transition: all 0.15s ease;
}

.driver-popover-footer button:hover,
.driver-popover-footer button:focus {
  background: #2a2a32;
  color: #FFFFFF;
  border-color: #3a3a44;
}

/* Next / Done button — gold accent */
.driver-popover-footer .driver-popover-next-btn {
  background: #FFC857;
  color: #0B0B0D;
  border-color: #FFC857;
}

.driver-popover-footer .driver-popover-next-btn:hover,
.driver-popover-footer .driver-popover-next-btn:focus {
  background: #ffd470;
  color: #0B0B0D;
  border-color: #ffd470;
}

/* Arrow — match popover bg */
.driver-popover-arrow {
  border: 5px solid #17171b;
}

.driver-popover-arrow-side-left {
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.driver-popover-arrow-side-right {
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.driver-popover-arrow-side-top {
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.driver-popover-arrow-side-bottom {
  border-left-color: transparent;
  border-top-color: transparent;
  border-right-color: transparent;
}

/* Overlay — slightly darker for dark theme */
.driver-overlay {
  opacity: 0.75;
}

/* Stage highlight ring — gold glow */
.driver-active-element {
  box-shadow: 0 0 0 3px rgba(255,200,87,0.35), 0 0 16px rgba(255,200,87,0.15) !important;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════
   Floating Help Button
   ═══════════════════════════════════════════════════════ */

.tcs-help-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC857, #e6b44e);
  color: #0B0B0D;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,200,87,0.3), 0 0 0 0 rgba(255,200,87,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.tcs-help-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(255,200,87,0.4), 0 0 0 4px rgba(255,200,87,0.15);
}

.tcs-help-fab:active {
  transform: scale(0.96);
}

/* Help menu popover */
.tcs-help-menu {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 9998;
  background: #17171b;
  border: 1px solid #2a2a32;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none;
  animation: animate-fade-in 0.15s ease;
}

.tcs-help-menu.open {
  display: block;
}

.tcs-help-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #D1D1D6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.tcs-help-menu-item:hover {
  background: rgba(255,200,87,0.08);
  color: #FFC857;
}

.tcs-help-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.tcs-help-menu-item:hover svg {
  opacity: 1;
}

.tcs-help-menu-divider {
  height: 1px;
  background: #2a2a32;
  margin: 4px 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .tcs-help-fab {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .tcs-help-menu {
    bottom: 134px;
    right: 16px;
    min-width: 200px;
  }

  .driver-popover {
    min-width: 240px;
    max-width: 300px;
    padding: 16px;
  }
}
