.etg-pe-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: etg-pe-fade-in 0.2s ease-out;
}

.etg-pe-dialog {
    width: min(420px, 100%);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(88, 28, 135, 0.35);
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    overflow: hidden;
}

.etg-pe-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.etg-pe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.etg-pe-sub {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
}

.etg-pe-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.etg-pe-turnstile {
    min-height: 65px;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.etg-pe-pow {
    font-size: 0.8125rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.etg-pe-progress {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 1rem;
}

.etg-pe-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    transition: width 0.15s ease;
}

.etg-pe-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.etg-pe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.etg-pe-btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.etg-pe-btn:active {
    transform: scale(0.98);
}

.etg-pe-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.etg-pe-btn-secondary:hover {
    background: #e5e7eb;
}

.etg-pe-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.etg-pe-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.etg-pe-btn-primary:not(:disabled):hover {
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45);
}

.etg-pe-result {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-size: 0.9375rem;
    word-break: break-all;
}

.etg-pe-result a {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.etg-pe-error {
    color: #b91c1c;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.etg-protected-email-trigger {
    text-align: inherit;
}

@keyframes etg-pe-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
