.munay-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    visibility: hidden;
}
.munay-tour-overlay.active {
    visibility: visible;
}
.munay-tour-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(10, 5, 20, 0.48);
    border: 2px solid rgba(255, 184, 77, 0.6);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.5, 1);
    pointer-events: none;
}

.munay-tour-highlighted {
    position: relative;
    z-index: 9998 !important;
    pointer-events: auto !important;
}

#sintonizarKnob.munay-tour-highlighted {
    outline: 2px solid #ffcf70;
    outline-offset: 2px;
    filter: drop-shadow(0 0 8px rgba(255, 184, 77, 0.9));
    animation: munay-knob-target-pulse 1.5s ease-in-out infinite;
}

@keyframes munay-knob-target-pulse {
    0%, 100% { outline-color: #d4a84b; outline-offset: 2px; }
    50% { outline-color: #fff0a8; outline-offset: 3px; }
}

@keyframes munay-tour-knob-ring {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

/* Short dynamic arrow beside the highlighted element */
.munay-tour-arrow {
    position: fixed;
    z-index: 9999;
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, top 0.3s ease, left 0.3s ease;
}
.munay-tour-arrow.visible { opacity: 1; }
.munay-tour-arrow::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255, 184, 77, 0.9);
    border-style: solid;
}
.munay-tour-arrow-up::before {
    left: 2px;
    top: 4px;
    border-width: 2px 0 0 2px;
    transform: rotate(45deg);
}
.munay-tour-arrow-down::before {
    left: 2px;
    top: 0;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.munay-tour-arrow-right::before {
    left: 0;
    top: 2px;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}
.munay-tour-arrow-left::before {
    left: 4px;
    top: 2px;
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
}
.munay-tour-arrow::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(255, 184, 77, 0.2);
    animation: munay-tour-pulse 1.6s ease-in-out infinite;
}
@keyframes munay-tour-pulse {
    0%, 100% { transform: scale(0.75); opacity: 0.35; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* Fixed tooltip — top-left corner */
.munay-tour-tooltip {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(165deg, #2e2418 0%, #1c1510 50%, #0d0a07 100%);
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 168, 75, 0.15);
    color: #f5f0e8;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease, left 0.3s ease;
    pointer-events: auto;
}
.munay-tour-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.munay-tour-hint {
    position: fixed;
    z-index: 10000;
    max-width: min(220px, calc(100vw - 20px));
    padding: 8px 14px;
    border: 2px solid #17100a;
    border-radius: 9px;
    background: #fff;
    color: #111;
    box-shadow: 0 3px 0 #17100a, 0 6px 14px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, top 0.25s ease, left 0.25s ease;
    pointer-events: none;
}
.munay-tour-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.munay-tour-highlighted .display-label {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.munay-tour-highlighted .tuning-digits {
    color: #fffdf2 !important;
    font-size: 3rem;
    text-shadow: 0 0 12px rgba(255, 184, 77, 0.45);
}

.munay-tour-emoji {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.munay-tour-title {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 6px;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}
.munay-tour-body {
    font-size: 0.8rem;
    color: #c4b0e0;
    line-height: 1.5;
    margin-bottom: 14px;
}
.munay-tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.munay-tour-actions-left,
.munay-tour-actions-right {
    display: flex;
    gap: 8px;
}

.munay-tour-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.munay-tour-btn-primary {
    background: linear-gradient(135deg, #e8a317, #7a5610);
    border: 1px solid #d4a84b;
    color: #f5f0e8;
}
.munay-tour-btn-primary:hover {
    background: linear-gradient(135deg, #ffb84d, #e8a317);
    box-shadow: 0 0 14px rgba(255, 184, 77, 0.4);
}
.munay-tour-btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}
.munay-tour-waiting {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(212, 168, 75, 0.35);
    border-radius: 8px;
    color: #ffcf70;
    background: rgba(212, 168, 75, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
}
.munay-tour-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c4b0e0;
}
.munay-tour-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}
.munay-tour-btn-skip {
    color: #8a7aa8;
    background: transparent;
    border: none;
    font-size: 0.72rem;
    padding: 8px 12px;
}
.munay-tour-btn-skip:hover {
    color: #c4b0e0;
}

.munay-tour-dont-show {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.74rem;
    color: #c4b0e0;
    user-select: none;
}
.munay-tour-dont-show input {
    accent-color: #d4a84b;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.munay-tour-progress {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}
.munay-tour-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}
.munay-tour-progress-dot.active {
    background: #d4a84b;
}
.munay-tour-progress-dot.done {
    background: rgba(212, 168, 75, 0.4);
}
.munay-tour-step-count {
    color: #ffcf70;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 7px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .munay-tour-tooltip {
        width: calc(100vw - 24px);
        max-width: 340px;
        top: 12px;
        left: 12px;
        padding: 16px 16px;
    }
    .munay-tour-btn {
        padding: 7px 14px;
        font-size: 0.72rem;
    }
    .munay-tour-body {
        font-size: 0.76rem;
        margin-bottom: 12px;
    }
    .munay-tour-arrow { width: 15px; height: 15px; }
}

@media (max-width: 380px) {
    .munay-tour-tooltip {
        width: calc(100vw - 16px);
        left: 8px;
        top: 8px;
        padding: 14px 14px;
    }
    .munay-tour-emoji {
        font-size: 1.1rem;
    }
    .munay-tour-title {
        font-size: 0.88rem;
    }
    .munay-tour-body {
        font-size: 0.72rem;
    }
}
