/* ====================================
   SPORT NEXUS CUSTOM STYLES
   Custom styles for conditional validation and registration form
   ====================================*/

/* ====================================
   CONDITIONAL VALIDATION STYLES BY ROLE
   ====================================*/

/* Form validation error states */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25) !important;
  transition: all 0.3s ease;
}

/* .form-control.is-valid,
.form-select.is-valid {
  border-color: #28a745 !important;
  background: #f8fff8 !important;
  box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.25) !important;
  transition: all 0.3s ease;
} */

/* Select2 validation styles */
.select2-container .select2-selection.is-invalid {
  border-color: #dc3545 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25) !important;
}

/* .select2-container .select2-selection.is-valid {
  border-color: #28a745 !important;
  background: #f8fff8 !important;
  box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.25) !important;
} */

/* Invalid feedback styling */
.invalid-feedback {
  display: block !important;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
  font-weight: 500;
  line-height: 1.4;
}

/* Valid feedback styling */
/* .valid-feedback {
  display: block !important;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #28a745;
  font-weight: 500;
  line-height: 1.4;
} */

/* Radio group validation */
.radio-group + .invalid-feedback {
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
}

/* Email field validation  newly changed*/
.account-email-fld .invalid-feedback {
  margin-top: 0.25rem;
}

.account-email-fld .form-control.is-invalid {
  border-radius: 8px !important;
  padding-right: 90px;
}

.account-email-fld .form-control {
  border-radius: 8px !important;
  padding-right: 90px;
}

/* Custom validation tooltip */
.validation-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  display: none;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #fff;
  background-color: rgba(220, 53, 69, 0.9);
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Show validation tooltips on focus */
.form-control.is-invalid:focus + .validation-tooltip {
  display: block;
}

/* Role-specific field highlighting */
.profile-type-fields.validation-active {
  border-left: 3px solid #3949A6;
  padding-left: 15px;
  margin-left: 5px;
  background: rgba(57, 73, 166, 0.02);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

/* Loading state for validation */
.validating {
  position: relative;
}

.validating::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3949A6;
  border-radius: 50%;
  animation: validationSpin 1s linear infinite;
}

@keyframes validationSpin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Success states */
/* .validation-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
} */

/* Role indicator badges */
.role-validation-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

.role-validation-badge.athlete {
  color: #fff;
  background-color: #17a2b8;
}

.role-validation-badge.team {
  color: #fff;
  background-color: #28a745;
}

.role-validation-badge.sponsor {
  color: #212529;
  background-color: #ffc107;
}

.role-validation-badge.fan {
  color: #fff;
  background-color: #6f42c1;
}

/* Field error highlighting */
.field-error-highlight {
  position: relative;
}

