:root {
    --nagzar-auth-primary: #667eea;
    --nagzar-auth-primary-dark: #5a67d8;
    --nagzar-auth-secondary: #764ba2;
    --nagzar-auth-success: #10b981;
    --nagzar-auth-danger: #ef4444;
    --nagzar-auth-warning: #f59e0b;
    --nagzar-auth-gray-100: #f8f9fa;
    --nagzar-auth-gray-200: #e9ecef;
    --nagzar-auth-gray-300: #dee2e6;
    --nagzar-auth-gray-500: #6c757d;
    --nagzar-auth-gray-700: #495057;
    --nagzar-auth-gray-900: #212529;
    --nagzar-auth-radius: 12px;
    --nagzar-auth-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    --nagzar-auth-shadow-hover: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.nagzar-auth-wrapper {
    position: relative;
    display: none !important;
}

.nagzar-auth-preloader {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 30px 15px;
    text-align: center;
}

.nagzar-auth-preloader p {
    color: #4b5563;
    font-size: 16px;
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
}

.nagzar-auth-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--nagzar-auth-primary);
    border-radius: 50%;
    animation: nagzar-auth-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes nagzar-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.nagzar-auth-form-container.nagzar-auth-hidden {
    display: none !important;
}

.nagzar-auth-wrapper.nagzar-auth-loaded .nagzar-auth-preloader {
    display: none !important;
}

.nagzar-auth-wrapper.nagzar-auth-loaded .nagzar-auth-form-container.nagzar-auth-hidden {
    display: block !important;
}

body.logged-in .nagzar-auth-form-container:not(.nagzar-auth-logged-in) {
    display: none !important;
}

body.logged-in .nagzar-auth-modal-overlay .nagzar-auth-form-container:not(.nagzar-auth-logged-in) {
    display: none !important;
}

body.logged-in .nagzar-login-box,
body.logged-in .nagzar-login-section {
    display: none !important;
}

body.logged-in .nagzar-auth-logged-in-wrapper {
    display: flex !important;
}

body.logged-in .nagzar-auth-buttons-wrapper:not(.nagzar-auth-logged-in-wrapper),
body.logged-in .nagzar-auth-btn-trigger:not(.nagzar-auth-btn-logged):not(.nagzar-auth-btn-logout),
body.logged-in .nagzar-auth-modal-trigger,
body.logged-in .nagzar-auth-form-container:not(.nagzar-auth-logged-in) {
    display: none !important;
}


.nagzar-auth-page-wrapper {
    min-height: 100vh;
    background: -webkit-gradient(linear, left top, left bottom, from(#000000), color-stop(25%, #1a0a2e), color-stop(55%, #5b21b6), color-stop(75%, #7c3aed), to(#000000));
    background: linear-gradient(180deg, #000000 0%, #1a0a2e 25%, #5b21b6 55%, #7c3aed 75%, #000000 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 40px 20px;
}

@keyframes nagzarPageGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nagzar-auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 30%);
    pointer-events: none;
    animation: nagzarAmbientPulse 8s ease-in-out infinite;
}

@keyframes nagzarAmbientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.nagzar-auth-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.nagzar-auth-floating-shapes span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    animation: nagzarFloat 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.nagzar-auth-floating-shapes span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.nagzar-auth-floating-shapes span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 25s;
}

.nagzar-auth-floating-shapes span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.nagzar-auth-floating-shapes span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.nagzar-auth-floating-shapes span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.nagzar-auth-floating-shapes span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.nagzar-auth-floating-shapes span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.nagzar-auth-floating-shapes span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.nagzar-auth-floating-shapes span:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.nagzar-auth-floating-shapes span:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes nagzarFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.nagzar-auth-form-container {
    max-width: 340px;
    margin: 0 auto;
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
}

.nagzar-auth-form {
    display: none;
    padding: 20px 16px;
}

