/* ===== AUTHENTICATION MODAL - ELEGANT DESIGN ===== */

/* Modal Container - Fix Bootstrap Display Issues */
#authModal {
    z-index: 10500 !important;
}

#authModal .modal-dialog {
    max-width: 500px;
    margin: 30px auto;
}

#authModal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
}

/* Modal Header - Subtle Design */
#authModal .modal-header {
    background: #ffffff;
    color: #1f2937;
    border-bottom: 1px solid #e8eef5;
    padding: 22px 28px;
    position: relative;
    text-align: left;
}

/* Subtle brand accent bar */
#authModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 85%, #1fa582 100%);
}

#authModal .modal-title {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.2px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1f2937;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

#authModal .modal-title i {
    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;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eafaf1;
    color: #28a745;
    font-size: 16px;
}

#authModal .close {
    color: #6c757d;
    opacity: 0.7;
    transition: all 0.2s ease;
    font-size: 24px;
    font-weight: 300;
    text-shadow: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
}

#authModal .close:hover {
    opacity: 1;
    color: #333;
    transform: scale(1.1);
}

/* Modal Body */
#authModal .modal-body {
    padding: 0;
    background: #ffffff;
}

/* Tab Navigation - Clean Design */
#authTabs {
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0 30px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

#authTabs .nav-item {
    margin: 0 5px;
}

#authTabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 15px 25px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    position: relative;
    background: #f8f9fa;
    font-size: 14px;
    letter-spacing: 0.2px;
    font-family: 'Montserrat', Arial, sans-serif;
    border-bottom: 2px solid transparent;
    z-index: 1;
}

#authTabs .nav-link:hover {
    color: #333;
    background: #f8f9fa;
}

#authTabs .nav-link.active {
    color: #333;
    background: #fff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
    z-index: 2;
}

/* Tab Content */
#authTabContent {
    padding: 30px;
    background: #ffffff;
    /* min-height: 350px; */
}

#authTabContent .tab-pane {
    display: none;
}

#authTabContent .tab-pane.active {
    display: block;
}

/* Form Styling - Elegant Design */
#authTabContent .form-group {
    margin-bottom: 20px;
    position: relative;
}

#authTabContent label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Form Controls - Clean Design */
#authTabContent .form-control {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #333;
    font-weight: 400;
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

#authTabContent .form-control:focus {
    outline: 0;
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#authTabContent .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

#authTabContent .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

#authTabContent .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#authTabContent select.form-control {
  height: 44px;
  min-height: 44px;
  line-height: 1.5;
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Buttons - Subtle Design */
#authTabContent .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 14px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 200px;
}

#authTabContent .btn-primary {
    background: #007bff;
    color: #ffffff;
}

#authTabContent .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

#authTabContent .btn-success {
    background: #28a745;
    color: #ffffff;
}

#authTabContent .btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

.password-strength-bar.weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-bar.medium {
    background: #ffc107;
    width: 50%;
}

.password-strength-bar.strong {
    background: #28a745;
    width: 75%;
}

.password-strength-bar.very-strong {
    background: #28a745;
    width: 100%;
}

/* Form Row Spacing */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Required Field Indicator */
.required-field::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Modal Backdrop Enhancement */
.modal-backdrop.in {
    opacity: 0.5;
    /* Bootstrap 3 does not support backdrop-filter, so omit for compatibility */
}

/* Animation for modal appearance */
#authModal.fade .modal-dialog {
    /* Bootstrap 3 fade animation: use opacity only */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#authModal.fade.in .modal-dialog {
    opacity: 1;
}

/* Success/Error Message Styles */
.auth-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 500;
    border: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
}

.auth-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 3px solid #28a745;
}

.auth-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

/* User Info Banner */
.user-info-banner {
    background: #f8f9fa;
    color: #333;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.user-info-banner .btn-outline-light {
    border: 1px solid #6c757d;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    background: transparent;
}

