/* ==========================================================
 * Authentication Modal Styles
 * Beautiful, modern design with animations
 * ========================================================== */

/* Modal Overlay - No backdrop blocking */
.modal-backdrop {
    background: rgba(14, 41, 84, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Ensure modal is visible when shown */
.modal.show {
    display: block !important;
}

.modal.fade.show {
    opacity: 1;
}

/* Force modal to be visible */
#authModal {
    z-index: 1055;
}

#authModal.show {
    display: block !important;
    opacity: 1;
}

/* Force modal to be visible and on top of everything */
#authModal {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    align-items: center !important;
    justify-content: center !important;
}

#authModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 1rem !important;
}

/* Modal Dialog Centering */
.modal-dialog {
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    position: relative !important;
}

#authModal.modal {
    z-index: 99999 !important;
    position: fixed !important;
}

/* Ensure modal dialog is visible and centered */
.modal-dialog {
    z-index: 100000 !important;
    position: relative !important;
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transform: none !important;
    top: auto !important;
}

/* Modal content styling */
.modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

/* Modal header */
.modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
}

/* Modal body */
.modal-body {
    padding: 2rem !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Ensure all content is visible */
.auth-tabs {
    display: flex !important;
    width: 100% !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin-bottom: 1.5rem !important;
}

.auth-tab {
    flex: 1 !important;
    padding: 1rem !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 8px 8px 0 0 !important;
}

.auth-tab.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.auth-tab:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.auth-tab.active:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Form styling */
.auth-form {
    width: 100% !important;
}

.form-floating {
    margin-bottom: 1rem !important;
}

.form-control {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Submit button */
.auth-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.auth-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}

/* Close button */
.btn-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
}

.btn-close:hover {
    color: #ef4444 !important;
    transform: scale(1.1) !important;
}

/* Test styles for modal visibility */
#authModal.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modal backdrop */
.modal-backdrop {
    z-index: 99998 !important;
}

.modal-backdrop.fade,
.modal-backdrop.show {
    opacity: 0 !important;
    display: none !important;
}

