.coach-mark-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-mark-bubble {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    min-width: 280px;
    position: relative;
    animation: coachMarkFadeIn 0.2s ease-in-out;
}

.coach-mark-pointer {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.coach-mark-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.coach-mark-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-500);
    text-transform: capitalize;
}

.coach-mark-close {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.coach-mark-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.coach-mark-content {
    padding: 0.75rem 1rem;
    line-height: 1.5;
    color: #495057;
}

.coach-mark-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

/* Animation keyframes */
@keyframes coachMarkFadeIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}
@keyframes slideUpSheet {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .coach-mark-bubble {
        animation: none;
    }
    
    @keyframes coachMarkFadeIn {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .coach-mark-backdrop {
        align-items: flex-end;
        justify-content: center;
        backdrop-filter: blur(2px);
    }
    .coach-mark-bubble,
    .coach-mark-bubble.coach-mark-modal-responsive {
        min-width: 0;
        max-width: 100vw;
        width: 100vw;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
        padding: 1.25rem 1rem 1.5rem 1rem;
        margin: 0;
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        animation: slideUpSheet 0.22s cubic-bezier(0.4,0,0.2,1);
        transform: none !important;
        top: auto !important;
    }
    .coach-mark-pointer {
        display: none;
    }
}
@media (min-width: 769px) {
    .coach-mark-bubble,
    .coach-mark-bubble.coach-mark-modal-responsive {
        animation: coachMarkFadeIn 0.2s ease-in-out;
    }
}