.field-error-highlight::before {
  content: '!';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

/* Field success highlighting */
.field-success-highlight {
  position: relative;
}

/* .field-success-highlight::before {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
} */

/* Multiple select validation */
.athlete-sport-multiple.is-invalid + .select2-container {
  border: 1px solid #dc3545 !important;
  border-radius: 8px;
}

/* .athlete-sport-multiple.is-valid + .select2-container {
  border: 1px solid #28a745 !important;
  border-radius: 8px;
} */

/* Password strength indicator */
.password-strength {
  margin-top: 0.25rem;
  height: 4px;
  border-radius: 2px;
  background: #e9ecef;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s ease;
}

.password-strength-weak { background: #dc3545; width: 25%; }
.password-strength-fair { background: #ffc107; width: 50%; }
.password-strength-good { background: #17a2b8; width: 75%; }
/* .password-strength-strong { background: #28a745; width: 100%; } */

/* Form section headers with validation status */
.account-sub-title h3 {
  position: relative;
}

.account-sub-title.has-errors h3::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  animation: errorPulse 1.5s infinite;
}

/* .account-sub-title.all-valid h3::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
} */

@keyframes errorPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Responsive validation styles */
@media (max-width: 768px) {
  .invalid-feedback {
    font-size: 0.8rem;
  }
  
  .profile-type-fields.validation-active {
    margin-left: 0;
    padding-left: 10px;
    border-left: 2px solid #3949A6;
  }
  
  .role-validation-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .field-error-highlight::before,
  .field-success-highlight::before {
    width: 18px;
    height: 18px;
    font-size: 10px;
    right: 8px;
  }
}

@media (max-width: 576px) {
  .validation-tooltip {
    position: relative;
    display: block !important;
    margin-top: 0.5rem;
    background-color: #dc3545;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
  }
  
  .profile-type-fields.validation-active {
    background: rgba(57, 73, 166, 0.05);
  }
}

/* Focus states for better UX */
.form-control:focus,
.form-select:focus {
  border-color: #3949A6 !important;
  box-shadow: 0 0 0 0.1rem rgba(57, 73, 166, 0.25) !important;
}

/* Custom radio validation */
.radio-group {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
}

.radio-group.is-invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* .radio-group.is-valid {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
} */

/* Validation summary */
.validation-summary {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.validation-summary.has-errors {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #721c24;
}

/* .validation-summary.all-valid {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #155724;
} */

.validation-summary-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.validation-summary-list {
  margin: 0;
  padding-left: 1.2rem;
}

.validation-summary-list li {
  margin-bottom: 0.25rem;
}

/* ====================================
   AUTOCOMPLETE STYLES
   ====================================*/

/* Autocomplete dropdown container */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
}

/* Autocomplete items */
.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background-color: #f8f9fa;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

/* City autocomplete specific styles */
.city-info {
  display: flex;
  flex-direction: column;
}

.city-name {
  font-weight: 600;
  color: #212529;
}

.city-location {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.125rem;
}

/* User autocomplete specific styles */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dee2e6;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.125rem;
}

.user-role {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 500;
}

/* Loading, error, and no results states */
.loading-state,
.no-results,
.error-state {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.error-state {
  color: #dc3545;
}

/* Responsive autocomplete */
@media (max-width: 576px) {
  .user-info {
    gap: 0.5rem;
  }
  
  .avatar-img,
  .avatar-placeholder {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .autocomplete-item {
    padding: 0.5rem 0.75rem;
  }
}

/* ====================================
   AUTOCOMPLETE DROPDOWN STYLES
   ====================================*/

/* Autocomplete dropdown container */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

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

/* Autocomplete items */
.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background-color: #f8f9fa;
  border-left: 3px solid #007bff;
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-radius: 0 0 0.375rem 0.375rem;
}

/* City autocomplete specific */
.city-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.city-name {
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
}

.city-location {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

/* User/Fan favorites autocomplete specific */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #6610f2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.user-role {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* State messages */
.loading-state,
.no-results,
.error-state {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.loading-state {
  background: #f8f9fa;
}

.no-results {
  color: #998a8a;
}

.error-state {
  color: #dc3545;
  background: #fff5f5;
}

.select2-container .select2-selection.is-invalid {
    border-color: #dc3545 !important;
}

.select2-container--default .select2-selection--multiple.is-invalid {
    border-color: #dc3545 !important;
}

/* Custom styling for Select2 with Bootstrap */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

/* Upload functionality styles */
.upload-image-drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-image-drop-zone:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-image-drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-image-icon {
    margin-bottom: 10px;
}

.upload-link {
    color: #007bff;
    text-decoration: none;
}

.upload-link:hover {
    text-decoration: underline;
}

.upload-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-preview img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upload-file-info {
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-icon {
    color: #007bff;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.file-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 6px;
    flex: 1;
    overflow: hidden;
}

.progress-fill {
    background: #007bff;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: #007bff;
    min-width: 35px;
}

.file-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-delete-btn:hover {
    background-color: #f8d7da;
}

/* Cropper modal styles */
.crop-container {
    max-height: 400px;
    overflow: hidden;
}

#crop-image {
    display: block;
    max-width: 100%;
}

/* City Autocomplete styles */
.autocomplete-container {
    position: relative;
}

/* Email Verify Button States */
.verify-email-btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.verify-email-btn[data-status="unverified"] {
    background-color: #007bff;
    color: white;
}

.verify-email-btn[data-status="verifying"] {
    background-color: #ffc107;
    color: #000;
    cursor: wait;
    pointer-events: none;
}

.verify-email-btn[data-status="verified"] {
    background-color: #28a745;
    color: white;
    pointer-events: none;
}

.verify-email-btn[data-status="taken"] {
    background-color: #dc3545;
    color: white;
    pointer-events: none;
}

.verify-email-btn[data-status="invalid"] {
    background-color: #6c757d;
    color: white;
    pointer-events: none;
}

.verify-email-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Spinning animation for verifying state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.verify-email-btn[data-status="verifying"] .btn-icon::before {
    content: "⟳";
    animation: spin 1s linear infinite;
    display: inline-block;
}

.verify-email-btn[data-status="verified"] .btn-icon::before {
    content: "✓";
}

.verify-email-btn[data-status="taken"] .btn-icon::before {
    content: "✗";
}

.verify-email-btn[data-status="invalid"] .btn-icon::before {
    content: "!";
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.city-info {
    display: flex;
    flex-direction: column;
}

.city-name {
    font-weight: 500;
    color: #333;
}

.city-location {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.no-results {
    padding: 10px 15px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.loading-results {
    padding: 10px 15px;
    color: #007bff;
    text-align: center;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
 
    outline: 0;
    padding: 8px 15px 19px 15px !important;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 7px;
    border: 1px solid #ADADAD !important;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1) !important;
  }


  /* Date picker styles */

    /* Date Picker Styling */
        .date-input-wrapper {
            position: relative;
            width: 100%;
        }

        .date-input-wrapper .form-control {
            padding-right: 45px;
            cursor: pointer;
        }

        .date-input-wrapper .calendar-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .date-input-wrapper .calendar-icon svg {
            width: 18px;
            height: 18px;
        }

        /* Flatpickr custom styling */
        .flatpickr-calendar {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .flatpickr-day.selected {
            background: #080808 !important;
            border-color: #010101 !important;
        }

        .flatpickr-day.today {
            border-color: #080808;
        }

        .flatpickr-day:hover {
            background: #e8f0fe;
        }



        /* Progress Bar Styling */
.file-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #2063E4;
    min-width: 45px;
    text-align: right;
}

.account-progress-bar .progress-fill {
  height: 10px !important;
  background: linear-gradient(to right, #1d4ed8, #22c55e);
}

.account-progress-bar .progress-fill-orange {
  height: 10px !important;
  background: linear-gradient(to right, #4700FF, #FF972B);
}

/* ====================================
   CAMPAIGNS PAGE STYLES
   ====================================*/

/* Breadcrumbs */
.campaigns-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.campaigns-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.campaigns-breadcrumbs a:hover {
  color: #3b82f6;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

/* Top Bar with Title and Buttons */
.campaigns-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.campaigns-top-bar-left {
  flex: 1;
}

.campaigns-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

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

.campaigns-top-bar-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-view-nfts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: #FF972B;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-view-nfts:hover {
  background: #e67e1f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 151, 43, 0.3);
}

.btn-create-campaign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-create-campaign:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Summary Statistics - Using dashboard styles */
.campaigns-page .stats {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Stat card layout for campaigns page */
.stats .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.stat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.stats .stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #1a1a1a;
  flex: 1;
}

.stats .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.stats .stat-icon i {
  width: 24px;
  height: 24px;
}

.stats .stat-label {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  margin-bottom: 0.5rem;
}

/* Stat subtext for campaigns page */
.stat-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: auto;
}

.stat-subtext-green {
  color: #10b981;
}

.stat-subtext-purple {
  color: #8b5cf6;
}

.stat-subtext-orange {
  color: #f97316;
}

.stat-subtext-red {
  color: #ef4444;
}

/* Red stat card */
.red {
  background: #fef2f2;
}

.red .stat-icon {
  background: #fecaca;
  color: #ef4444;
}

/* Main Content Grid */
.campaigns-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}

.campaigns-left-column,
.campaigns-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Campaign Management Card */
.campaign-management-card {
  background: #F8FAFC;
  border-radius: 15px;
  padding: 24px;
  border: 1px solid #C6E1FD;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Campaign Action Buttons */
.campaign-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.campaign-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.campaign-action-btn:hover {
  background: #f9fafb;
  color: #3b82f6;
  border-color: #3b82f6;
}

.campaign-action-btn-active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.campaign-action-btn-active:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.campaign-action-btn .btn-icon {
  width: 16px;
  height: 16px;
}

/* Campaign Table */
.campaign-table-wrapper {
  overflow-x: auto;
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
}

.campaign-table thead {
  background: #f9fafb;
}

.campaign-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.campaign-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.campaign-table tbody tr:hover {
  background: #f9fafb;
}

.campaign-table tbody tr:last-child td {
  border-bottom: none;
}

/* Campaign Name Cell */
.campaign-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.campaign-name-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.campaign-name-main {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.campaign-name-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.campaign-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.campaign-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.campaign-icon-blue {
  background: #3b82f6;
}

.campaign-icon-purple {
  background: #8b5cf6;
}

.campaign-icon-green {
  background: #10b981;
}

/* Raised Cell */
.raised-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.raised-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.progress-bar-campaign {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-fill-campaign {
  height: 100%;
  border-radius: 0.5rem;
  transition: width 0.3s ease;
}

.progress-fill-blue {
  background: #3b82f6;
}

.progress-fill-purple {
  background: #8b5cf6;
}

.progress-fill-green {
  background: #10b981;
}

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot-active {
  background: #10b981;
}

.status-dot-pending {
  background: #f59e0b;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn-view {
  color: #3b82f6;
}

.action-btn-view:hover {
  background: #dbeafe;
}

.action-btn-edit {
  color: #8b5cf6;
}

.action-btn-edit:hover {
  background: #ede9fe;
}

.action-btn-delete {
  color: #ef4444;
}

.action-btn-delete:hover {
  background: #fee2e2;
}

/* Recent Activity Card */
.recent-activity-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.activity-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.activity-item:hover {
  background: #f3f4f6;
}

.activity-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.activity-icon-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.activity-icon-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.activity-icon-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.activity-icon-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.activity-amount {
  font-weight: 600;
  color: #1a1a1a;
}

.activity-separator {
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .campaigns-main-grid {
    grid-template-columns: 1fr;
  }
  
  .campaigns-right-column {
    order: -1;
  }
  
  .campaigns-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .campaigns-top-bar-right {
    width: 100%;
    justify-content: flex-start;
  }
  
  .campaigns-listing-section .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
  }
  
  .stat-card {
    width: 100%;
  }
  
  .campaign-action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .campaign-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .campaign-table {
    font-size: 0.75rem;
  }
  
  .campaign-table th,
  .campaign-table td {
    padding: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .campaigns-top-bar-right {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-view-nfts,
  .btn-create-campaign {
    width: 100%;
    justify-content: center;
  }
  
  .campaigns-listing-section .grid {
    grid-template-columns: 1fr;
  }
  
  .campaign-actions-inline,
  .campaign-card-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .btn-view-campaign-inline,
  .btn-contribute-inline {
    width: 100%;
    text-align: center;
  }
  
  .campaign-author-overlay {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }
  
  .campaign-author-info {
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .campaign-table-wrapper {
    overflow-x: scroll;
  }
  
  .campaign-table {
    min-width: 800px;
  }
  
  .campaigns-main-title {
    font-size: 1.5rem;
  }
  
  .campaigns-subtitle {
    font-size: 0.875rem;
  }
}

/* ====================================
   CREATE CAMPAIGN MODAL STYLES
   ====================================*/

/* Modal Overlay */
.campaign-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.campaign-modal-overlay.active {
  display: flex;
}

/* Modal Container */
.campaign-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.campaign-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  border-radius: 12px 12px 0 0;
}

.campaign-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.campaign-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.campaign-modal-close:hover {
  background: #f3f4f6;
}

.campaign-modal-close i {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

/* Progress Steps */
.campaign-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.campaign-progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 32px;
  right: 32px;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  transform: translateY(-50%);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.progress-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.progress-step-circle.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.progress-step-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
}

/* Modal Step Content */
.campaign-modal-step {
  padding: 32px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
}

/* Form Styles */
.campaign-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.required {
  color: #ef4444;
}

.form-control {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper .form-control {
  padding-right: 45px;
  cursor: pointer;
}

.date-input-wrapper .calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  z-index: 1;
}

.date-input-wrapper i {
  width: 18px;
  height: 18px;
}

/* Flatpickr styling */
.flatpickr-input {
  cursor: pointer;
}

.flatpickr-calendar {
  z-index: 10000 !important;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Form Section */
.form-section {
  margin-top: 8px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

/* Allocation Row */
.allocation-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.allocation-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.allocation-input-wrapper {
  position: relative;
}

.allocation-input-wrapper .form-control {
  padding-right: 40px;
}

.allocation-percent {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 500;
}

.allocation-total {
  text-align: right;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 8px;
}

.allocation-total strong {
  color: #10b981;
  font-weight: 600;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.file-upload-area:hover {
  background: #f1f5f9;
  border-color: #2563eb;
}

.file-upload-area.drag-over {
  background: #dbeafe;
  border-color: #2563eb;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: #3b82f6;
}

.upload-text {
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
}

.upload-text-red {
  color: #ef4444;
}

.upload-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-icon {
  width: 32px;
  height: 32px;
  color: #3b82f6;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.file-size {
  font-size: 0.75rem;
  color: #6b7280;
}

.file-progress {
  flex: 1;
  max-width: 200px;
}

.file-progress .progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.file-progress .progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.3s;
}

.file-delete {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ef4444;
  transition: background 0.2s;
}

.file-delete:hover {
  background: #fee2e2;
}

/* Royalty Input */
.royalty-input-wrapper {
  position: relative;
}

.royalty-input-wrapper .form-control {
  padding-right: 40px;
}

.royalty-percent {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 500;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.btn-primary {
  padding: 12px 24px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  padding: 12px 24px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Review Section */
.review-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-section {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.review-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.review-value {
  font-size: 0.875rem;
  color: #1a1a1a;
  font-weight: 600;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: #10b981;
}

.checklist-item span {
  font-size: 0.875rem;
  color: #374151;
}

/* Distribution */
.distribution-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.distribution-item:last-of-type {
  border-bottom: none;
}

.distribution-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.distribution-value {
  font-size: 0.875rem;
  color: #1a1a1a;
  font-weight: 600;
}

.distribution-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  font-size: 0.875rem;
  color: #6b7280;
}

.distribution-total strong {
  color: #10b981;
  font-weight: 600;
}

/* NFT Tiers Preview */
#nftTiersPreview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nft-tier-preview {
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.nft-tier-preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.nft-tier-preview-details {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .campaign-modal {
    max-width: 100%;
    margin: 10px;
  }

  .campaign-modal-header,
  .campaign-modal-step {
    padding: 20px;
  }

  .form-row,
  .allocation-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .campaign-progress-steps {
    padding: 16px;
  }

  .progress-step-label {
    font-size: 0.7rem;
  }
}

/* ====================================
   PUBLIC CAMPAIGNS INDEX PAGE STYLES
   ====================================*/

/* Header Section */
.campaigns-public-header {
  text-align: center;
  padding: 3rem 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.campaigns-public-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.campaigns-public-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Search and Filter Section */
.campaigns-search-filter {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6b7280;
  pointer-events: none;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.filter-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

/* Campaigns Listing Section */
.campaigns-listing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.campaigns-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.campaigns-listing-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.sort-wrapper label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  min-width: 150px;
}

.sort-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

/* Campaigns Grid - Using athletes card structure */
.campaigns-listing-section .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Campaign Progress Wrap with Background */
.campaign-card .progress-wrap.campaign-progress-wrap {
  margin-top: 12px;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px;
}

.campaign-card .progress-wrap.campaign-progress-wrap .progress-text {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 13px !important;
  margin-bottom: 6px !important;
  flex-direction: row !important;
}

.campaign-card .progress-wrap.campaign-progress-wrap .progress-text > div {
  display: block !important;
}

.campaign-card .progress-wrap.campaign-progress-wrap .progress-raised {
  color: #3b82f6 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.campaign-card .progress-wrap.campaign-progress-wrap .progress-percent {
  color: #3b82f6 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.campaign-card .progress-wrap.campaign-progress-wrap .bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  margin-top: 6px;
  overflow: hidden;
  width: 100%;
}

.campaign-card .progress-wrap.campaign-progress-wrap .fill {
  height: 100%;
  background: #8b5cf6;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.campaign-card .progress-wrap.campaign-progress-wrap .goal {
  font-size: 13px;
  color: #374151;
  text-align: left;
  margin-top: 6px;
}

/* Campaign Actions Inline */
.campaign-actions-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-view-campaign-inline {
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-view-campaign-inline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-contribute-inline {
  padding: 0.5rem 1rem;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-contribute-inline:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

/* Campaign Card Specific Adjustments */
.campaigns-listing-section .card.campaign-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.campaigns-listing-section .card.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.campaigns-listing-section .card-img-sec {
  position: relative;
}

.campaigns-listing-section .card-img-banner.campaign-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.campaigns-listing-section .campaign-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.campaigns-listing-section .card.campaign-card:hover .campaign-banner img {
  transform: scale(1.05);
}

/* Days Left Badge (Top Left Overlay) */
.campaign-days-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.campaign-badge-blue {
  background: rgba(59, 130, 246, 0.9);
}

.campaign-badge-purple {
  background: rgba(139, 92, 246, 0.9);
}

.campaign-badge-orange {
  background: rgba(249, 115, 22, 0.9);
}

.campaign-badge-red {
  background: rgba(239, 68, 68, 0.9);
}

.campaign-days-badge .badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Author Overlay (Bottom Left) */
.campaign-author-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.campaign-author-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #f3f4f6;
}

.campaign-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campaign-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.campaign-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.campaign-author-sport {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.campaign-author-sport .sport-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Campaign Card Body */
.campaign-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.campaign-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.campaign-card-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.campaign-card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.campaign-card-location .location-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #FF972B;
}

/* Campaign Card Actions */
.campaign-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.campaign-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.campaign-card-actions .btn-view-campaign-inline,
.campaign-card-actions .btn-contribute-inline {
  flex: 1;
  width: 50%;
  min-width: 0;
  text-align: center;
}

/* Campaigns Grid - Old styles kept for reference but not used */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Campaign Card */
.campaign-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.campaign-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.campaign-card:hover .campaign-card-image img {
  transform: scale(1.05);
}

.time-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 1;
}

.time-badge-blue {
  background: #3b82f6;
}

.time-badge-purple {
  background: #8b5cf6;
}

.time-badge-orange {
  background: #f59e0b;
}

.time-badge-red {
  background: #ef4444;
}

/* Campaign Card Content */
.campaign-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.campaign-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.campaign-profile {
  flex-shrink: 0;
}

.profile-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.campaign-athlete-info {
  flex: 1;
  min-width: 0;
}

.athlete-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.athlete-sport {
  font-size: 0.75rem;
  color: #6b7280;
}

.campaign-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.campaign-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.campaign-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.campaign-location i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Campaign Funding */
.campaign-funding {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funding-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funding-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.funding-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.funding-progress {
  width: 100%;
}

.progress-bar-campaign-card {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-fill-campaign-card {
  height: 100%;
  background: #8b5cf6;
  border-radius: 0.5rem;
  transition: width 0.3s ease;
}

.funding-goal {
  font-size: 0.875rem;
  color: #6b7280;
}

.funding-goal strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Campaign Actions */
.campaign-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-view-campaign {
  flex: 1;
  padding: 0.625rem 1rem;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view-campaign:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-contribute {
  flex: 1;
  padding: 0.625rem 1rem;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-contribute:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

/* No Campaigns */
.no-campaigns {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* Pagination */
.campaigns-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .campaigns-listing-section .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .campaigns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .campaigns-public-header {
    padding: 2rem 0 1.5rem;
  }
  
  .campaigns-public-title {
    font-size: 2rem;
  }
  
  .campaigns-public-subtitle {
    font-size: 1rem;
  }
  
  .campaigns-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .campaigns-listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .sort-wrapper {
    width: 100%;
  }
  
  .sort-select {
    width: 100%;
  }
  
  .campaign-actions {
    flex-direction: column;
  }
  
  .btn-view-campaign,
  .btn-contribute {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .campaigns-public-title {
    font-size: 1.75rem;
  }
  
  .campaigns-listing-title {
    font-size: 1.25rem;
  }
}

/* ====================================
   CAMPAIGN SHOW PAGE STYLES
   ====================================*/

.campaign-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Breadcrumbs */
.campaign-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.campaign-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.campaign-breadcrumbs a:hover {
  color: #3b82f6;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

/* Campaign Header */
.campaign-header {
  margin-bottom: 2rem;
}

.campaign-status-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: #10b981;
  color: #ffffff;
}

.days-left {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.campaign-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

/* Campaign Layout */
.campaign-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

.campaign-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Campaign Info Card */
.campaign-info-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.athlete-profile-section {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.athlete-image-wrapper {
  flex-shrink: 0;
}

.athlete-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.athlete-details {
  flex: 1;
}

.athlete-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.athlete-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.athlete-achievements {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.achievement-badge {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.campaign-meta-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

.meta-icon {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

/* Section Title */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

/* Campaign Progress Section */
.campaign-progress-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.progress-bar-wrapper {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #8b5cf6;
  border-radius: 0.5rem;
  transition: width 0.3s ease;
}

.progress-amounts {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goal-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f97316;
}

.remaining-amount {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Campaign Story Section */
.campaign-story-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.story-content {
  line-height: 1.6;
}

.story-text {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 1rem 0;
}

.read-more-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.read-more-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Gallery Section */
.campaign-gallery-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f3f4f6;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contributors Section */
.contributors-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.contributors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contributor-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.contributor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contributor-info {
  flex: 1;
  min-width: 0;
}

.contributor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.contributor-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.contributor-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
}

/* Updates Section */
.updates-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.update-indicator {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.update-indicator-blue {
  background: #3b82f6;
}

.update-indicator-green {
  background: #10b981;
}

.update-content {
  flex: 1;
}

.update-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.update-time {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.update-description {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

/* Comments Section */
.comments-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-item {
  display: flex;
  gap: 1rem;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.comment-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.comment-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

.comment-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff7ed;
  border-radius: 0.5rem;
  border: 1px solid #fed7aa;
}

.cta-text {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.btn-login-comment {
  padding: 0.5rem 1rem;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-login-comment:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
  color: #ffffff;
}

/* Sidebar */
.campaign-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
}

/* Contribute Form */
.contribute-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-amount-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-amount-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  font-weight: 600;
  z-index: 1;
}

.amount-input {
  width: 100%;
  padding: 0.75rem 4rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.amount-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.amount-controls {
  position: absolute;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.amount-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.625rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.amount-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preset-btn {
  padding: 0.75rem;
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.preset-btn.active {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
}

.btn-proceed-payment {
  width: 100%;
  padding: 0.875rem;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-proceed-payment:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Countdown Timer */
.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-value {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.countdown-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
}

/* Share Buttons */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.share-btn {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn i {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.share-facebook {
  background: #1877f2;
}

.share-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

.share-twitter {
  background: #1da1f2;
}

.share-twitter:hover {
  background: #1a91da;
  transform: translateY(-2px);
}

.share-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-instagram:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.share-link {
  background: #6b7280;
}

.share-link:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .campaign-layout {
    grid-template-columns: 1fr;
  }
  
  .campaign-sidebar {
    order: -1;
  }
  
  .campaign-meta-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .campaign-title {
    font-size: 1.5rem;
  }
  
  .athlete-profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .preset-amounts {
    grid-template-columns: 1fr;
  }
  
  .countdown-timer {
    justify-content: space-around;
  }
  
  .share-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comment-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .btn-login-comment {
    width: 100%;
    text-align: center;
  }
}

.select2-container .select2-selection--single{height:53px !important;}
.select2-container--default .select2-selection--single .select2-selection__clear{height: 50px !important;}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:48px !important;}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:52px !important;}
.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color: #333 !important; border-color: #000 !important; color: #fff !important;}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display{color: #fff !important;}
.select2-container--default .select2-selection--multiple{ padding: 5px !important; }
.iti--allow-dropdown .iti__flag-container, .iti--separate-dial-code .iti__flag-container{left: 4px !important;}
.iti--separate-dial-code .iti__selected-flag{background-color: #fff !important;}