.ag-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .2s ease;
}

.ag-overlay.is-open { display: flex; opacity: 1; }

.ag-dialog {
    position: relative;
    width: 100%;
    max-width: 428px;
    background: #fff;
    border-radius: 22px;
    padding: 30px 28px 26px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .3);
    transform: translateY(14px) scale(.97);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.ag-overlay.is-open .ag-dialog { transform: none; }

.ag-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9aa0ae;
    font-size: 15px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.ag-close:hover { background: #f2f3f7; color: #14161c; }

.ag-badge {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #fff1ea;
    color: #ef5526;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #14161c;
}

.ag-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #5b6272;
}

.ag-text strong { color: #14161c; font-weight: 700; }

.ag-google {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    margin-bottom: 4px;
}

.ag-google > div {
    transform: scale(1.16);
    transform-origin: center;
}

.ag-error {
    margin: 8px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #b91c1c;
}

.ag-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9aa0ae;
    font-size: 12.5px;
    font-weight: 600;
}

.ag-divider::before,
.ag-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e8e9ef;
}

.ag-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s ease;
}

.ag-btn i { font-size: 13px; }

.ag-btn-primary {
    background: linear-gradient(135deg, #ef5526 0%, #c93c11 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(239, 85, 38, .3);
}

.ag-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(239, 85, 38, .38); }

.ag-btn-ghost { background: #fff; color: #14161c; border: 1.5px solid #e2e4ec; }
.ag-btn-ghost:hover { color: #ef5526; border-color: #ef5526; background: #fff7f4; }

@media (max-width: 480px) {
    .ag-dialog { padding: 26px 20px 22px; border-radius: 18px; }
    .ag-title { font-size: 19px; }
    .ag-actions { grid-template-columns: 1fr; }
}