.user-info-banner .btn-outline-light:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Flexbox Form Layout for Auth Modal */
.form-flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}
.form-flex-col {
  flex: 1 1 0;
  min-width: 0;
}
/* Ensure form groups inside flex columns have consistent spacing */
.form-flex-col .form-group {
  margin-bottom: 20px;
}
/* Remove Bootstrap grid margin overrides in modal */
#authModal .row,
#authModal [class^="col-"] {
  margin: 0 !important;
  padding: 0 !important;
}
/* Responsive stacking for mobile */
@media (max-width: 768px) {
  .form-flex-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Enhanced Focus States */
#authTabContent .form-control:focus + label,
#authTabContent .form-control:not(:placeholder-shown) + label {
    color: #007bff;
}

/* Tab Transitions */
#authTabContent .tab-pane {
    transition: opacity 0.2s ease;
}

#authTabContent .tab-pane.active {
    opacity: 1;
}

#authTabContent .tab-pane:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* Smooth transitions for all interactive elements */
#authModal * {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===== PROTEIN SELECTION MODAL STYLES ===== */

/* Protein Modal Container */
#proteinModal {
    z-index: 10600 !important; /* Higher than auth modal */
}

#proteinModal .modal-dialog {
    width: 450px;
    max-width: 450px;
    margin: 30px auto;
}

#proteinModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
}

/* Protein Modal Header */
#proteinModal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
    text-align: center;
}

#proteinModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
}

#proteinModal .modal-title i {
    margin-right: 8px;
    font-size: 18px;
}

#proteinModal .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    text-shadow: none;
    background: transparent;
    border: none;
    position: absolute;
    top: 15px;
    right: 20px;
}

#proteinModal .close:hover {
    opacity: 1;
    color: white;
}

/* Selected Product Info */
.selected-product-info {
    text-align: center;
    margin-bottom: 15px;
}

.selected-product-info h6 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.base-price {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.base-price span {
    font-weight: 600;
    color: #28a745;
}

/* Protein Options Container */
.protein-options {
    margin: 15px 0;
}

.protein-option {
    margin-bottom: 12px;
    position: relative;
}

.protein-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.protein-label {
    display: block;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
}

.protein-label:hover {
    background: #e9ecef;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.protein-option input[type="radio"]:checked + .protein-label {
    background: #d4edda;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.protein-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.protein-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.protein-price {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.protein-description {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

/* Loading State */
.loading-proteins {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.loading-proteins i {
    margin-right: 8px;
    color: #28a745;
}

/* Total Price Display */
.total-price-display {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.total-price-display strong {
    font-size: 18px;
    color: #333;
    font-family: 'Montserrat', Arial, sans-serif;
}

#totalPrice {
    color: #28a745;
    font-size: 20px;
}

/* Modal Footer */
#proteinModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    justify-content: space-between;
}

#proteinModal .btn {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

#proteinModal .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

#proteinModal .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

#proteinModal .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

#proteinModal .btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1fa582 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#proteinModal .btn i {
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #proteinModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #proteinModal .modal-header {
        padding: 15px 20px;
    }
    
    #proteinModal .modal-title {
        font-size: 18px;
    }
    
    .protein-label {
        padding: 12px;
    }
    
    .protein-name {
        font-size: 15px;
    }
    
    .protein-price {
        font-size: 13px;
    }
    
    .total-price-display strong {
        font-size: 16px;
    }
    
    #totalPrice {
        font-size: 18px;
    }
}

/* ===== SHOP CATEGORY STYLING ===== */

/* Category Headings */
.category-heading {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    margin: 30px 0 20px 0;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.category-heading i {
    color: #28a745;
    margin-right: 10px;
    font-size: 24px;
}

.category-heading small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Product Card Enhancements */
.product .add-item-button p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.product .add-item-button i {
    margin-right: 6px;
}

/* Product Action Buttons */
.product-actions {
    padding: 0 !important;
}

.action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.action-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid;
    font-family: 'Montserrat', Arial, sans-serif;
}

