#msg-alert {
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tick-container {
    text-align: center;
    padding: 20px;
    max-width: 500px;
}

/* Heading Animation */
h1 {
    color: #0d5c75;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    opacity: 0;
    animation: fadeInOnly 0.5s ease-out 1.2s forwards;
}

/* Body Animation */
.message-body {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInOnly 0.5s ease-out 1.6s forwards;
}

.message-redirect {
    font-size: 12px;
    line-height: 1.6;
    color: #414141;
    margin-top: 5px;
    opacity: 0;
    animation: fadeInOnly 0.5s ease-out 1.6s forwards;
}

.tick-wrapper {
    width: 300px;
    height: 300px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.tick-svg {
    width: 80%;
    height: 80%;
    overflow: visible;
}

/* STEP 1: Outer Mild Circle Draw Animation */
.outer-circle {
    fill: none;
    stroke: #e2e8f0; /* Mild color */
    stroke-width: 1.5;
    stroke-dasharray: 302; /* 2 * PI * 48 */
    stroke-dashoffset: 302;
    animation: drawOuter 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* STEP 2: Inner Filled Circle Zoom Animation */
.circle-fill {
    fill: url(#tickGradient);
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    /* Starts as the outer circle is finishing */
    animation: zoomInner 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

/* STEP 3: Tick Animation */
.tick-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
    /* Starts after the inner circle has zoomed in */
    animation:
        drawPath 0.5s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards,
        softFade 0.2s ease-in-out 1s forwards;
}

@keyframes drawOuter {
    to { stroke-dashoffset: 0; }
}

@keyframes zoomInner {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

@keyframes softFade {
    to { opacity: 1; }
}

@keyframes fadeInOnly {
    from { opacity: 0; }
    to { opacity: 1; }
}

.controls {
    margin-top: 40px;
    opacity: 0;
    animation: fadeInOnly 0.5s ease-out 2s forwards;
}
