/* ========================================
   EGON PRODUCT TOUR - Gallery-Inspired Styling
   Built on Shepherd.js with custom theming
   ======================================== */

/* ----------------------------------------
   OVERLAY - Sophisticated Dark Environment
   ---------------------------------------- */
.shepherd-modal-overlay-container {
    fill: rgba(15, 15, 15, 0.70);
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide orphaned overlay - only when no active tour element is visible */
/* IMPORTANT: Shepherd adds shepherd-enabled to body when tour is active */
/* This CSS catches overlays that persist after navigation/tour cancellation */
body:not(.shepherd-enabled) .shepherd-modal-overlay-container {
    display: none !important;
    pointer-events: none !important;
}

/* Also hide overlay if it exists but has no visible tour step */
.shepherd-modal-overlay-container:not(.shepherd-modal-is-visible) {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ----------------------------------------
   TARGET HIGHLIGHT - Subtle Amber Glow
   ---------------------------------------- */
.shepherd-target,
.shepherd-enabled.shepherd-target {
    box-shadow:
        0 0 0 4px rgba(201, 168, 106, 0.35),
        0 0 40px rgba(201, 168, 106, 0.15) !important;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

/* ----------------------------------------
   TOOLTIP - Gallery Card Aesthetic
   ---------------------------------------- */
.shepherd-element {
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-primary, rgba(0,0,0,0.08));
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 9999;
    /* Prevent position jump: use animation only once, then lock position */
    animation: tourSlideIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-iteration-count: 1;
    will-change: transform, opacity;
}

.shepherd-element[data-popper-placement^="top"] {
    animation: tourSlideInFromBottom 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shepherd-element[data-popper-placement^="bottom"] {
    animation: tourSlideInFromTop 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shepherd-element[data-popper-placement^="left"] {
    animation: tourSlideInFromRight 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shepherd-element[data-popper-placement^="right"] {
    animation: tourSlideInFromLeft 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------------------------------
   ARROW - Matching Card Style
   ---------------------------------------- */
.shepherd-arrow,
.shepherd-arrow::before {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: -1;
}

.shepherd-arrow::before {
    content: '';
    transform: rotate(45deg);
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-primary, rgba(0,0,0,0.08));
}

.shepherd-element[data-popper-placement^="top"] > .shepherd-arrow {
    bottom: -9px;
}

.shepherd-element[data-popper-placement^="bottom"] > .shepherd-arrow {
    top: -9px;
}

.shepherd-element[data-popper-placement^="left"] > .shepherd-arrow {
    right: -9px;
}

.shepherd-element[data-popper-placement^="right"] > .shepherd-arrow {
    left: -9px;
}

/* ----------------------------------------
   HEADER - Gallery Placard Style
   ---------------------------------------- */
.shepherd-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.shepherd-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #0f0f0f);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

/* Cancel Button - Refined X */
.shepherd-cancel-icon {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #8a8a8a);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    margin: -0.25rem -0.25rem 0 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.shepherd-cancel-icon:hover {
    background: var(--bg-tertiary, #e9ecef);
    color: var(--text-primary, #0f0f0f);
}

/* ----------------------------------------
   CONTENT - Refined Prose
   ---------------------------------------- */
.shepherd-text {
    padding: 0.5rem 1.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, #4a4a4a);
}

.shepherd-text p {
    margin: 0 0 0.75rem;
}

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

.shepherd-text strong {
    color: var(--text-primary, #0f0f0f);
    font-weight: 500;
}

/* ----------------------------------------
   PROGRESS DOTS - Elegant Indicators
   ---------------------------------------- */
.tour-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem 0;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-primary, rgba(0,0,0,0.15));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tour-progress-dot.active {
    background: var(--gallery-amber, #c9a86a);
    transform: scale(1.25);
}

.tour-progress-dot.completed {
    background: var(--gallery-sage, #6b8e7f);
}

/* ----------------------------------------
   FOOTER & BUTTONS
   ---------------------------------------- */
.shepherd-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: none;
}

.shepherd-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 450;
    letter-spacing: 0.01em;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

/* Primary Button - Obsidian */
.shepherd-button-primary,
.shepherd-button.shepherd-button-primary {
    background: var(--gallery-obsidian, #0f0f0f);
    color: #ffffff;
    border: 1px solid var(--gallery-obsidian, #0f0f0f);
}

.shepherd-button-primary:hover,
.shepherd-button.shepherd-button-primary:hover {
    background: var(--gallery-charcoal, #2a2a2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shepherd-button-primary:active,
.shepherd-button.shepherd-button-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Ghost Style */
.shepherd-button-secondary,
.shepherd-button.shepherd-button-secondary {
    background: transparent;
    color: var(--text-tertiary, #8a8a8a);
    border: 1px solid var(--border-primary, rgba(0,0,0,0.15));
}

.shepherd-button-secondary:hover,
.shepherd-button.shepherd-button-secondary:hover {
    border-color: var(--gallery-sage, #6b8e7f);
    color: var(--gallery-sage, #6b8e7f);
    background: rgba(107, 142, 127, 0.05);
}

/* Button Group Alignment */
.shepherd-footer .btn-group-left {
    display: flex;
    gap: 0.5rem;
}

.shepherd-footer .btn-group-right {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* ----------------------------------------
   DON'T SHOW AGAIN CHECKBOX
   ---------------------------------------- */
.tour-dismiss-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-tertiary, #8a8a8a);
    cursor: pointer;
    padding: 0.5rem 0 0;
    margin: 0 1.5rem;
}

.tour-dismiss-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--gallery-sage, #6b8e7f);
    cursor: pointer;
}

.tour-dismiss-option span {
    user-select: none;
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes tourSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tourSlideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tourSlideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tourSlideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tourSlideInFromRight {
    from {
        opacity: 0;
        transform: translateX(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ----------------------------------------
   CONFETTI CELEBRATION
   ---------------------------------------- */
.tour-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.tour-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 2s ease-out forwards;
}

.tour-confetti.gold { background: #c9a86a; }
.tour-confetti.amber { background: #d4af37; }
.tour-confetti.sage { background: #6b8e7f; }
.tour-confetti.bronze { background: #8b6f47; }

.tour-confetti.circle { border-radius: 50%; }
.tour-confetti.square { border-radius: 2px; }
.tour-confetti.diamond {
    transform: rotate(45deg);
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg) scale(0.5);
    }
}

/* ----------------------------------------
   TOAST PROMPT
   ---------------------------------------- */
.tour-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-primary, rgba(0,0,0,0.08));
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9998;
    animation: toastSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 320px;
}

.tour-toast.hiding {
    animation: toastSlideOut 0.3s ease-out forwards;
}

.tour-toast-icon {
    color: var(--gallery-amber, #c9a86a);
    font-size: 1.25rem;
}

.tour-toast-content {
    flex: 1;
}

.tour-toast-text {
    font-size: 0.9rem;
    color: var(--text-primary, #0f0f0f);
    margin-bottom: 0.5rem;
}

.tour-toast-btn {
    background: var(--gallery-obsidian, #0f0f0f);
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 450;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-toast-btn:hover {
    background: var(--gallery-charcoal, #2a2a2a);
}

.tour-toast-dismiss {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #8a8a8a);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.tour-toast-dismiss:hover {
    color: var(--text-primary, #0f0f0f);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ----------------------------------------
   TOUR MENU MODAL
   ---------------------------------------- */
.tour-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tour-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary, #e9ecef);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.tour-menu-item:hover {
    background: var(--bg-secondary, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tour-menu-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tour-menu-item-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-sage, #6b8e7f);
    font-size: 1rem;
}

.tour-menu-item-name {
    font-weight: 500;
    color: var(--text-primary, #0f0f0f);
    font-size: 0.95rem;
}

.tour-menu-item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tour-menu-item-check {
    color: var(--gallery-sage, #6b8e7f);
    font-size: 1rem;
}

.tour-menu-item-btn {
    background: var(--gallery-obsidian, #0f0f0f);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 450;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-menu-item-btn:hover {
    background: var(--gallery-charcoal, #2a2a2a);
    transform: translateY(-1px);
}

/* ----------------------------------------
   DARK THEME SUPPORT
   ---------------------------------------- */
[data-theme="dark"] .shepherd-element {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .shepherd-arrow::before {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="dark"] .shepherd-title {
    color: var(--text-primary);
}

[data-theme="dark"] .shepherd-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .shepherd-text strong {
    color: var(--text-primary);
}

[data-theme="dark"] .shepherd-cancel-icon {
    color: var(--text-tertiary);
}

[data-theme="dark"] .shepherd-cancel-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .tour-progress-dot {
    background: var(--border-primary);
}

[data-theme="dark"] .tour-progress-dot.active {
    background: var(--gallery-amber);
}

[data-theme="dark"] .tour-progress-dot.completed {
    background: var(--gallery-sage);
}

[data-theme="dark"] .shepherd-button-primary {
    background: var(--gallery-amber);
    color: #0f0f0f;
    border-color: var(--gallery-amber);
}

[data-theme="dark"] .shepherd-button-primary:hover {
    background: #d4b87a;
    box-shadow: 0 4px 12px rgba(201, 168, 106, 0.3);
}

[data-theme="dark"] .shepherd-button-secondary {
    color: var(--text-tertiary);
    border-color: var(--border-primary);
}

[data-theme="dark"] .shepherd-button-secondary:hover {
    border-color: var(--gallery-sage);
    color: var(--gallery-sage);
    background: rgba(122, 157, 142, 0.1);
}

[data-theme="dark"] .tour-dismiss-option {
    color: var(--text-tertiary);
}

[data-theme="dark"] .tour-toast {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tour-toast-text {
    color: var(--text-primary);
}

[data-theme="dark"] .tour-toast-btn {
    background: var(--gallery-amber);
    color: #0f0f0f;
}

[data-theme="dark"] .tour-toast-btn:hover {
    background: #d4b87a;
}

[data-theme="dark"] .tour-menu-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .tour-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tour-menu-item-icon {
    background: var(--bg-secondary);
    color: var(--gallery-sage);
}

[data-theme="dark"] .tour-menu-item-name {
    color: var(--text-primary);
}

[data-theme="dark"] .tour-menu-item-btn {
    background: var(--gallery-amber);
    color: #0f0f0f;
}

[data-theme="dark"] .tour-menu-item-btn:hover {
    background: #d4b87a;
}

/* ----------------------------------------
   REDUCED MOTION SUPPORT
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .shepherd-element,
    .shepherd-element[data-popper-placement^="top"],
    .shepherd-element[data-popper-placement^="bottom"],
    .shepherd-element[data-popper-placement^="left"],
    .shepherd-element[data-popper-placement^="right"] {
        animation: none;
    }

    .tour-progress-dot {
        transition: none;
    }

    .shepherd-button,
    .shepherd-button-primary,
    .shepherd-button-secondary {
        transition: none;
    }

    .tour-confetti {
        animation: none;
        display: none;
    }

    .tour-toast {
        animation: none;
    }

    .tour-toast.hiding {
        animation: none;
        opacity: 0;
    }
}

/* ----------------------------------------
   MOBILE RESPONSIVENESS
   ---------------------------------------- */
@media (max-width: 768px) {
    .shepherd-element {
        max-width: calc(100vw - 32px);
        margin: 0 16px;
    }

    .shepherd-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .shepherd-title {
        font-size: 1.1rem;
    }

    .shepherd-text {
        padding: 0.5rem 1.25rem 0.75rem;
        font-size: 0.9rem;
    }

    .shepherd-footer {
        padding: 0.75rem 1.25rem 1.25rem;
        flex-wrap: wrap;
    }

    .tour-progress {
        padding: 0.5rem 1.25rem 0;
    }

    .tour-dismiss-option {
        margin: 0 1.25rem;
    }

    .tour-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ----------------------------------------
   KEYBOARD FOCUS STATES
   ---------------------------------------- */
.shepherd-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--bg-secondary, #f8f9fa),
        0 0 0 5px var(--gallery-amber, #c9a86a);
}

.tour-dismiss-option input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--gallery-amber, #c9a86a);
    border-radius: 2px;
}

.tour-toast-btn:focus-visible,
.tour-menu-item-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--bg-secondary, #f8f9fa),
        0 0 0 4px var(--gallery-amber, #c9a86a);
}

/* ========================================
   WELCOME MODAL - First-Time User Experience
   ======================================== */

/* Modal Container Override */
.tour-welcome-modal .modal-content {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-primary, rgba(0,0,0,0.08));
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.tour-welcome-modal .modal-dialog {
    max-width: 520px;
}

/* Header Section */
.tour-welcome-header {
    background: linear-gradient(
        135deg,
        var(--gallery-obsidian, #0f0f0f) 0%,
        #1a1a1a 50%,
        #252525 100%
    );
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element */
.tour-welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 70%,
        rgba(201, 168, 106, 0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.tour-welcome-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    position: relative;
}

.tour-welcome-brand .highlight {
    color: var(--gallery-amber, #c9a86a);
}

.tour-welcome-tagline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    position: relative;
}

/* Body Section */
.tour-welcome-body {
    padding: 2rem;
}

.tour-welcome-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #0f0f0f);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tour-welcome-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, #4a4a4a);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.tour-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tour-welcome-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tour-welcome-feature:hover {
    background: var(--bg-tertiary, #e9ecef);
    transform: translateX(4px);
}

.tour-welcome-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(
        135deg,
        var(--gallery-obsidian, #0f0f0f) 0%,
        #2a2a2a 100%
    );
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-amber, #c9a86a);
    font-size: 1.1rem;
}

.tour-welcome-feature-content {
    flex: 1;
}

.tour-welcome-feature-content h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #0f0f0f);
    margin: 0 0 0.25rem;
}

.tour-welcome-feature-content p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary, #4a4a4a);
    margin: 0;
}

/* Footer Section */
.tour-welcome-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-primary, rgba(0,0,0,0.08));
}

.tour-welcome-btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--gallery-obsidian, #0f0f0f);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tour-welcome-btn-primary:hover {
    background: var(--gallery-charcoal, #2a2a2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tour-welcome-btn-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 450;
    background: transparent;
    color: var(--text-tertiary, #8a8a8a);
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tour-welcome-btn-secondary:hover {
    color: var(--text-primary, #0f0f0f);
}

/* ----------------------------------------
   TOUR MENU ENHANCEMENTS - Locked State
   ---------------------------------------- */
.tour-menu-item-locked {
    opacity: 0.6;
    pointer-events: none;
}

.tour-menu-item-locked .tour-menu-item-icon {
    background: var(--bg-tertiary, #e9ecef);
    color: var(--text-tertiary, #8a8a8a);
}

.tour-menu-item-locked .tour-menu-item-name {
    color: var(--text-tertiary, #8a8a8a);
}

.tour-menu-item-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary, #8a8a8a);
    margin-top: 0.25rem;
}

.tour-menu-item-locked .tour-menu-item-desc {
    font-style: italic;
}

/* Lock icon for locked tours */
.tour-menu-item-locked .tour-menu-item-status::before {
    content: '\f023';  /* Font Awesome lock icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-tertiary, #8a8a8a);
    font-size: 0.85rem;
}

/* ----------------------------------------
   CONTEXTUAL TIP - Inline Achievement Toast
   ---------------------------------------- */
.tour-contextual-tip {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--gallery-sage, #6b8e7f);
    border-left: 4px solid var(--gallery-sage, #6b8e7f);
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    max-width: 360px;
    z-index: 9998;
    animation: tipSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tour-contextual-tip.hiding {
    animation: tipSlideOut 0.3s ease-out forwards;
}

.tour-contextual-tip .tour-toast-icon {
    color: var(--gallery-sage, #6b8e7f);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.tour-toast-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary, #0f0f0f);
    margin-bottom: 0.5rem;
}

.tour-contextual-tip .tour-toast-text {
    margin-bottom: 1rem;
}

.tour-contextual-tip .tour-toast-btn {
    background: var(--gallery-sage, #6b8e7f);
}

.tour-contextual-tip .tour-toast-btn:hover {
    background: #7a9d8e;
}

@keyframes tipSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tipSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* ----------------------------------------
   DARK THEME - Welcome Modal
   ---------------------------------------- */
[data-theme="dark"] .tour-welcome-modal .modal-content {
    background: var(--bg-primary);
    border-color: var(--border-primary);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tour-welcome-header {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #151515 50%,
        #1a1a1a 100%
    );
}

[data-theme="dark"] .tour-welcome-header::before {
    background: radial-gradient(
        circle at 30% 70%,
        rgba(201, 168, 106, 0.12) 0%,
        transparent 50%
    );
}

[data-theme="dark"] .tour-welcome-title {
    color: var(--text-primary);
}

[data-theme="dark"] .tour-welcome-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .tour-welcome-feature {
    background: var(--bg-secondary);
}

[data-theme="dark"] .tour-welcome-feature:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .tour-welcome-feature-icon {
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #252525 100%
    );
}

[data-theme="dark"] .tour-welcome-feature-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .tour-welcome-feature-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .tour-welcome-footer {
    border-color: var(--border-primary);
}

[data-theme="dark"] .tour-welcome-btn-primary {
    background: var(--gallery-amber);
    color: #0f0f0f;
}

[data-theme="dark"] .tour-welcome-btn-primary:hover {
    background: #d4b87a;
    box-shadow: 0 6px 20px rgba(201, 168, 106, 0.25);
}

[data-theme="dark"] .tour-welcome-btn-secondary {
    color: var(--text-tertiary);
}

[data-theme="dark"] .tour-welcome-btn-secondary:hover {
    color: var(--text-primary);
}

/* Dark theme - Contextual Tip */
[data-theme="dark"] .tour-contextual-tip {
    background: var(--bg-secondary);
    border-color: var(--gallery-sage);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tour-toast-title {
    color: var(--text-primary);
}

/* Dark theme - Locked Menu Items */
[data-theme="dark"] .tour-menu-item-locked .tour-menu-item-icon {
    background: var(--bg-secondary);
}

/* ----------------------------------------
   MOBILE - Welcome Modal
   ---------------------------------------- */
@media (max-width: 768px) {
    .tour-welcome-modal .modal-content {
        border-radius: 12px;
        margin: 1rem;
    }

    .tour-welcome-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .tour-welcome-brand {
        font-size: 1.75rem;
    }

    .tour-welcome-tagline {
        font-size: 0.9rem;
    }

    .tour-welcome-body {
        padding: 1.5rem;
    }

    .tour-welcome-title {
        font-size: 1.1rem;
    }

    .tour-welcome-text {
        font-size: 0.9rem;
    }

    .tour-welcome-feature {
        padding: 0.875rem;
    }

    .tour-welcome-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .tour-welcome-feature-content h4 {
        font-size: 0.9rem;
    }

    .tour-welcome-feature-content p {
        font-size: 0.8rem;
    }

    .tour-welcome-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .tour-contextual-tip {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ----------------------------------------
   REDUCED MOTION - Welcome Modal
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tour-welcome-feature {
        transition: none;
    }

    .tour-welcome-btn-primary,
    .tour-welcome-btn-secondary {
        transition: none;
    }

    .tour-contextual-tip {
        animation: none;
    }

    .tour-contextual-tip.hiding {
        animation: none;
        opacity: 0;
    }
}

/* ========================================
   DEMO MODE TOUR - Centered Modal Styling
   ======================================== */

/* Centered steps - simple fixed positioning */
.shepherd-element.shepherd-centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.shepherd-element.shepherd-centered .shepherd-arrow {
    display: none;
}

/* Demo tour styling */
.egon-demo-tour {
    max-width: 480px;
}

.shepherd-demo-final .shepherd-text {
    text-align: center;
}
