.procomp-auth-toast {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    width: 370px;
    max-width: calc(100vw - 24px);
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 18px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    color: #0f172a;
    z-index: 2147483647 !important;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    overflow: hidden;
}

.procomp-auth-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.procomp-auth-toast-content {
    flex: 1;
    min-width: 0;
}

.procomp-auth-toast-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    padding-right: 28px;
}

.procomp-auth-toast-message {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

.procomp-auth-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 18px;
    margin-top: 1px;
}

.procomp-auth-toast-icon i {
    line-height: 1;
}
.procomp-auth-toast-icon .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.procomp-auth-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.procomp-auth-toast-close:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #334155;
}

.procomp-auth-toast-success {
    --procomp-toast-accent: #22c55e;
    --procomp-toast-accent-strong: #16a34a;
    --procomp-toast-accent-deep: #166534;
    --procomp-toast-accent-soft: rgba(34, 197, 94, 0.12);
}

.procomp-auth-toast-error {
    --procomp-toast-accent: #ef4444;
    --procomp-toast-accent-strong: #dc2626;
    --procomp-toast-accent-deep: #991b1b;
    --procomp-toast-accent-soft: rgba(239, 68, 68, 0.12);
}

.procomp-auth-toast-warning {
    --procomp-toast-accent: #f59e0b;
    --procomp-toast-accent-strong: #d97706;
    --procomp-toast-accent-deep: #92400e;
    --procomp-toast-accent-soft: rgba(245, 158, 11, 0.14);
}

.procomp-auth-toast-info {
    --procomp-toast-accent: #3b82f6;
    --procomp-toast-accent-strong: #2563eb;
    --procomp-toast-accent-deep: #1d4ed8;
    --procomp-toast-accent-soft: rgba(59, 130, 246, 0.12);
}

/* SUCCESS */
.procomp-auth-toast-success {
    border-left: 4px solid #22c55e;
}

.procomp-auth-toast-success .procomp-auth-toast-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.procomp-auth-toast-success .procomp-auth-toast-title {
    color: #166534;
}

/* ERROR */
.procomp-auth-toast-error {
    border-left: 4px solid #ef4444;
}

.procomp-auth-toast-error .procomp-auth-toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.procomp-auth-toast-error .procomp-auth-toast-title {
    color: #991b1b;
}

/* WARNING */
.procomp-auth-toast-warning {
    border-left: 4px solid #f59e0b;
}

.procomp-auth-toast-warning .procomp-auth-toast-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.procomp-auth-toast-warning .procomp-auth-toast-title {
    color: #92400e;
}

/* INFO */
.procomp-auth-toast-info {
    border-left: 4px solid #3b82f6;
}

.procomp-auth-toast-info .procomp-auth-toast-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.procomp-auth-toast-info .procomp-auth-toast-title {
    color: #1d4ed8;
}

/* TEMPLATE: Glass */
.procomp-auth-toast-template-glass {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.7));
    color: #f8fafc;
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.procomp-auth-toast-template-glass .procomp-auth-toast-title,
.procomp-auth-toast-template-glass .procomp-auth-toast-message {
    color: #f8fafc;
}
.procomp-auth-toast-template-glass .procomp-auth-toast-message {
    opacity: 0.78;
}
.procomp-auth-toast-template-glass .procomp-auth-toast-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.procomp-auth-toast-template-glass .procomp-auth-toast-close {
    color: rgba(255, 255, 255, 0.72);
}

/* TEMPLATE: Solid */
.procomp-auth-toast-template-solid {
    border: 0;
    background: linear-gradient(135deg, var(--procomp-toast-accent), var(--procomp-toast-accent-strong));
    color: #fff;
    box-shadow: 0 18px 44px color-mix(in srgb, var(--procomp-toast-accent) 34%, transparent);
}
.procomp-auth-toast-template-solid .procomp-auth-toast-title,
.procomp-auth-toast-template-solid .procomp-auth-toast-message {
    color: #fff;
}
.procomp-auth-toast-template-solid .procomp-auth-toast-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.procomp-auth-toast-template-solid .procomp-auth-toast-close {
    color: rgba(255, 255, 255, 0.78);
}
.procomp-auth-toast-template-solid .procomp-auth-toast-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* TEMPLATE: Minimal */
.procomp-auth-toast-template-minimal {
    width: 330px;
    padding: 14px 44px 14px 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.11);
}
.procomp-auth-toast-template-minimal::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--procomp-toast-accent);
}
.procomp-auth-toast-template-minimal .procomp-auth-toast-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    background: transparent;
    color: var(--procomp-toast-accent-strong);
}
.procomp-auth-toast-template-minimal .procomp-auth-toast-title {
    margin-bottom: 2px;
    color: #0f172a;
}