.nagzar-auth-form.active {
    display: block;
    animation: nagzarAuthFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nagzarAuthFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.nagzar-auth-header {
    text-align: center;
    margin-bottom: 18px;
}

.nagzar-auth-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    background: -webkit-linear-gradient(315deg, #9333ea 0%, #ec4899 100%) !important;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%) !important;
    border-radius: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.nagzar-auth-header h2 {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: #1f2937;
    font-weight: 700;
}

.nagzar-auth-header p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.nagzar-auth-desc {
    text-align: center;
    color: var(--nagzar-auth-gray-500);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--nagzar-auth-gray-100);
    border-radius: var(--nagzar-auth-radius);
}

.nagzar-auth-field {
    margin-bottom: 14px;
}

.nagzar-auth-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
}

.nagzar-auth-field label .optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 11px;
}

.nagzar-auth-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid var(--nagzar-auth-gray-200);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    text-align: left;
    direction: ltr;
}

.nagzar-auth-input[name="full_name"] {
    text-align: right;
    direction: rtl;
}

.nagzar-auth-input:focus {
    border-color: var(--nagzar-auth-primary);
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.nagzar-auth-input:-webkit-autofill,
.nagzar-auth-input:-webkit-autofill:hover,
.nagzar-auth-input:-webkit-autofill:focus,
.nagzar-auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: var(--nagzar-auth-gray-900) !important;
    background-color: #fff !important;
}

.nagzar-auth-input.error {
    border-color: var(--nagzar-auth-danger);
    background: #fef2f2;
}

.nagzar-auth-input.success {
    border-color: var(--nagzar-auth-success);
    background: #f0fdf4;
}

.nagzar-auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;
}

.nagzar-auth-password-wrapper .nagzar-auth-input {
    padding-left: 12px;
    padding-right: 50px;
    width: 100%;
}

.nagzar-auth-toggle-password {
    position: absolute;
    right: 14px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nagzar-auth-gray-500);
    transition: all 0.2s ease;
    border-radius: 6px;
    width: 28px;
    height: 28px;
}

.nagzar-auth-toggle-password:hover {
    color: var(--nagzar-auth-primary);
    background: rgba(102, 126, 234, 0.1);
}

.nagzar-auth-toggle-password svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: #764ba2 !important;
}

.nagzar-auth-phone-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border: 2px solid var(--nagzar-auth-gray-200);
    border-radius: var(--nagzar-auth-radius);
    overflow: hidden;
    direction: ltr;
}

.nagzar-auth-phone-wrapper:focus-within {
    border-color: var(--nagzar-auth-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.nagzar-auth-phone-prefix {
    padding: 14px;
    background: var(--nagzar-auth-gray-100);
    color: var(--nagzar-auth-gray-700);
    font-weight: 600;
    font-size: 14px;
    direction: ltr;
    border-right: 2px solid var(--nagzar-auth-gray-200);
    order: -1;
}

.nagzar-auth-phone-wrapper .nagzar-auth-input {
    border: none;
    background: transparent;
    flex: 1;
}

.nagzar-auth-phone-wrapper .nagzar-auth-input:focus {
    box-shadow: none;
}

.nagzar-auth-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.nagzar-auth-username-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nagzar-auth-username-status.checking {
    color: var(--nagzar-auth-gray-500);
}

.nagzar-auth-username-status.available {
    color: var(--nagzar-auth-success);
}

.nagzar-auth-username-status.unavailable {
    color: var(--nagzar-auth-danger);
}

.nagzar-auth-password-strength {
    height: 6px;
    border-radius: 3px;
    margin-top: 10px;
    background: var(--nagzar-auth-gray-200);
    overflow: hidden;
}

.nagzar-auth-password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--strength, 0%);
    background: var(--strength-color, var(--nagzar-auth-gray-300));
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nagzar-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.nagzar-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    direction: rtl;
    flex-direction: row-reverse;
}

.nagzar-auth-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--nagzar-auth-primary);
    cursor: pointer;
}

