/* Modern Glassmorphism Modal with Unique Classes - Color Updated */
.wm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: wm-fadeIn 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.wm-modal-container {
    background: linear-gradient(135deg, #273e47 0%, #1a2b32 100%);
    border-radius: 18px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    width: 94%;
    max-width: 540px;
    max-height: 90vh;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    transform-origin: center;
    animation: wm-scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wm-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #666666 0%, #273e47 50%, #666666 100%);
    background-size: 200% 100%;
    animation: wm-gradientFlow 3s linear infinite;
}

@keyframes wm-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wm-scaleIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes wm-gradientFlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.wm-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wm-modal-icon {
    width: 46px;
    height: 46px;
    background: rgba(102, 102, 102, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.wm-modal-icon svg {
    width: 24px;
    height: 24px;
    fill: #666666;
}

.wm-modal-title {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.wm-modal-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.65;
    margin-bottom: 20px;
    font-size: 16px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.wm-modal-content::-webkit-scrollbar {
    width: 6px;
}

.wm-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.wm-modal-content p {
    margin-bottom: 18px;
}

.wm-checklist {
    margin: 22px 0;
    padding: 0;
}

.wm-checklist-item {
    position: relative;
    list-style: none;
    padding-left: 38px;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: flex-start;
}

.wm-checklist-icon {
    position: absolute;
    left: 0;
    top: 3px;
    width: 24px;
    height: 24px;
    background: rgba(102, 102, 102, 0.3);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-checklist-icon svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.wm-countdown {
    background: rgba(102, 102, 102, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 18px 0;
    display: none;
    align-items: center;
    animation: wm-pulse 2s infinite;
}

.wm-countdown svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-right: 10px;
}

.wm-countdown-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.wm-modal-footer {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
    text-align: center;
}

.wm-button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wm-modal-button {
    background: linear-gradient(135deg, #666666 0%, #273e47 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.wm-modal-button.next {
    background: linear-gradient(135deg, #273e47 0%, #666666 100%);
}

.wm-modal-button.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    margin-top: 12px;
}

.wm-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wm-modal-button:active {
    transform: translateY(0);
}

.wm-telegram-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

@keyframes wm-pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 600px) {
    .wm-modal-container {
        padding: 24px 20px;
        max-height: 85vh;
    }
    
    .wm-modal-title {
        font-size: 22px;
    }
    
    .wm-checklist-item {
        padding-left: 34px;
        font-size: 15px;
    }
    
    .wm-button-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .wm-modal-container {
        padding: 22px 18px;
        border-radius: 14px;
    }
    
    .wm-modal-icon {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }
    
    .wm-modal-button {
        padding: 14px 20px;
    }
}