/* ================================================
   SUCCESS MODAL (Competition Results)
   ================================================ */

/* Overlay для модалки */
#successModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

#successModal.modal-overlay.show,
#successModal[style*="display: flex"] {
    display: flex !important;
}

/* Контейнер модалки */
.success-modal-content {
    background: white;
    border-radius: 14px;
    padding: 25px 20px 20px;
    max-width: 260px;
    width: 85%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: successPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2001;
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Галочка */
.success-checkmark {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
}

.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Заголовок */
.success-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

/* Детали */
.success-details {
    font-family: 'Lato', sans-serif;
    font-size: 0.85em;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.success-details div {
    margin: 5px 0;
    padding: 6px 12px;
    background: rgba(217, 184, 110, 0.1);
    border-radius: 8px;
    display: block;
    width: 100%;
}

.success-details strong {
    font-weight: 700;
    color: #2c3e50;
}

/* Кнопка */
.success-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #D9B86E, #B8860B);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 184, 110, 0.3);
    transition: transform 0.1s;
}

.success-btn:active {
    transform: scale(0.97);
}