.nagzar-auth-link,
.nagzar-auth-forgot-link,
.nagzar-auth-switch {
    font-size: 14px;
    color: #764ba2 !important;
    -webkit-text-fill-color: #764ba2 !important;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nagzar-auth-link:hover,
.nagzar-auth-forgot-link:hover,
.nagzar-auth-switch:hover {
    text-decoration: underline;
    color: #5b21b6 !important;
    -webkit-text-fill-color: #5b21b6 !important;
}

.nagzar-auth-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--nagzar-auth-radius);
    -webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: center;
    gap: 10px;
    background-image: -webkit-linear-gradient(0deg, #764ba2 0%, #9333ea 25%, #ec4899 50%, #9333ea 75%, #764ba2 100%) !important;
    background-image: linear-gradient(90deg, #764ba2 0%, #9333ea 25%, #ec4899 50%, #9333ea 75%, #764ba2 100%) !important;
    background-size: 400% 100% !important;
    background-position: 0% 50% !important;
    color: #ffffff !important;
    border: none !important;
    -webkit-animation: nagzarButtonGradient 8s ease-in-out infinite !important;
    animation: nagzarButtonGradient 8s ease-in-out infinite !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nagzar-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4) !important;
    filter: brightness(1.1);
}

@keyframes nagzarButtonGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nagzar-auth-btn-full {
    width: 100%;
}

.nagzar-auth-btn-primary {
    box-shadow: none !important;
}

.nagzar-auth-btn-primary:hover {
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4) !important;
}

.nagzar-auth-btn-primary:active {
    transform: none;
}

.nagzar-auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nagzar-auth-btn-secondary {
    color: #ffffff;
}

.nagzar-auth-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4);
}

.nagzar-auth-btn-danger {
    color: #ffffff !important;
}

.nagzar-auth-btn-danger:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 200% 100% !important;
    animation: nagzarButtonGradient 3s ease infinite !important;
}

.nagzar-auth-btn-text {
    display: inline !important;
}

.nagzar-auth-btn-loading {
    display: none !important;
}

.nagzar-auth-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--nagzar-auth-radius);
    font-size: 14px;
    text-align: center;
    animation: nagzarAuthFadeIn 0.3s ease;
}

.nagzar-auth-message.success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #10b981 !important;
}

.nagzar-auth-message.error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #ef4444 !important;
}

.nagzar-auth-footer {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.nagzar-auth-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.nagzar-auth-footer a,
.nagzar-auth-show-login,
.nagzar-auth-show-register,
.nagzar-auth-show-forgot {
    color: #764ba2 !important;
    -webkit-text-fill-color: #764ba2 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.nagzar-auth-footer a:hover,
.nagzar-auth-show-login:hover,
.nagzar-auth-show-register:hover,
.nagzar-auth-show-forgot:hover {
    text-decoration: underline;
    color: #5b21b6 !important;
    -webkit-text-fill-color: #5b21b6 !important;
}

.nagzar-auth-logged-in {
    text-align: center;
    padding: 24px 16px;
}

.nagzar-auth-user-info {
    margin-bottom: 16px;
}

.nagzar-auth-avatar {
    margin-bottom: 12px;
}

.nagzar-auth-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 3px solid #fff;
}

.nagzar-auth-user-info h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: var(--nagzar-auth-gray-900);
    font-weight: 700;
}

.nagzar-auth-user-info p {
    margin: 0;
    color: var(--nagzar-auth-gray-500);
    font-size: 14px;
}

.nagzar-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nagzar-auth-verification-content {
    text-align: center;
    padding: 12px 0;
}

.nagzar-auth-verification-content p {
    color: var(--nagzar-auth-gray-700);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 13px;
}

.nagzar-auth-resend-wrapper {
    background: var(--nagzar-auth-gray-100);
    padding: 12px;
    border-radius: var(--nagzar-auth-radius);
}

.nagzar-auth-resend-wrapper p {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.nagzar-auth-resend-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    animation: nagzarGradientShift 10s ease-in-out infinite;
}

.nagzar-auth-resend-btn:hover {
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4);
}

.nagzar-delete-account-wrapper {
    padding: 12px 0;
}

.nagzar-delete-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    animation: nagzarGradientShift 10s ease-in-out infinite;
}

.nagzar-delete-account-btn:hover {
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4);
}

.nagzar-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #000000 0%, #1a0a2e 25%, #5b21b6 55%, #7c3aed 75%, #000000 100%) !important;
    z-index: 999999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Removed - modal display controlled by JavaScript */
