#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
    pointer-events: none;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#recaptchaPopup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-y: auto;
}

#recaptchaPopup.active {
    opacity: 1;
    visibility: visible;
}

.sg-container {
    width: 100%;
    max-width: 380px;
    margin: auto;
}

.sg-main-card {
    background: linear-gradient(165deg, #1a3a2a 0%, #162a22 60%, #12231c 100%);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.04);
}

.sg-header-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.sg-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sg-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.sg-verification-id {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: right;
}

.sg-verification-id span {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: 'SF Mono', Consolas, 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.sg-description {
    color: #9ab0a3;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.sg-step {
    margin-bottom: 14px;
}

.sg-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sg-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sg-step-icon.green {
    background: rgba(34,165,90,0.12);
    border: 1.5px solid rgba(34,165,90,0.25);
}

.sg-step-icon.blue {
    background: rgba(42,171,238,0.12);
    border: 1.5px solid rgba(42,171,238,0.25);
}

.sg-step-icon svg {
    width: 16px;
    height: 16px;
}

.sg-step-icon.green svg {
    fill: #22a55a;
}

.sg-step-icon.blue svg {
    fill: #2aabee;
}

.sg-step-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sg-step-text {
    color: #c0d4c8;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    padding-left: 42px;
}

.sg-step-text strong {
    color: #fff;
    font-weight: 600;
}

.sg-windows-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin: 0 2px;
}

.sg-waiting {
    background: #1e3329;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.sg-dots {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.sg-dot {
    width: 7px;
    height: 7px;
    background: #22a55a;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.sg-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.sg-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.sg-waiting-text p {
    margin: 0;
    line-height: 1.25;
}

.sg-waiting-text p:first-child {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.sg-waiting-text p:last-child {
    color: #ffffff;
    font-size: 13px;
    margin-top: 1px;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}