@keyframes myle-spin    { to { transform: rotate(360deg); } }
@keyframes myle-pulse   { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }
@keyframes myle-fadein  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes myle-check   { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes myle-msg-in  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.myle-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    border-radius: inherit;
    opacity: 0; transition: opacity 0.25s ease;
    z-index: 9999;
}
.myle-overlay.visible { opacity: 1; }

.myle-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: inherit;
}

.myle-ring {
    position: absolute; inset: 0;
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid rgba(255, 31, 71, 0.15);
    border-top-color: #ff1f47;
    animation: myle-spin 0.9s linear infinite;
    flex-shrink: 0;
}
.myle-ring.pulse {
    animation: myle-pulse 1.2s ease-in-out infinite;
    border: none; background: #ff1f47;
    width: 48px; height: 48px;
}
.myle-ring.success { animation: none; border: 3px solid #4ade80; }
.myle-ring.error   { animation: none; border: 3px solid #ff1f47; }

.myle-ring-wrap {
    position: relative;
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}

.myle-msg {
    font-size: 13px; font-weight: 500; color: #e2e8f0;
    letter-spacing: 0.2px; text-align: center;
    padding: 0 24px; position: relative; z-index: 1;
    max-width: 260px;
}
.myle-msg.rotating { animation: myle-msg-in 0.35s ease; }
.myle-msg.success  { color: #4ade80; }
.myle-msg.error    { color: #ff1f47; }

.myle-dots { display: flex; gap: 5px; position: relative; z-index: 1; }
.myle-dot  {
    width: 5px; height: 5px; border-radius: 50%;
    background: #ff1f47;
    animation: myle-pulse 1.1s ease-in-out infinite;
}
.myle-dot:nth-child(2) { animation-delay: 0.18s; }
.myle-dot:nth-child(3) { animation-delay: 0.36s; }

.myle-svg-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}