.onboarding-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    pointer-events: auto;
}

.onboarding-popup {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    width: 280px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
}

/* Arrow styles */
.onboarding-popup::after,
.onboarding-popup::before {
    top: 100%;
    left: var(--arrow-left, 20px);
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.onboarding-popup::after {
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #ffffff;
    border-width: 10px;
    margin-left: -10px;
}

.onboarding-popup::before {
    border-color: rgba(204, 204, 204, 0);
    border-top-color: #ccc;
    border-width: 11px;
    margin-left: -11px;
}

.onboarding-popup.arrow-top::after,
.onboarding-popup.arrow-top::before {
    bottom: 100%;
    top: auto;
}

.onboarding-popup.arrow-top::after {
    border-top-color: transparent;
    border-bottom-color: #ffffff;
}

.onboarding-popup.arrow-top::before {
    border-top-color: transparent;
    border-bottom-color: #ccc;
}

.onboarding-popup.no-arrow::after,
.onboarding-popup.no-arrow::before {
    display: none;
}

.onboarding-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.onboarding-buttons {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.onboarding-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-got-it {
    background: #eee;
    color: #333;
}

.btn-show-me {
    background: #007bff;
    color: white;
}

.onboarding-checkbox {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-icon {
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
    fill: currentColor;
    position: relative;
    top: -1px;
}

.inline-btn-ref {
    font-weight: bold;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9em;
    white-space: nowrap;
    color: #333;
}

.share-mockup {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mock-header {
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    margin-bottom: 6px;
    color: #333;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 12px;
    color: #555;
}

.mock-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.mock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 4px;
}

.mock-icon svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.onboarding-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M7 2l12 11.2-5.8.5 3.3 7.3-2.2.9-3.2-7.4-4.4 4z'/%3E%3C/svg%3E");
    background-size: contain;
    z-index: 10002;
    transition: top 2s ease-in-out, left 2s ease-in-out, opacity 0.5s;
    pointer-events: none;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

/* Highlighter Halo */
.onboarding-cursor::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    left: -15px;
    top: -15px;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.8) 0%, rgba(255, 235, 59, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.4);
    }

    /* Slightly less fade for better halo visibility */
}

.onboarding-cursor.blinking {
    animation: cursor-blink 0.5s ease-in-out infinite;
}

.active-click {
    transform: scale(0.95);
    transition: transform 0.1s;
}