/* PWA Share Tutorial Modal Styles */
#pwaShareTutorialModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

#pwaShareTutorialModal.active {
    display: flex;
    opacity: 1;
}

.tutorial-container {
    width: 100%;
    max-width: 448px;
    /* max-w-md */
    background-color: #f8fafc;
    border-radius: 24px;
    padding: 2rem 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#pwaShareTutorialModal.active .tutorial-container {
    transform: translateY(0);
}

.tutorial-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
    z-index: 50;
}

.tutorial-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Phone Mockup */
.mockup-phone {
    position: relative;
    width: 280px;
    background-color: #0f172a;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .mockup-phone {
        width: 320px;
    }
}

.mockup-screen {
    background-color: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    height: 480px;
}

@media (min-width: 640px) {
    .mockup-screen {
        height: 560px;
    }
}

.mockup-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background-color: #0f172a;
    border-radius: 9999px;
    z-index: 30;
}

/* Animation Steps */
.tut-step {
    position: absolute;
    inset: 0;
    top: 40px;
    /* Below status bar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tut-step.active {
    opacity: 1;
    pointer-events: auto;
}

/* Cursor Animation */
.tut-cursor {
    position: absolute;
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.tut-cursor.active {
    opacity: 1;
    transform: scale(1);
}

.tut-cursor::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: rgb(37, 99, 235);
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* UI Elements inside steps */
.tut-skeleton-img {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.tut-skeleton-text {
    background-color: #f1f5f9;
    border-radius: 8px;
    height: 16px;
    margin-bottom: 12px;
}

.tut-skeleton-btn {
    background-color: #2563eb;
    border-radius: 12px;
    height: 32px;
    width: 100px;
    margin-bottom: 16px;
}

/* Step 2 specific */
.tut-header-bar {
    height: 56px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.tut-dropdown {
    position: absolute;
    top: 56px;
    right: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    width: 180px;
    z-index: 30;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.tut-dropdown.active {
    opacity: 1;
    transform: translateY(0);
}

.tut-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
}

/* Step 3 specific */
.tut-dimmed-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tut-step.active .tut-dimmed-bg {
    opacity: 1;
}

.tut-share-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 24px;
    z-index: 20;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
}

.tut-share-sheet.active {
    transform: translateY(0);
}

.tut-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.tut-app-icon.wazi {
    background: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    animation: bounce-slight 2s infinite;
}

.tut-app-icon.wazi img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Step Indicators */
.tut-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 24px;
}

.tut-dot {
    height: 8px;
    width: 8px;
    border-radius: 4px;
    background-color: #cbd5e1;
    transition: all 0.5s ease;
}

.tut-dot.active {
    width: 32px;
    background-color: #2563eb;
}

@keyframes bounce-slight {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}