/* Authentication Modal */
.auth-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(14, 41, 84, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6ac8c6 0%, #0e2954 50%, #6ac8c6 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Modal Header */
.auth-modal-content .modal-header {
    background: linear-gradient(135deg, #0e2954 0%, #6ac8c6 100%);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-modal-content .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.auth-tabs .nav-link {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.auth-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #0e2954;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Close Button */
.auth-modal-content .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.auth-modal-content .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.auth-modal-content .modal-body {
    padding: 2.5rem;
    background: white;
}

/* Auth Form */
.auth-form {
    max-width: 100%;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0e2954;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.auth-subtitle {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Form Controls */
.auth-form .form-floating {
    position: relative;
}

.auth-form .form-control {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.auth-form .form-control:focus {
    border-color: #6ac8c6;
    box-shadow: 0 0 0 0.2rem rgba(106, 200, 198, 0.25);
    background: white;
    transform: translateY(-2px);
}

.auth-form .form-floating > label {
    color: #6B7280;
    font-weight: 500;
    padding: 1rem 1rem;
}

.auth-form .form-control:focus ~ label,
.auth-form .form-control:not(:placeholder-shown) ~ label,
.auth-form .form-control:valid ~ label,
.auth-form .form-control.has-value ~ label {
    color: #6ac8c6;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background: white;
    padding: 0 0.5rem;
    z-index: 1;
    position: relative;
}

/* Checkbox Styling */
.auth-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    background: #F9FAFB;
    transition: all 0.3s ease;
}

.auth-form .form-check-input:checked {
    background-color: #6ac8c6;
    border-color: #6ac8c6;
    box-shadow: 0 0 0 0.2rem rgba(106, 200, 198, 0.25);
}

.auth-form .form-check-label {
    color: #374151;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Submit Button */
.auth-submit-btn {
    background: linear-gradient(135deg, #6ac8c6 0%, #0e2954 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 41, 84, 0.3);
    background: linear-gradient(135deg, #0e2954 0%, #6ac8c6 100%);
}

.auth-submit-btn:active {
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit-btn.loading .btn-text {
    display: none;
}

.auth-submit-btn.loading .btn-loading {
    display: flex !important;
}

/* Auth Links */
.auth-links {
    text-align: center;
}

.auth-link {
    color: #6ac8c6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6ac8c6;
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #0e2954;
    text-decoration: none;
}

.auth-link:hover::after {
    width: 100%;
}

/* Header User Dropdown */
.header-user-dropdown .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(14, 41, 84, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid rgba(106, 200, 198, 0.1);
    min-width: 250px;
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    display: none !important;
}

.header-user-dropdown .dropdown-menu.show {
    display: block !important;
    animation: dropdownFadeIn 0.3s ease-out !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-user-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(106, 200, 198, 0.1) 0%, rgba(14, 41, 84, 0.05) 100%);
    color: #0e2954;
    transform: translateX(5px);
}

.header-user-dropdown .dropdown-header {
    color: #0e2954;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.header-user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #E5E7EB;
}

/* User Status Indicator */
.user-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.3s ease;
}

/* Dropdown Toggle Button */
.header-user-dropdown .dropdown-toggle {
    background: #063e7f !important;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
}

.header-user-dropdown .dropdown-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

.header-user-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Ensure dropdown is clickable */
.header-user-dropdown {
    position: relative !important;
}

.header-user-dropdown .dropdown-menu {
    pointer-events: auto !important;
}

.user-status-indicator.logged-in {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.user-status-indicator.logged-out {
    background: #6B7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
}

/* Header Action Icon Enhancements */
.header-action-icon {
    position: relative;
    transition: all 0.3s ease;
}

.header-action-icon:hover {
    transform: translateY(-2px);
    color: #6ac8c6 !important;
}

/* Success/Error Messages */
.auth-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInDown 0.5s ease;
}

.auth-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#authModal.show .modal-dialog {
    animation: modalFadeIn 0.3s ease-out !important;
}

/* Ensure modal is always on top */
#authModal {
    z-index: 99999 !important;
}

#authModal .modal-dialog {
    z-index: 100000 !important;
    margin: 0 !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

#authModal .modal-content {
    z-index: 100001 !important;
}

/* Force perfect centering for auth modal */
#authModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

#authModal.show .modal-dialog {
    margin: 0 !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Responsive Modal Design */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem !important;
    }
    
    .modal-body {
        padding: 1.5rem !important;
    }
    
    .auth-tab {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    .form-control {
        padding: 0.75rem !important;
    }
    
    .auth-submit-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* User Benefits Section */
.cart-user-benefits-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.cart-user-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 18px;
    z-index: 1;
}

.cart-user-benefits-section > * {
    position: relative;
    z-index: 2;
}

.benefits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefits-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

.careers-page .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.careers-page .benefit-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.careers-page .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.careers-page .benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.careers-page .benefit-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.careers-page .benefit-content h5 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.careers-page .benefit-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.benefits-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.benefits-cta .btn {
    margin: 0 0.5rem;
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.benefits-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Responsive Design for Benefits */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-cta .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    #authModal .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .auth-modal-content .modal-body {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-tabs .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Tab transition animations */
.tab-pane {
    transition: opacity 0.3s ease;
}

.tab-pane.fade:not(.show) {
    opacity: 0;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* Form validation states */
.auth-form .form-control.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.auth-form .form-control.is-valid {
    border-color: #10B981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.invalid-feedback {
    color: #EF4444;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.valid-feedback {
    color: #10B981;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================
 * Cart Authentication Section
 * ========================================================== */

.cart-auth-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid rgba(106, 200, 198, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cart-auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6ac8c6 0%, #0e2954 50%, #6ac8c6 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.auth-section-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6ac8c6 0%, #0e2954 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(106, 200, 198, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.auth-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0e2954;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.auth-section-subtitle {
    color: #6B7280;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.auth-section-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.auth-action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.auth-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-action-btn:hover::before {
    left: 100%;
}

.auth-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 41, 84, 0.3);
}

.auth-section-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(106, 200, 198, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(106, 200, 198, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
}

.benefit-item:hover {
    background: rgba(106, 200, 198, 0.1);
    border-color: rgba(106, 200, 198, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 200, 198, 0.15);
}

.benefit-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Responsive Design for Cart Auth Section */
@media (max-width: 768px) {
    .cart-auth-section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .auth-section-title {
        font-size: 1.5rem;
    }
    
    .auth-section-subtitle {
        font-size: 1rem;
    }
    
    .auth-section-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .auth-section-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cart-auth-section {
        padding: 1.5rem 1rem;
    }
    
    .auth-section-title {
        font-size: 1.25rem;
    }
    
    .auth-section-subtitle {
        font-size: 0.9rem;
    }
}

/* ==========================================================
   Header Auth Buttons Styling
   ========================================================== */

/* Header Auth Buttons */
.header-auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-auth-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.header-auth-buttons .btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
    background: transparent;
}

.header-auth-buttons .btn-outline-primary:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.header-auth-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
}

.header-auth-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

/* Mobile Responsive for Auth Buttons */
@media (max-width: 768px) {
    .header-auth-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .header-auth-buttons .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .header-auth-buttons {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .header-auth-buttons .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .header-auth-buttons .btn i {
        display: none;
    }
}

/* ==========================================================
   Cart Block Authentication Section - Professional Design
   ========================================================== */

.cart-auth-section-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 
        0 10px 25px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    overflow: hidden;
}

.cart-auth-section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #10b981);
    border-radius: 20px 20px 0 0;
}

.cart-auth-section-block::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.cart-auth-section-block .auth-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.cart-auth-section-block .auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cart-auth-section-block .auth-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.cart-auth-section-block .auth-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.cart-auth-section-block .auth-icon i {
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.cart-auth-section-block .auth-section-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.cart-auth-section-block .auth-section-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cart-auth-section-block .auth-section-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cart-auth-section-block .auth-action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-auth-section-block .auth-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cart-auth-section-block .auth-action-btn:hover::before {
    left: 100%;
}

.cart-auth-section-block .auth-action-btn.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cart-auth-section-block .auth-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.cart-auth-section-block .auth-action-btn.btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
    background: #ffffff;
    backdrop-filter: blur(10px);
}

.cart-auth-section-block .auth-action-btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.cart-auth-section-block .auth-section-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.cart-auth-section-block .benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-auth-section-block .benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cart-auth-section-block .benefit-item:hover::before {
    left: 100%;
}

.cart-auth-section-block .benefit-item:hover {
    background: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cart-auth-section-block .benefit-item i {
    font-size: 1.25rem;
    color: #ffffff;
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cart-auth-section-block .benefit-item span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Responsive Design for Cart Block */
@media (max-width: 768px) {
    .cart-auth-section-block {
        padding: 2rem;
        margin: 1.5rem 0;
    }
    
    .cart-auth-section-block .auth-icon {
        width: 70px;
        height: 70px;
    }
    
    .cart-auth-section-block .auth-icon i {
        font-size: 1.75rem;
    }
    
    .cart-auth-section-block .auth-section-title {
        font-size: 1.25rem;
    }
    
    .cart-auth-section-block .auth-section-subtitle {
        font-size: 0.9rem;
    }
    
    .cart-auth-section-block .auth-section-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-auth-section-block .auth-action-btn {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
    }
    
    .cart-auth-section-block .auth-section-benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cart-auth-section-block {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .cart-auth-section-block .auth-icon {
        width: 60px;
        height: 60px;
    }
    
    .cart-auth-section-block .auth-icon i {
        font-size: 1.5rem;
    }
    
    .cart-auth-section-block .auth-section-title {
        font-size: 1.125rem;
    }
    
    .cart-auth-section-block .auth-section-subtitle {
        font-size: 0.875rem;
    }
    
    .cart-auth-section-block .auth-action-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cart-auth-section-block .benefit-item {
        padding: 1rem;
    }
    
    .cart-auth-section-block .benefit-item i {
        font-size: 1.125rem;
    }
    
    .cart-auth-section-block .benefit-item span {
        font-size: 0.85rem;
    }
}

/* ==========================================================
   Modal Header Styling
   ========================================================== */

.auth-modal-content .modal-header,
.modal-header.border-0 {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    color: #ffffff;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.modal-header.border-0 .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header.border-0 .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header.border-0 .btn-close:hover {
    opacity: 1;
}

/* ==========================================================
   New Auth Modal Elements
   ========================================================== */

/* Header User Icon Styling */
.header-user-icon {
    display: flex;
    align-items: center;
}

.user-login-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #3b82f6;
    border-color: #3b82f6;
    background: transparent;
}

.user-login-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Auth Register Section */
.auth-register-section {
    text-align: center;
    margin-top: 1rem;
}

.auth-register-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-register-section .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-register-section .btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
    background: transparent;
}

.auth-register-section .btn-outline-primary:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