html.nagzar-auth-modal-open {
    overflow: hidden;
}

.nagzar-auth-modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: nagzarAmbientPulse 8s ease-in-out infinite;
}

.nagzar-auth-modal-box {
    background: #ffffff;
    border-radius: 18px;
    width: 90%;
    max-width: 340px;
    max-height: auto;
    position: relative;
    animation: nagzarModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(147, 51, 234, 0.2);
    z-index: 10;
    border: 1px solid rgba(229, 231, 235, 1);
}

.nagzar-auth-modal-box .nagzar-auth-form-container {
    box-shadow: none;
    border: none;
    border-radius: 20px;
    max-width: 100%;
    background: #ffffff !important;
}

.nagzar-auth-modal-box .nagzar-auth-form {
    padding: 20px 16px;
}

.nagzar-auth-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nagzar-auth-modal-close-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

@media (max-width: 480px) {
    .nagzar-auth-modal-box {
        width: 95%;
        max-width: 95%;
        border-radius: 14px;
        max-height: 85vh;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-form {
        padding: 10px 8px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-header h2 {
        font-size: 14px;
        margin: 0 0 2px 0;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-header p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-header {
        margin-bottom: 8px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-field {
        margin-bottom: 8px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-field label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-desc {
        font-size: 11px;
        padding: 6px;
        margin-bottom: 10px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-options {
        margin-bottom: 10px;
        flex-direction: column;
        gap: 6px;
    }
    
    .nagzar-auth-modal-box .nagzar-auth-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .nagzar-auth-modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        left: 12px;
    }
}

.nagzar-auth-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 18px;
    position: relative;
    animation: nagzarModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes nagzarModalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.nagzar-auth-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--nagzar-auth-gray-100);
    color: var(--nagzar-auth-gray-500);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nagzar-auth-modal-close:hover {
    background: var(--nagzar-auth-gray-200);
    color: var(--nagzar-auth-gray-700);
}

.nagzar-auth-modal-icon {
    text-align: center;
    font-size: 52px;
    margin-bottom: 20px;
}

.nagzar-auth-modal-icon.danger {
    color: var(--nagzar-auth-danger);
}

.nagzar-auth-modal-title {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--nagzar-auth-gray-900);
    font-weight: 700;
}

.nagzar-auth-modal-body {
    margin-bottom: 24px;
}

.nagzar-auth-warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--nagzar-auth-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.nagzar-auth-warning-box p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.7;
}

.nagzar-auth-delete-info {
    color: var(--nagzar-auth-gray-500);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.nagzar-auth-modal-footer {
    display: flex;
    gap: 12px;
}

.nagzar-auth-buttons-wrapper,
.nagzar-auth-btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.nagzar-auth-btn-trigger,
.nagzar-auth-submit,
.nagzar-auth-btn-primary,
#nagzar-auth-modal-<?php echo esc_attr( $widget_id ); ?> .nagzar-auth-submit,
.nagzar-auth-modal-box .nagzar-auth-btn-primary {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

.nagzar-auth-btn-trigger:hover,
.nagzar-auth-submit:hover,
.nagzar-auth-btn-primary:hover,
#nagzar-auth-modal-<?php echo esc_attr( $widget_id ); ?> .nagzar-auth-submit:hover,
.nagzar-auth-modal-box .nagzar-auth-btn-primary:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-btn-trigger:active {
    transform: none;
}

.nagzar-auth-btn-trigger .nagzar-auth-btn-icon {
    font-size: 18px;
    animation: none;
}


.nagzar-auth-btn-register {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-btn-logged {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-btn-logout {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-logged-in-wrapper {
    gap: 10px;
}

@media (min-width: 769px) {
    .nagzar-auth-form-container {
        margin: 0 auto;
    }
    
    .nagzar-auth-form {
        padding: 32px 24px;
    }
    
    .nagzar-auth-header h2 {
        font-size: 24px;
    }
    
    .nagzar-auth-header {
        margin-bottom: 20px;
    }
    
    .nagzar-auth-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .nagzar-auth-logged-in {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .nagzar-auth-form-container {
        margin: 0 12px;
        border-radius: 20px;
    }
    
    .nagzar-auth-form {
        padding: 18px 14px;
    }
    
    .nagzar-auth-header {
        margin-bottom: 12px;
    }
    
    .nagzar-auth-header h2 {
        font-size: 18px;
    }
    
    .nagzar-auth-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 14px;
        margin-bottom: 8px;
    }
    
    .nagzar-auth-field {
        margin-bottom: 12px;
    }
    
    .nagzar-auth-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .nagzar-auth-password-wrapper .nagzar-auth-input {
        padding-right: 50px;
        padding-left: 12px;
    }
    
    .nagzar-auth-toggle-password {
        right: 14px !important;
        left: auto !important;
        width: 26px;
        height: 26px;
    }
    
    .nagzar-auth-toggle-password svg {
        width: 16px;
        height: 16px;
    }
    
    .nagzar-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nagzar-auth-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .nagzar-auth-logged-in {
        padding: 32px 20px;
    }
    
    .nagzar-auth-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .nagzar-auth-user-info h3 {
        font-size: 18px;
    }
    
    .nagzar-auth-modal-content {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .nagzar-auth-modal-icon {
        font-size: 44px;
    }
    
    .nagzar-auth-modal-title {
        font-size: 20px;
    }
    
    .nagzar-auth-modal-footer {
        flex-direction: column;
    }
    
    .nagzar-auth-buttons-wrapper,
    .nagzar-auth-btn-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .nagzar-auth-btn-trigger {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nagzar-auth-form-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nagzar-auth-form {
        padding: 36px 28px;
    }
    
    .nagzar-auth-buttons-wrapper,
    .nagzar-auth-btn-wrapper {
        flex-wrap: wrap;
    }
}

/* Auto-open modal styles */
body.nagzar-auth-auto-open-active {
    overflow: hidden;
}

body.nagzar-auth-auto-open-active > * {
    visibility: visible;
    opacity: 1;
}

body.nagzar-auth-auto-open-active .nagzar-auth-hidden-by-modal {
    display: none !important;
}

/* Removed - auto-open is controlled by JavaScript after checking WordPress settings */

/* Mobile-responsive email verification */
@media (max-width: 480px) {
    .nagzar-auth-verification-overlay {
        padding: 20px 16px !important;
        min-height: auto;
        max-height: 100vh;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .nagzar-auth-verification-card {
        max-width: 100%;
        width: 100%;
        padding: 24px 16px !important;
        border-radius: 16px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .nagzar-auth-verification-icon-wrapper {
        width: 70px;
        height: 70px;
        margin: 0 auto 16px;
    }
    
    .nagzar-auth-verification-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .nagzar-auth-verification-icon {
        font-size: 40px;
    }
    
    .nagzar-auth-verification-title {
        font-size: 22px;
        margin: 0 0 16px 0;
    }
    
    .nagzar-auth-verification-main-text {
        font-size: 16px;
        margin: 0 0 10px 0;
    }
    
    .nagzar-auth-verification-sub-text {
        font-size: 14px;
    }
    
    .nagzar-auth-verification-email-box {
        padding: 16px;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .nagzar-auth-verification-email-icon {
        font-size: 32px;
    }
    
    .nagzar-auth-verification-email-text {
        text-align: center;
    }
    
    .nagzar-auth-verification-email-address {
        text-align: center;
    }
    
    .nagzar-auth-verification-tip {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .nagzar-auth-verification-actions {
        gap: 12px;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-btn-primary,
    .nagzar-auth-verification-sent .nagzar-auth-btn-secondary {
        padding: 14px 20px !important;
        font-size: 14px !important;
        width: 100%;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-resend-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-resend-wrapper p {
        font-size: 13px;
        margin: 0 0 8px 0;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-resend-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.nagzar-auth-modal-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.nagzar-auth-modal-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.nagzar-auth-has-bg-image .nagzar-auth-modal-box {
    position: relative;
    z-index: 3;
}

.nagzar-auth-success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: var(--nagzar-auth-radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.nagzar-auth-success-title {
    color: #065f46 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
}

.nagzar-auth-success-desc {
    color: #047857 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.nagzar-auth-verification-sent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0a2e 35%, #9333ea 70%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    animation: nagzarGradientBg 8s ease infinite !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9000;
    padding: 0 !important;
    margin: 0 !important;
}

.nagzar-auth-verification-sent .nagzar-auth-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@keyframes nagzarGradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nagzar-auth-verification-sent.active {
    display: flex !important;
}

.nagzar-auth-modal-box .nagzar-auth-verification-sent {
    padding: 0 !important;
}

.nagzar-auth-modal-box .nagzar-auth-verification-overlay {
    min-height: auto;
    padding: 24px 16px;
    border-radius: 24px;
}

.nagzar-auth-modal-box .nagzar-auth-verification-card {
    padding: 32px 24px;
    border-radius: 20px;
}


.nagzar-auth-verification-card {
    position: relative;
    background: #ffffff !important;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: nagzarVerificationSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001;
}

@keyframes nagzarVerificationSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.nagzar-auth-verification-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}


.nagzar-auth-verification-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

@keyframes nagzarTitleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nagzar-auth-verification-message {
    margin-bottom: 28px;
}

.nagzar-auth-verification-main-text {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.nagzar-auth-verification-sub-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.8;
}

.nagzar-auth-verification-email-box {
    background: #f0f0f0 !important;
    border-radius: 12px;
    padding: 16px !important;
    margin-bottom: 24px;
    display: block !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.nagzar-auth-verification-email-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.nagzar-auth-verification-email-address {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    direction: ltr;
    word-break: break-all;
}

.nagzar-auth-verification-tips {
    margin-bottom: 28px;
}

.nagzar-auth-verification-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    font-size: 14px;
    color: #92400e;
    margin: 0;
}

.nagzar-auth-verification-tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.nagzar-auth-verification-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}


.nagzar-resend-timer {
    margin-left: 8px;
    font-size: 14px;
    color: #ef4444;
}

.nagzar-auth-verification-sent .nagzar-auth-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-verification-sent .nagzar-auth-btn-primary:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.nagzar-auth-verification-sent .nagzar-auth-btn-primary:hover .nagzar-auth-btn-arrow {
    transform: translateX(-5px);
}

.nagzar-auth-verification-sent .nagzar-auth-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-verification-sent .nagzar-auth-btn-secondary:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%) !important;
}

.nagzar-auth-btn-home-icon {
    font-size: 18px;
}

@media (max-width: 480px) {
    .nagzar-auth-verification-overlay {
        padding: 12px 12px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .nagzar-auth-verification-card {
        padding: 20px 16px;
        border-radius: 16px;
        max-width: 90%;
    }
    
    .nagzar-auth-verification-icon-wrapper {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }
    
    .nagzar-auth-verification-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .nagzar-auth-verification-icon {
        font-size: 32px;
    }
    
    .nagzar-auth-verification-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .nagzar-auth-verification-main-text {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .nagzar-auth-verification-sub-text {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .nagzar-auth-verification-message {
        margin-bottom: 16px;
    }
    
    .nagzar-auth-verification-email-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px;
        margin-bottom: 12px;
    }
    
    .nagzar-auth-verification-email-text {
        text-align: center;
    }
    
    .nagzar-auth-verification-email-address {
        text-align: center;
        font-size: 13px;
    }
    
    .nagzar-auth-verification-tips {
        margin-bottom: 14px;
    }
    
    .nagzar-auth-verification-tip {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .nagzar-auth-verification-actions {
        gap: 8px;
    }
    
    .nagzar-resend-btn-primary {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-btn-primary {
        padding: 12px 18px !important;
        font-size: 14px !important;
        background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
        color: #ffffff !important;
        border: none !important;
        margin-top: 0 !important;
        animation: nagzarGradientShift 10s ease-in-out infinite !important;
    }
    
    .nagzar-auth-verification-sent .nagzar-auth-btn-secondary {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@keyframes nagzarModalOverlayShift {
    0% {
        background: linear-gradient(180deg, #000000 0%, #5b21b6 50%, #ec4899 100%);
    }
    50% {
        background: linear-gradient(180deg, #1a0a2e 0%, #ec4899 50%, #5b21b6 100%);
    }
    100% {
        background: linear-gradient(180deg, #000000 0%, #5b21b6 50%, #ec4899 100%);
    }
}

@keyframes nagzarButtonGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.nagzar-auth-animated-gradient {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    border: none !important;
    color: #ffffff !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

/* Modal buttons - exact match to email verification button */
.nagzar-auth-modal-box .nagzar-auth-btn-primary {
    display: inline-block !important;
    padding: 14px 24px !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    background-position: 0% 50% !important;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4) !important;
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-modal-box .nagzar-auth-btn-primary::before {
    display: none !important;
}

.nagzar-auth-modal-box .nagzar-auth-btn-primary:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%) !important;
}

.nagzar-auth-modal-box .nagzar-auth-btn-primary:active {
    transform: none !important;
}

.nagzar-auth-animated-gradient-btn {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    color: #ffffff !important;
    border: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.4) !important;
    transition: all 0.2s ease !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.nagzar-auth-animated-gradient-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.6) !important;
}

.nagzar-auth-form-container .nagzar-auth-submit,
.nagzar-auth-modal-box .nagzar-auth-submit,
button.nagzar-auth-submit,
.nagzar-auth-submit {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-form-container .nagzar-auth-submit:hover,
.nagzar-auth-modal-box .nagzar-auth-submit:hover,
button.nagzar-auth-submit:hover,
.nagzar-auth-submit:hover {
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%) !important;
    transform: none !important;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
}

.nagzar-auth-submit.nagzar-auth-animated-gradient-btn,
.nagzar-auth-form .nagzar-auth-submit {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    color: #ffffff !important;
    border: none !important;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-submit {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.nagzar-auth-submit::before {
    display: none;
}

.nagzar-auth-verification-hint {
    text-align: center;
    color: var(--nagzar-auth-gray-500);
    font-size: 14px;
    margin: 16px 0;
    line-height: 1.8;
}

.nagzar-auth-verification-actions {
    margin-top: 20px;
}

.nagzar-auth-verification-timer {
    text-align: center;
    color: var(--nagzar-auth-gray-500);
    font-size: 12px;
    margin-top: 16px;
}


/* ✨ Ultra Beautiful Animated Gradient Button Animation */
@keyframes nagzarGradientShift {
    0% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    25% { 
        background-position: 50% 50%;
        filter: brightness(1.05);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.1);
    }
    75% { 
        background-position: 50% 50%;
        filter: brightness(1.05);
    }
    100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
}

/* ✨ Glow effect animation */
@keyframes nagzarButtonGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4), 
                    0 0 20px rgba(219, 39, 119, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(147, 51, 234, 0.6), 
                    0 0 40px rgba(219, 39, 119, 0.4),
                    inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

/* ✨ Pulse effect */
@keyframes nagzarButtonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

/* All buttons have animated gradient - FINAL */
.nagzar-auth-submit,
button.nagzar-auth-submit,
.nagzar-auth-form-container .nagzar-auth-submit,
.nagzar-auth-modal-box .nagzar-auth-submit,
.nagzar-auth-wrapper .nagzar-auth-submit,
.nagzar-auth-wrapper button.nagzar-auth-submit,
.nagzar-auth-modal-overlay .nagzar-auth-submit {
    background-image: linear-gradient(90deg, #000000 0%, #5b21b6 50%, #ec4899 100%) !important;
    background-size: 400% 400% !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    animation: nagzarGradientShift 10s ease-in-out infinite !important;
}

.nagzar-auth-form-container .nagzar-auth-submit:hover,
.nagzar-auth-modal-box .nagzar-auth-submit:hover,
button.nagzar-auth-submit:hover,
.nagzar-auth-wrapper .nagzar-auth-submit:hover,
.nagzar-auth-modal-overlay .nagzar-auth-submit:hover {
    background-image: linear-gradient(90deg, #5b21b6 0%, #ec4899 50%, #000000 100%) !important;
    transform: none !important;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4) !important;
}