.action-buttons .btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.action-buttons .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-buttons .btn-outline-primary {
    background: transparent;
    border-color: #007bff;
    color: #007bff;
}

.action-buttons .btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.action-buttons .btn i {
    margin-right: 4px;
    font-size: 12px;
}

/* Lunch Bowl single button styling */
.product[data-product-id] .add-item-button:not(.btn) {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product[data-product-id]:hover .add-item-button:not(.btn) {
    transform: translateY(-2px);
}

/* Lunch Bowl customize button (full width) */
.product .btn.add-item-button {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

.product .btn.add-item-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.product .btn.add-item-button i {
    margin-right: 6px;
}

/* Special Instructions Modal Styling */
#instructionsModal {
    z-index: 10700 !important;
}

#instructionsModal .modal-dialog {
    width: 500px;
    max-width: 500px;
    margin: 30px auto;
}

#instructionsModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#instructionsModal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
    text-align: center;
}

#instructionsModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
}

#instructionsModal .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    text-shadow: none;
    background: transparent;
    border: none;
    position: absolute;
    top: 15px;
    right: 20px;
}

#instructionsModal .close:hover {
    opacity: 1;
    color: white;
}

/* Special instructions container */
.special-instructions-container {
    margin: 15px 0;
}

.special-instructions-container textarea {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
    resize: vertical;
    min-height: 80px;
}

.special-instructions-container textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    outline: none;
}

/* Instructions examples */
.instructions-examples {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.instructions-examples p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.example-btn {
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    transition: all 0.2s ease !important;
}

.example-btn:hover {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .action-buttons .btn {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    #instructionsModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
        width: auto;
    }
    
    .example-buttons {
        gap: 4px;
    }
    
    .example-btn {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
}

/* Cart customization display */
.shopping-cart .product-name .text-muted {
    font-style: italic;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-top: 3px;
    display: block;
} 

/* Remove old corporate notice styles to prevent interference */
.corporate-notice-modal,
.corporate-notice-modal i,
.corporate-notice-modal strong {
  all: unset !important;
}

/* Modern minimal alert for corporate notice (Bootstrap-agnostic) */
#authModal .alert-corporate-notice {
  background: #f6fbf8;
  border: 1px solid #e3f2ea;
  border-radius: 10px;
  -webkit-box-shadow: none;
  box-shadow: none;
  padding: 14px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 12px;
  color: #334155;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

#authModal .alert-corporate-notice i {
  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;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eafaf1;
  color: #28a745;
  font-size: 16px;
  flex: 0 0 32px;
  -ms-flex: 0 0 32px;
}

#authModal .alert-corporate-notice > div { margin: 0; }

#authModal .alert-corporate-notice strong {
  display: block;
  color: #28a745;
  font-weight: 600;
  margin: 0 0 2px 0;
  font-size: 14px;
}

#authModal .alert-corporate-notice span,
#authModal .alert-corporate-notice p {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

@media (max-width: 768px) {
  #authModal .alert-corporate-notice { gap: 10px; padding: 12px 12px; }
  #authModal .alert-corporate-notice i { width: 28px; height: 28px; font-size: 14px; }
}

/* ===== CATEGORY FILTER NAV ===== */
.category-filter-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-filter-nav::-webkit-scrollbar { height: 6px; }
.category-filter-nav::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}
.category-filter-nav .cat-pill {
  white-space: nowrap;
  border: 1px solid #e1e5ea;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: all .2s ease;
}
.category-filter-nav .cat-pill:hover {
  background: #f5f7fb;
  border-color: #cfd7df;
  transform: translateY(-1px);
}
.category-filter-nav .cat-pill.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,123,255,.2);
}
@media (max-width: 768px) {
  .category-filter-nav {
    padding: 8px 0 16px;
    gap: 6px;
  }
  .category-filter-nav .cat-pill {
    padding: 7px 12px;
    font-size: 12px;
  }
}

#authModal .close {
    display: none;
}