/* Add to Home Screen Tip Styles - Modern 2025 Design */
.homescreen-tip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(24, 55, 95, 0.4));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: overlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.homescreen-tip-overlay.show {
    display: flex;
}

.homescreen-tip-modal {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    padding: 24px 20px;
    max-width: 420px;
    width: 100%;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(24, 55, 95, 0.1);
}

/* Enhanced animations with modern easing */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.homescreen-tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
    background: linear-gradient(90deg, transparent 0%, rgba(24, 55, 95, 0.05) 50%, transparent 100%);
    margin: -24px -20px 20px -20px;
    padding: 16px 20px;
    border-radius: 24px 24px 0 0;
}

.homescreen-tip-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #18375F;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.homescreen-tip-title i {
    background: linear-gradient(135deg, #F7961E, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(247, 150, 30, 0.3));
}

.homescreen-tip-close {
    background: rgba(153, 153, 153, 0.1);
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
}

.homescreen-tip-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.homescreen-tip-close:active {
    transform: scale(0.95);
}

.homescreen-tip-content {
    color: #2C3E50;
    line-height: 1.65;
    font-size: 1rem;
}

.homescreen-tip-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 400;
}

.homescreen-tip-content p:last-child {
    margin-bottom: 0;
}

/* Modern device badge with gradient */
.homescreen-tip-device {
    background: linear-gradient(135deg, #F7961E, #ff8c42);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(247, 150, 30, 0.3);
    letter-spacing: 0.02em;
}

/* Enhanced steps with modern card design */
.homescreen-tip-steps {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homescreen-tip-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(24, 55, 95, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}


.homescreen-tip-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #F7961E, #ff8c42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homescreen-tip-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 55, 95, 0.12);
    border-color: rgba(247, 150, 30, 0.2);
}

.homescreen-tip-step:hover::before {
    opacity: 1;
}

.homescreen-tip-step:last-child {
    margin-bottom: 0;
}

.homescreen-tip-step-number {
    background: linear-gradient(135deg, #F7961E, #ff8c42);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(247, 150, 30, 0.3);
    position: relative;
}

.homescreen-tip-step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F7961E, #ff8c42);
    z-index: -1;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.homescreen-tip-step-content {
    flex: 1;
}

.homescreen-tip-step-text {
    font-size: 1rem;
    color: #2C3E50;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Enhanced inline icons with better styling */
.homescreen-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #495057;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 2px;
    border: 1px solid rgba(24, 55, 95, 0.1);
    min-width: 24px;
    height: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern note design with glassmorphism */
.homescreen-tip-note {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(24, 55, 95, 0.1);
    color: #475569;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.homescreen-tip-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #F7961E, #ff8c42, #F7961E);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.homescreen-tip-note i {
    color: #F7961E;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(247, 150, 30, 0.2));
}

.homescreen-tip-note strong {
    color: #18375F;
    font-weight: 600;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .homescreen-tip-modal {
        margin: 16px;
        padding: 20px 16px;
        max-height: 85vh;
        border-radius: 20px;
    }

    .homescreen-tip-header {
        margin: -20px -16px 16px -16px;
        padding: 14px 16px;
        border-radius: 20px 20px 0 0;
    }

    .homescreen-tip-title {
        font-size: 1.2rem;
    }

    .homescreen-tip-content p {
        font-size: 1rem;
    }

    .homescreen-tip-step {
        padding: 10px;
    }

    .homescreen-tip-step-text {
        font-size: 0.95rem;
    }

    .homescreen-tip-device {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Dark mode support for modern apps */
@media (prefers-color-scheme: dark) {
    .homescreen-tip-modal {
        background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 32px 64px rgba(0, 0, 0, 0.4),
            0 16px 32px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .homescreen-tip-header {
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
        border-bottom-color: #374151;
    }

    .homescreen-tip-title {
        color: #f8fafc;
    }

    .homescreen-tip-content {
        color: #e2e8f0;
    }

    .homescreen-tip-step {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .homescreen-tip-step-text {
        color: #e2e8f0;
    }

    .homescreen-tip-note {
        background: linear-gradient(135deg, rgba(55, 65, 81, 0.9), rgba(75, 85, 99, 0.9));
        border-color: rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
    }

    .homescreen-tip-note strong {
        color: #f8fafc;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {

    .homescreen-tip-overlay,
    .homescreen-tip-modal,
    .homescreen-tip-step,
    .homescreen-tip-close {
        animation: none;
        transition: none;
    }

    .homescreen-tip-step-number::after {
        animation: none;
    }

    .homescreen-tip-note::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .homescreen-tip-modal {
        border: 2px solid currentColor;
    }

    .homescreen-tip-step {
        border: 1px solid currentColor;
    }

    .homescreen-tip-note {
        border: 1px solid currentColor;
    }
}