/* TEMPLATE: Banner */
.procomp-auth-toast-template-banner {
    top: 18px !important;
    right: 50% !important;
    bottom: auto !important;
    width: min(720px, calc(100vw - 32px));
    transform: translate(50%, -10px) scale(0.98);
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}
.procomp-auth-toast-template-banner.show {
    transform: translate(50%, 0) scale(1);
}
.procomp-auth-toast-template-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--procomp-toast-accent);
}
.procomp-auth-toast-template-banner .procomp-auth-toast-title,
.procomp-auth-toast-template-banner .procomp-auth-toast-message {
    color: #fff;
}
.procomp-auth-toast-template-banner .procomp-auth-toast-message {
    opacity: 0.76;
}
.procomp-auth-toast-template-banner .procomp-auth-toast-icon {
    background: var(--procomp-toast-accent-soft);
    color: #fff;
}

/* TEMPLATE: Neon */
.procomp-auth-toast-template-neon {
    border: 1px solid color-mix(in srgb, var(--procomp-toast-accent) 58%, #172033);
    border-left: 1px solid color-mix(in srgb, var(--procomp-toast-accent) 58%, #172033);
    background: radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--procomp-toast-accent) 16%, transparent), transparent 38%), #08111f;
    color: #f8fafc;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 34px color-mix(in srgb, var(--procomp-toast-accent) 30%, transparent);
}
.procomp-auth-toast-template-neon .procomp-auth-toast-title,
.procomp-auth-toast-template-neon .procomp-auth-toast-message {
    color: #f8fafc;
}
.procomp-auth-toast-template-neon .procomp-auth-toast-message {
    opacity: 0.74;
}
.procomp-auth-toast-template-neon .procomp-auth-toast-icon {
    background: color-mix(in srgb, var(--procomp-toast-accent) 18%, transparent);
    color: color-mix(in srgb, var(--procomp-toast-accent) 82%, #fff);
    box-shadow: 0 0 24px color-mix(in srgb, var(--procomp-toast-accent) 34%, transparent);
}

/* TEMPLATE: Soft */
.procomp-auth-toast-template-soft {
    border: 1px solid color-mix(in srgb, var(--procomp-toast-accent) 18%, #e2e8f0);
    border-left: 1px solid color-mix(in srgb, var(--procomp-toast-accent) 18%, #e2e8f0);
    background: linear-gradient(135deg, color-mix(in srgb, var(--procomp-toast-accent) 10%, #fff), #fff 62%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}
.procomp-auth-toast-template-soft .procomp-auth-toast-icon {
    border-radius: 14px;
    background: color-mix(in srgb, var(--procomp-toast-accent) 14%, #fff);
    color: var(--procomp-toast-accent-strong);
}
.procomp-auth-toast-template-soft .procomp-auth-toast-title {
    color: var(--procomp-toast-accent-deep);
}

/* TEMPLATE: Outline */
.procomp-auth-toast-template-outline {
    border: 2px solid var(--procomp-toast-accent);
    border-left: 2px solid var(--procomp-toast-accent);
    border-radius: 8px;
    background: #fff;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--procomp-toast-accent) 20%, rgba(15, 23, 42, 0.1));
}
.procomp-auth-toast-template-outline .procomp-auth-toast-icon {
    border: 1px solid var(--procomp-toast-accent);
    background: #fff;
    color: var(--procomp-toast-accent-strong);
}
.procomp-auth-toast-template-outline .procomp-auth-toast-title {
    color: var(--procomp-toast-accent-deep);
}

/* TEMPLATE: Elevated — TOP accent stripe + square icon + very deep shadow */
.procomp-auth-toast-template-elevated {
    border: 0 !important;
    border-radius: 22px;
    background: #fff;
    color: #0f172a;
    padding-top: 22px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.22), 0 8px 24px rgba(15, 23, 42, 0.1);
}
.procomp-auth-toast-template-elevated::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: var(--procomp-toast-accent);
}
.procomp-auth-toast-template-elevated .procomp-auth-toast-icon {
    border-radius: 14px;
    background: var(--procomp-toast-accent-soft);
    color: var(--procomp-toast-accent);
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}
.procomp-auth-toast-template-elevated .procomp-auth-toast-title { color: #0f172a; }
.procomp-auth-toast-template-elevated .procomp-auth-toast-message { color: #64748b; }

/* TEMPLATE: Stripe — two-tone solid accent left column, white right */
.procomp-auth-toast-template-stripe {
    border: 0 !important;
    border-radius: 16px;
    background: linear-gradient(to right, var(--procomp-toast-accent) 58px, #fff 58px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    padding-left: 10px;
    overflow: hidden;
}
.procomp-auth-toast-template-stripe .procomp-auth-toast-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}
.procomp-auth-toast-template-stripe .procomp-auth-toast-title { color: #0f172a; }
.procomp-auth-toast-template-stripe .procomp-auth-toast-message { color: #475569; }
.procomp-auth-toast-template-stripe .procomp-auth-toast-close { color: #94a3b8; }

/* TEMPLATE: Dark — charcoal card, full solid accent icon fill, bold left bar */
.procomp-auth-toast-template-dark {
    border: 0;
    border-left: 5px solid var(--procomp-toast-accent) !important;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.5);
}
.procomp-auth-toast-template-dark .procomp-auth-toast-title,
.procomp-auth-toast-template-dark .procomp-auth-toast-message { color: #f9fafb; }
.procomp-auth-toast-template-dark .procomp-auth-toast-message { opacity: 0.74; }
.procomp-auth-toast-template-dark .procomp-auth-toast-icon {
    background: var(--procomp-toast-accent);
    color: #fff;
    border-radius: 10px;
}
.procomp-auth-toast-template-dark .procomp-auth-toast-close { color: rgba(255, 255, 255, 0.5); }
.procomp-auth-toast-template-dark .procomp-auth-toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* TEMPLATE: Glow — aurora mesh dual-radial gradient */
.procomp-auth-toast-template-glow {
    border: 1px solid color-mix(in srgb, var(--procomp-toast-accent) 32%, rgba(99, 102, 241, 0.28));
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 12% 20%, color-mix(in srgb, var(--procomp-toast-accent) 26%, transparent), transparent 52%),
        radial-gradient(ellipse at 88% 80%, rgba(99, 102, 241, 0.3), transparent 50%),
        #0a1628;
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.procomp-auth-toast-template-glow .procomp-auth-toast-title { color: #e2e8f0; }
.procomp-auth-toast-template-glow .procomp-auth-toast-message { color: rgba(226, 232, 240, 0.72); }
.procomp-auth-toast-template-glow .procomp-auth-toast-icon {
    background: rgba(255, 255, 255, 0.1);
    color: color-mix(in srgb, var(--procomp-toast-accent) 85%, #fff);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--procomp-toast-accent) 40%, transparent);
}
.procomp-auth-toast-template-glow .procomp-auth-toast-close { color: rgba(255, 255, 255, 0.5); }
.procomp-auth-toast-template-glow .procomp-auth-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

@media (max-width: 767px) {
    .procomp-auth-toast {
        right: 12px !important;
        bottom: 12px !important;
        width: calc(100vw - 24px);
        min-width: unset;
        padding: 16px 16px 16px 14px;
        border-radius: 14px;
    }

    .procomp-auth-toast-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 16px;
    }

    .procomp-auth-toast-title {
        font-size: 14px;
    }

    .procomp-auth-toast-message {
        font-size: 13px;
    }

    .procomp-auth-toast-template-banner {
        top: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px);
        transform: translateY(-10px) scale(0.98);
    }

    .procomp-auth-toast-template-banner.show {
        transform: translateY(0) scale(1);
    }
}
