/* Стили для модального окна слайдера */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.value-display {
    color: white;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

/* СЛАЙДЕР */
.slider-container {
    position: relative;
    width: 100%;
    height: 10px;
    background: #D6D6DA;
    border-radius: 999px;
    margin-bottom: 35px;
}

.slider-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(117deg, #f5d86e 0%, #e6c95a 100%);
    border-radius: 999px;
    width: 35%; /* Соответствует 8 вопросам */
    z-index: 1;
    transition: width 0.05s linear;
}

.slider-thumb-glass {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0 1px 8px 0 rgba(0, 30, 63, 0.1), 0 0 2px 0 rgba(0, 9, 20, 0.1);
    overflow: hidden;
    transition: transform 0.15s ease;
    left: 35%; /* Соответствует 8 вопросам */
}

.slider-thumb-glass-filter {
    position: absolute;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(0.6px);
    -webkit-backdrop-filter: blur(0.6px);
}

.slider-thumb-glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.slider-thumb-glass-specular {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(69, 168, 243, 0.2),
        inset 1px 3px 0 rgba(28, 63, 90, 0.05),
        inset 0 0 22px rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(69, 168, 243, 0.12);
}

.slider-thumb-glass-filter,
.slider-thumb-glass-overlay,
.slider-thumb-glass-specular {
    opacity: 0;
}

.slider-thumb-glass.active {
    background-color: transparent;
    box-shadow: none;
}

.slider-thumb-glass.active .slider-thumb-glass-filter,
.slider-thumb-glass.active .slider-thumb-glass-overlay,
.slider-thumb-glass.active .slider-thumb-glass-specular {
    opacity: 1;
}

.slider-thumb-glass:active {
    transform: translate(-50%, -50%) scaleY(0.98) scaleX(1.1);
}

.create-btn {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(243, 194, 17, 0.377) 0%,
        rgba(240, 193, 25, 0.295) 50%,
        rgba(243, 196, 24, 0.377) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(245, 216, 110, 0.3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    z-index: 2;
    font-size: 16px;
}

.create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        transparent 70%
    );
    border-radius: 50px;
    opacity: 0.6;
    pointer-events: none;
}

.create-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2),
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2)
    );
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.create-btn:hover::after {
    opacity: 1;
}

.create-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(245, 213, 99, 0.35) 0%,
        rgba(248, 213, 87, 0.22) 50%,
        rgba(245, 212, 92, 0.35) 100%
    );
    border: 1px solid rgba(245, 216, 110, 0.4);
    box-shadow: 
        0 12px 40px rgba(245, 216, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(179, 152, 46, 0.25);
}

.create-btn-text {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.create-btn:hover .create-btn-text {
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}

