
/* Brand Colors */
:root {
  --primary-magenta: #E85AA1;
  --soft-purple: #9B7CB8;
  --peachy-pink: #F4A6A6;
  --light-blue: #A8C5E8;
  --deep-purple: #A6518B;
  --slate-blue: #6B7DB3;
  --warm-beige: #C4A882;
  --heart-pink: #B85394;
  --white: #FFFFFF;
  --light-cream: #F8F6F3;
  --black: #000000;
  --pronouns-blue: #1451a0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibility improvements */
:focus {
  outline: 3px solid #E85AA1;
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #E85AA1;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* ===================================================================================
   PROFILE PAGE STYLES
   =================================================================================== */

/* Profile Form Layout */
.profile-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100%;
}

/* Section Headers */
.section-header {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.small-save-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.small-save-btn:hover {
  background: var(--white);
  color: var(--primary-magenta);
  border-color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.small-save-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dating Header - Locked State */
.dating-header-locked {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
  border: 2px solid var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dating-header-locked:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--light-blue);
}

.dating-header-locked:active {
  transform: scale(0.98);
}

/* Dating Header - Unlocked State */
.dating-header-unlocked {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
  color: var(--white);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  position: relative;
  border: none;
  box-shadow: none;
  cursor: default;
}

/* Dating Section */
.dating-section {
  border: 2px dashed var(--light-blue);
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-radius: 8px;
  background: var(--light-cream);
  margin: 2rem auto;
  max-width: 1000px;
}

/* Field Groups - Tightened Spacing */
.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  margin-bottom: 0.05rem;
  font-weight: 600;
  color: var(--deep-purple);
  font-size: 0.95rem;
}

/* Form Inputs - Enhanced Styling */
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-blue);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: var(--white);
  color: var(--black);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--primary-magenta);
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
  transform: translateY(-1px);
}

/* Enhanced Dropdown Styling */
.field-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.field-group select:hover {
  border-color: var(--soft-purple);
  background-color: var(--light-cream);
}

.field-group select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23E85AA1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Multi-select Dropdowns - Tag-Based Style */
.profile-form .field-group select[multiple] {
  display: none; /* Hide the original select */
}

/* Tag-based container */
.tag-select-container {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--light-blue);
  border-radius: 6px;
  background: var(--white);
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.tag-select-container:hover {
  border-color: var(--soft-purple);
}

.tag-select-container:focus-within {
  border-color: var(--primary-magenta);
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
  outline: none;
}

/* Individual tags */
.tag-select-tag {
  background: var(--primary-magenta);
  color: var(--white);
  padding: 0.2rem 0.25rem;
  border-radius: 4px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-select-tag:hover {
  background: var(--deep-purple);
  transform: translateY(-1px);
}

.tag-select-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.1rem;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.tag-select-remove:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown arrow */
.tag-select-arrow {
  margin-left: auto;
  color: black;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  padding: 0.25rem;
}

.tag-select-arrow.expanded {
  transform: rotate(180deg);
}

/* Dropdown menu */
.tag-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--light-blue);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-select-dropdown.show {
  display: block;
}

/* Dropdown options */
.tag-select-option {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.tag-select-option:hover {
  background-color: var(--light-cream);
  color: var(--deep-purple);
}

.tag-select-option.selected {
  background-color: var(--primary-magenta);
  color: var(--white);
  font-weight: 600;
}

.tag-select-option:last-child {
  border-bottom: none;
}

/* Multi-select Visual Indicators */
.multi-select-indicator {
  font-size: 0.85rem;
  color: var(--slate-blue);
  font-weight: 500;
  font-style: italic;
}

.multi-select-helper {
  font-size: 0.8rem;
  color: black;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-style: italic;
  padding: 0;
  background-color: var(--light-cream);
  border-radius: 4px;
}

/* Location Autocomplete Styles */
.location-autocomplete-container {
  position: relative;
  width: 100%;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--primary-magenta);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-suggestion {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: var(--black);
  transition: background-color 0.2s ease;
}

.location-suggestion:hover {
  background-color: var(--light-cream);
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-magenta);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.location-tag span:first-child {
  margin-right: 0.25rem;
}

.location-tag .remove-tag {
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.location-tag .remove-tag:hover {
  opacity: 1;
}

/* Multi-select Option Styling */
.profile-form .field-group select[multiple] option {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-form .field-group select[multiple] option:hover {
  background-color: var(--light-cream);
  color: var(--deep-purple);
}

.profile-form .field-group select[multiple] option:checked {
  background-color: var(--primary-magenta);
  color: var(--white);
  font-weight: 600;
}

.profile-form .field-group select[multiple] option:focus {
  background-color: var(--soft-purple);
  color: var(--white);
  outline: none;
}

/* Textarea Styling */
.field-group textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.form-row-kink {
  grid-template-columns: 12% 1fr;
}

.form-row-kink .field-group:first-child {
  flex: 0 0 12% !important;
  min-width: 0;
  margin-right: 1rem;
}

.form-row-kink .field-group:last-child {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Field Explanations */
.field-explanation {
  font-size: 1rem;
  color: var(--pronouns-blue);
  margin-top: 0.25rem;
  font-style: italic;
}

.form-help-box {
  background: rgba(168, 197, 232, 0.15);
  border-left: 3px solid var(--light-blue);
  padding: 1rem 1.5rem;
  margin: 1rem 0 1.5rem 0;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--slate-blue);
  line-height: 1.6;
}

.required-star {
  color: var(--primary-magenta);
  font-weight: bold;
}

.basic-profile-save {
  text-align: center;
  margin: 10px 0;
}

.basic-profile-save-hint {
  margin-top: 10px;
  color: var(--slate-blue);
  font-size: 14px;
}

.basic-profile-view-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.basic-profile-view-link a {
  color: var(--pronouns-blue);
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
}

.basic-profile-view-link a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.form-actions-save-block {
  margin-bottom: 1rem;
}

.form-actions-save-block .field-explanation {
  margin-top: 0.35rem;
  margin-bottom: 0;
  text-align: center;
}

.self-describe-input {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border-radius: 4px;
  border: 1.5px solid #667eea;
  background: #f8f9ff;
  color: #333;
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

/* Dating Profile Visibility Toggle */
.dating-visibility-toggle {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dating-visibility-toggle .field-group {
    max-width: 100%;
}

.dating-visibility-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 8px;
}

.dating-visibility-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2196f3;
}

.dating-visibility-toggle label > span {
    font-weight: bold;
}

.dating-visibility-toggle .help-text {
    margin-top: 8px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

#datingProfileHiddenMessage {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #fff;
}

#datingProfileHiddenMessage strong {
    display: block;
    margin-bottom: 5px;
    color: #ffc107;
}

#datingProfileHiddenMessage p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Dating Field States */
.dating-field-disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
  border-color: #ddd;
}

/* Disabled tag-select-container styling */
.tag-select-container.dating-field-disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
  cursor: not-allowed;
  pointer-events: none;
}

.tag-select-container.dating-field-disabled .tag-select-arrow {
  color: #999;
}

.dating-field-enabled {
  opacity: 1;
  background-color: var(--white);
  color: var(--black);
  cursor: text;
  border-color: var(--light-blue);
}

/* Access Dating Button */
.access-dating-button {
  background: linear-gradient(135deg, var(--soft-purple) 0%, var(--deep-purple) 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.access-dating-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.access-dating-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Actions */
.form-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-blue);
}

/* Status Messages */
.coming-soon {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 0.75rem 0;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--deep-purple);
  margin-bottom: 1rem;
}

.modal-message {
  font-size: 1rem;
  color: var(--slate-blue);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Crop photo modal (Cropper.js) */
.crop-modal-overlay {
  display: none;
  justify-content: center;
  align-items: center;
}

.crop-modal-content {
  max-width: 90vw;
  width: 640px;
}

.crop-modal-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--deep-purple);
  margin-bottom: 0.5rem;
}

.crop-modal-hint {
  font-size: 0.9rem;
  color: var(--slate-blue);
  margin-bottom: 1rem;
}

.crop-modal-image-wrap {
  width: 100%;
  max-height: 70vh;
  min-height: 300px;
  margin-bottom: 1rem;
  background: #111;
}

.crop-modal-image-wrap img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.crop-size-error {
  color: #c62828;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.crop-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.welcome-gift-msg {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-magenta);
}

.dating-paywall-note {
  font-size: 0.9rem;
  font-style: italic;
}

.dating-paywall-simulate {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.dating-paywall-simulate a {
  color: var(--slate-blue);
  text-decoration: none;
}

.dating-paywall-simulate a:hover {
  text-decoration: underline;
}

.dating-paywall-simulate-btn {
  background: none;
  border: none;
  color: var(--slate-blue);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: none;
}

.dating-paywall-simulate-btn:hover {
  text-decoration: underline;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.modal-btn-forums {
  background: linear-gradient(135deg, var(--soft-purple) 0%, var(--deep-purple) 100%);
  color: var(--white);
}

.modal-btn-forums:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-btn-profile {
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--soft-purple) 100%);
  color: var(--white);
}

.modal-btn-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-btn-dating {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
  color: var(--white);
}

.modal-btn-dating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-btn-secondary {
  background: var(--light-cream);
  color: var(--slate-blue);
  border: 2px solid var(--slate-blue);
}

.modal-btn-secondary:hover {
  background: var(--white);
  border-color: var(--deep-purple);
  color: var(--deep-purple);
}

/* Required Field Indicators */
.field-group label[for]:after {
  content: '';
}

.field-group label[for*="required"]:after,
.field-group input[required] + label:after,
.field-group select[required] + label:after {
  content: ' *';
  color: var(--primary-magenta);
  font-weight: bold;
}

/* Form Validation States */
.field-group input:invalid,
.field-group select:invalid,
.field-group textarea:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-group input:valid,
.field-group select:valid,
.field-group textarea:valid {
  border-color: #27ae60;
}

/* Loading States */
.field-group input:disabled,
.field-group select:disabled,
.field-group textarea:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

/* Success Message Styling */
.status-indicator {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

/* Error Message Styling */
.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .profile-section {
    padding: 1rem;
  }
  
  .profile-form {
    padding: 1.5rem;
  }
  
  .section-header {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }
  
  .access-dating-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-btn {
    min-width: auto;
  }
  
  /* Multi-select responsive adjustments */
  .multi-select-indicator {
    font-size: 0.75rem;
  }
  
  .multi-select-helper {
    font-size: 0.7rem;
    padding: 0;
    margin-top: 0.02rem;
  }
  
  /* Tag-based responsive adjustments */
  .tag-select-container {
    min-height: 44px;
    padding: 0.4rem;
    gap: 0.2rem;
  }
  
  .tag-select-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .tag-select-arrow {
    font-size: 0.8rem;
    padding: 0.2rem;
  }
  
  .tag-select-dropdown {
    max-height: 150px;
  }
  
  .tag-select-option {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .multi-select-helper {
    font-size: 0.7rem;
    padding: 0;
    margin-top: 0.02rem;
  }
}

/* Accessibility Improvements */
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--primary-magenta);
  outline-offset: 2px;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  .field-group input,
  .field-group select,
  .field-group textarea {
    border-width: 3px;
  }
  
  .section-header {
    border: 2px solid var(--white);
  }
}

/* ===================================================================================
   PROFILE VIEW STYLES
   =================================================================================== */

/* Profile Page Header */
.profile-page-header {
  padding: 0;
  margin: 0 0 1rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-page-title {
  color: var(--deep-purple);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem 0;
  padding: 0;
  border: 0;
}

.blue-helper-text {
  color: var(--slate-blue);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
}

/* Header Edit Button */
.edit-profile-header-btn {
  background: var(--primary-magenta);
  color: var(--white);
  border: none;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  margin-bottom: 1rem;
  height: 3rem;
  font-size: 1.5rem;
}

.edit-profile-header-btn:hover {
  background: var(--deep-purple);
  transform: translateY(-1px);
}

.edit-profile-header-btn:focus {
  outline: 2px solid var(--primary-magenta);
  outline-offset: 2px;
}

/* Header Save Button */
.save-profile-header-btn {
  background: var(--primary-magenta);
  color: var(--white);
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 1.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.save-profile-header-btn:hover {
  background: var(--deep-purple);
  transform: translateY(-1px);
}

.save-profile-header-btn:focus {
  outline: 2px solid var(--primary-magenta);
  outline-offset: 2px;
}


.profile-view-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.profile-view-header {
  position: relative;
  min-height: 85px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.profile-view-header-thumb {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.profile-view-header-text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 0;
}

.profile-view-name {
  color: var(--deep-purple);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.profile-view-pronouns {
  color: var(--pronouns-blue);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 0 0;
  text-align: center;
}

/* Profile Fields Container */
.profile-fields-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Profile Field Styling */
.profile-field {
  padding: 0.75rem;
  background: var(--light-cream);
  border-radius: 6px;
  border: 1px solid var(--light-blue);
  border-left: 2px solid var(--soft-purple);
  transition: all 0.2s ease;
}

.profile-field-full-width {
  grid-column: 1 / -1;
}

.profile-field:hover {
  border-color: var(--soft-purple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-field-label {
  font-weight: 600;
  color: var(--deep-purple);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-field-value {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.4;
}

.profile-bio-value .profile-bio-paragraph {
  margin: 0 0 1rem 0;
}

.profile-bio-value .profile-bio-paragraph:last-child {
  margin-bottom: 0;
}

.profile-field-about-me .profile-field-label {
  margin-bottom: 1rem;
}

.age-inline {
  color: var(--slate-blue);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Tag Display for Multi-Select Fields */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-tag {
  background: var(--primary-magenta);
  color: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Bio Section */
.profile-bio {
  background: var(--light-cream);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--light-blue);
  border-left: 2px solid var(--soft-purple);
}

.profile-bio h3 {
  color: var(--deep-purple);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-bio h3::before {
  content: '💬';
  font-size: 1rem;
}

.profile-bio-content {
  color: var(--black);
  line-height: 1.6;
  font-size: 1rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--light-blue);
}

/* Action Buttons */
.profile-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light-cream);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary,
.profile-actions .btn-favorite {
  margin: 0;
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  flex: 1 1 7rem;
  text-align: center;
  min-width: 7rem;
  box-sizing: border-box;
}

/* Message button: icon and "Message" on two lines, slightly wider */
.profile-actions .btn-primary.message-btn,
.profile-actions .btn-secondary.message-btn {
  min-width: 8rem;
  flex: 1 1 8rem;
  padding: 0.4rem 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.profile-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
  color: var(--white);
  border: none;
}

.profile-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 90, 161, 0.3);
}

.profile-actions .btn-secondary {
  background: var(--white);
  color: var(--deep-purple);
  border: 2px solid var(--deep-purple);
}

.profile-actions .btn-secondary:hover {
  background: var(--deep-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.profile-actions .btn-favorite {
  background: var(--white);
  color: var(--heart-pink);
  border: 2px solid var(--heart-pink);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  min-width: 7.5rem;
  flex: 1.15 1 7.5rem;
}

.profile-actions .btn-favorite .heart-icon {
  font-size: 1.4em;
  line-height: 1;
  display: inline-block;
  filter: brightness(0.75);
  margin-bottom: -0.6em;
}

.profile-actions .btn-favorite:hover {
  background: var(--heart-pink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 90, 161, 0.3);
}

.profile-actions .btn-favorite.favorited {
  background: var(--heart-pink);
  color: var(--white);
  border-color: var(--heart-pink);
}

.profile-actions .btn-favorite.favorited:hover {
  background: var(--primary-magenta);
  border-color: var(--primary-magenta);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 90, 161, 0.4);
}

/* Responsive Design - view_profile.html */
@media (max-width: 768px) {
  .profile-view-card {
    padding: 1.5rem;
  }

  .profile-view-header {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .profile-view-header-text {
    position: static;
    text-align: center;
  }

  .profile-view-header-thumb {
    width: 70px;
    height: 70px;
  }
  
  .profile-page-title {
    font-size: 2rem;
  }
  
  .profile-view-name {
    font-size: 1.5rem;
  }

  .profile-view-pronouns {
    font-size: 1rem;
  }
  
  .profile-fields-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-actions .btn-primary,
  .profile-actions .btn-secondary,
  .profile-actions .btn-favorite {
    width: 100%;
    margin: 0.25rem 0;
    flex: none;
  }
}

/* Phone (view_profile + shared) */
@media (max-width: 480px) {
  .profile-section {
    padding: 0.75rem;
    margin: 1rem auto;
    overflow-x: hidden;
  }

  .profile-form {
    padding: 1rem;
  }

  .form-help-box {
    padding: 0;
    margin: 1rem 0 1rem 0;
  }

  .profile-form .form-row {
    gap: 0 !important;
  }

  .profile-section h1 {
    margin-bottom: 0;
  }

  .section-header {
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .section-header .small-save-btn {
    position: static;
    transform: none;
  }

  .profile-view-card {
    padding: 1rem;
  }

  .profile-page-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .profile-view-header-thumb {
    width: 56px;
    height: 56px;
  }

  .profile-page-title {
    font-size: 1.5rem;
  }

  .profile-view-name {
    font-size: 1.35rem;
  }

  .profile-fields-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary,
  .profile-actions .btn-favorite {
    min-height: 44px;
  }

  .profile-main-photo {
    max-width: 280px;
    max-height: 280px;
  }

  .profile-photo-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    max-width: 100%;
  }

  .profile-photo-thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-magenta: #D63384;
    --soft-purple: #8B5A96;
    --peachy-pink: #E85A5A;
    --light-blue: #5A8BC5;
    --deep-purple: #8B2D6B;
    --slate-blue: #4A5B93;
    --warm-beige: #A48A62;
    --heart-pink: #A82D74;
  }
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #E85AA1, #9B7CB8, #A8C5E8);
  min-height: 100vh;
  color: #000000;
  position: relative;
  overflow-x: hidden;
}

/* Geometric background shapes inspired by the image */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 40%, rgba(244, 166, 166, 0.3) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 30%, rgba(168, 197, 232, 0.4) 40%, transparent 70%);
  z-index: -1;
}

/* Header */
header {
  background: transparent;
  padding: 1rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Main Navigation Styles */
.main-nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60px;
    gap: 1rem;
    width: 100%;
}

/* Logo Section */
.nav-logo {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: auto;
    max-height: 55px;
    width: auto;
    transition: transform 0.2s ease;
}

.nav-logo a:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(166, 81, 139, 0.1);
    color: var(--deep-purple);
}

.nav-link.active {
    font-weight: bold;
    color: var(--deep-purple);
    background: rgba(166, 81, 139, 0.15);
}

.nav-link:active {
    transform: translateY(1px);
}

/* User Section */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.user-name {
    color: var(--deep-purple);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.logout-btn, .login-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-width: 70px;
    background: var(--deep-purple);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logout-btn:hover, .login-btn:hover {
    background: #8B4A7A;
    transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--deep-purple);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
}

.hamburger:hover {
    background: rgba(166, 81, 139, 0.1);
}

/* Mobile Responsive Design - hamburger at 820px and below */
@media (max-width: 820px) {
    .main-nav {
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    .nav-container {
        padding: 0;
        min-height: 55px;
        gap: 0.5rem;
        justify-content: flex-start;
        margin: 0;
    }
    
    .nav-logo img {
        max-height: 45px;
    }
    
    .nav-logo {
        margin-right: 0.5rem;
    }
    
    /* Hide desktop nav links on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid #ddd;
        flex-direction: column;
        z-index: 1001;
    }
    
    .nav-links.nav-open {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem;
        border-radius: 6px;
        text-align: center;
        font-size: 1rem;
        width: 100%;
    }
    
    .nav-link:hover {
        background: rgba(166, 81, 139, 0.1);
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: block;
        top: 0.75rem;
        right: 0.5rem;
        z-index: 1002;
    }
    
    .hamburger.hamburger-open {
        background: rgba(166, 81, 139, 0.1);
    }
    
    /* Mobile user section - position next to hamburger */
    .nav-user {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-left: auto;
        order: 1;
        position: absolute;
        right: 3.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logout-btn, .login-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .user-name {
        text-align: left;
        font-size: 0.75rem;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Small phones - make logout button even smaller */
@media (max-width: 480px) {
    .logout-btn, .login-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        min-width: 45px;
    }
    
    .user-name {
        font-size: 0.9rem;
        max-width: 90px;
    }
}

/* Tablet Responsive Design - above 820px so hamburger nav can show user name at 820 */
@media (min-width: 821px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 0.5rem 0 0.5rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .nav-logo {
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex: 1;
        justify-content: flex-start;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }
    
    .nav-user {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .nav-user .user-name {
        display: none; /* Hide user name on tablets to save space */
    }
    
    .logout-btn, .login-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        min-width: 42px;
    }
}

/* Small Desktop Responsive Design */
@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-container {
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1025px) {
    .nav-content {
        padding: 0 3rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
}

/* Animation for mobile menu */
.nav-links {
    transition: all 0.3s ease;
}

/* Smooth transitions for responsive changes */
.nav-container {
    transition: gap 0.2s ease;
}

.nav-link {
    transition: all 0.2s ease, padding 0.1s ease;
}

.logout-btn, .login-btn {
    transition: all 0.2s ease, padding 0.1s ease, min-width 0.1s ease;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility */
.nav-link:focus,
.hamburger-menu:focus,
.nav-btn:focus,
.hamburger:focus,
.logout-btn:focus,
.login-btn:focus,
.nav-logo a:focus {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

/* Active state for current page */
.nav-link.active {
    background: rgba(166, 81, 139, 0.15);
    color: var(--deep-purple);
    font-weight: bold;
}

/* Smooth transitions */
.main-nav * {
    transition: all 0.2s ease;
}

/* Community Agreements Page Styles */
.community-agreements-content h2 {
  text-align: center;
}

.community-agreements-content h4 {
  margin-top: 20px;
}

/* New Community Agreements Styles */
.agreement-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 4px solid var(--primary-magenta);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agreement-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.agreement-title {
  color: var(--deep-purple);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: left;
}

.agreement-description {
  color: var(--slate-blue);
  font-size: 1.1rem;
  font-weight: 500;
}

.agreement-section:first-child .agreement-description {
  margin-bottom: 1rem;
}

.agreement-list {
  list-style: none;
  padding-left: 0;
}

.agreement-list li {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.agreement-list li::before {
  content: "•";
  color: var(--primary-magenta);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.content-warning-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(244, 166, 166, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--peachy-pink);
}

.warning-category {
  color: var(--deep-purple);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.password-section {
  background: rgba(168, 197, 232, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--light-blue);
  margin-bottom: 2rem;
}

.password-title {
  color: var(--deep-purple);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.password-instruction {
  color: var(--slate-blue);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}



/* Scroll to Verification Button */
.scroll-to-verification {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-scroll-to-verification {
  background: linear-gradient(135deg, var(--primary-magenta), var(--soft-purple));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 90, 161, 0.3);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

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

.btn-scroll-to-verification:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 90, 161, 0.4);
  background: linear-gradient(135deg, var(--deep-purple), var(--slate-blue));
}

.btn-scroll-to-verification:hover::before {
  left: 100%;
}

.btn-scroll-to-verification:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(232, 90, 161, 0.3);
}

.btn-scroll-to-verification:focus {
  outline: 3px solid var(--primary-magenta);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary {
  background: #E85AA1;
  color: #FFFFFF;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 90, 161, 0.3);
}

.btn-primary:hover {
  background: #A6518B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 81, 139, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #A6518B;
  border: 2px solid #A6518B;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Small phones - reduce .btn-secondary padding */
@media (max-width: 480px) {
  .btn-secondary {
    padding: 0.5rem 1rem;
  }
}

.btn-secondary:hover {
  background: #A6518B;
  color: #FFFFFF;
}

/* Forums page: tighter padding on secondary buttons */
.forums-page .btn-secondary {
  padding: .4rem .5rem;
}

.btn-blue {
  background: #2196f3;
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-blue:hover {
  background: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Messages page */
.messages-intro {
  color: black;
}

.conversations-header h2 {
  margin: 0 0 10px 0;
  color: var(--deep-purple, #4a148c);
  font-size: 1.2rem;
}

.conversations-header .btn-blue {
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 1rem 2rem 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: 200px;
  width: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #497bbd;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-style: italic;
  font-weight: normal;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.4;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: left;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-subtitle2 {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

/* Subtitle on one line on larger screens; allow wrap on small */
@media (min-width: 768px) {
  .hero-subtitle2 {
    white-space: nowrap;
  }
}

.hero-message {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.5;
  text-align: center;
}

.hero-message-spaced {
  line-height: 1.9;
}

.hero-quote {
  color: #497bbd;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-size: 1.3rem;
}

.safety-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #E85AA1;
  margin: 2rem 0;
}

.safety-info h2 {
  color: var(--deep-purple);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.safety-info p {
  color: #FFFFFF;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  flex: 0 0 auto;
  min-width: 0;
}

/* index.html only: .btn-primary sizing */
body.landing-page .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
}

/* Current Groups Section */
.current-groups {
  background: rgba(255, 255, 255, 0.95);
  margin: 3rem auto;
  padding: 3rem 2rem;
  max-width: 1000px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.current-groups h2 {
  color: #A6518B;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.current-groups > p {
  text-align: center;
  color: #6B7DB3;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.groups-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.group-item {
  background: linear-gradient(135deg, #F8F6F3, #FFFFFF);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #E85AA1;
  transition: transform 0.3s ease;
}

.group-item:hover {
  transform: translateY(-5px);
}

.group-item h3 {
  color: #A6518B;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.group-item p {
  color: #6B7DB3;
  line-height: 1.5;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-link {
  color: #E85AA1;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #F4A6A6;
  text-decoration: underline;
}

.footer-text {
  color: #A8C5E8;
  font-size: 0.9rem;
}

/* Checkbox Styles for Age Confirmation */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  accent-color: #A6518B;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label:hover input[type="checkbox"] {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Modal Styles - Simple and Working */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: white;
  margin: 6% auto 4% auto;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content .btn-primary {
  margin-top: 1rem;
}

.modal-content .form-link {
  margin-top: 0.75rem;
}

.signup-email-helper {
  color: var(--slate-blue);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.35rem 0 0 0;
  line-height: 1.3;
}

/* Forums: on larger screens, drop fixed 400px so modals (view post, reply, edit) can be wider */
@media (min-width: 769px) {
  .forums-page .modal-content {
    width: 90%;
    max-width: 600px;
  }
}

/* Forums: don’t force full width on modal primary buttons */
.forums-page .modal .btn-primary {
  width: auto;
}

.replies-section {
  margin: 20px 0;
  padding: 20px 0 0;
  border-top: 1px solid #eee;
}

.replies-section h3 {
  margin-bottom: 15px;
  color: #333;
}

/* Forum category help (admin): help link next to Edit column (helper style) */
.forum-category-help-link {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  color: var(--slate-blue);
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
}
.forum-category-help-link:hover {
  color: var(--deep-purple);
  text-decoration: underline;
}
.forum-category-help-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.forum-category-help-close:hover {
  color: #333;
}

/* Forum list/card icons: improve visibility of emoji and text on colored circle */
.forum-icon {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  font-size: 28px !important;
}
@media (max-width: 768px) {
  .forum-icon {
    font-size: 24px !important;
  }
}
@media (max-width: 480px) {
  .forum-icon {
    font-size: 22px !important;
  }
}

@media (max-height: 820px) {
  .modal-content {
    margin: 4% auto 2% auto;
    padding: 24px;
  }

  .modal-content .form-group {
    margin-bottom: 1rem;
  }

  .modal-content .btn-primary {
    margin-top: 0.75rem;
  }

  .modal-content h2 {
    margin-bottom: 0.85rem;
  }
}

@media (max-height: 720px) {
  .modal-content {
    margin: 3% auto 1.5% auto;
    padding: 22px;
  }

  .modal-content .form-group {
    margin-bottom: 0.9rem;
  }

  .modal-content .btn-primary {
    margin-top: 0.6rem;
  }

  .modal-content .form-link {
    margin-top: 0.6rem;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.modal-content h2 {
  color: #A6518B;
  text-align: center;
  margin-bottom: 20px;
}

/* Sexually explicit content link (forums header) */
.sexually-explicit-content-link {
  color: #A6518B;
  text-decoration: none;
  font-size: 0.95rem;
}
.sexually-explicit-content-link:hover {
  text-decoration: underline;
}

/* Sexually explicit content modal: paragraph spacing */
#sexuallyExplicitModal .modal-body p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
#sexuallyExplicitModal .modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .header-buttons .sexually-explicit-content-link {
    text-align: center;
    display: block;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--deep-purple);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
  border-color: var(--primary-magenta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder {
  color: var(--slate-blue);
  opacity: 0.7;
}

.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  border-color: var(--primary-magenta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
  background: rgba(255, 255, 255, 1);
}

.modal .btn-primary {
  width: 100%;
  margin: 0 0 10px 0;
}

.form-link {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
}

.form-link a {
  color: #A6518B;
  text-decoration: none;
}

.form-link a:hover {
  text-decoration: underline;
}

/* Verification Page Styles */
.verification-logo {
  height: 60px;
  width: auto;
}

/* Logo link styling */
.logo a {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

.logo a:focus {
  outline: 2px solid #E85AA1;
  outline-offset: 4px;
  border-radius: 4px;
}

.verification-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.verification-section h1 {
  color: #A6518B;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.terms-company-name {
  font-style: italic;
  text-align: center;
  color: var(--slate-blue);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.terms-contact-email {
  font-style: italic;
  text-align: center;
  color: var(--slate-blue);
  font-size: 1rem;
  margin: 0.5rem 0 1.5rem 0;
}

.terms-contact-email a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

.terms-contact-email a:hover {
  color: var(--primary-magenta);
  text-decoration: underline;
}

.terms-contact-email a:focus {
  outline: 2px solid var(--primary-magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

.terms-contact-address {
  font-style: italic;
  text-align: center;
  color: var(--slate-blue);
  font-size: 1rem;
  margin: 0.25rem 0;
}

.terms-contact-address:last-of-type {
  margin-bottom: 1.5rem;
}

.contact-intro {
  margin-top: 1.25rem;
}

.verification-intro {
  text-align: left;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #6B7DB3;
}

.verification-form {
  max-width: 700px;
  margin: 0 auto;
}

.question-group {
  margin-bottom: 2rem;
}

.question-group label {
  display: block;
  color: #A6518B;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.question-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #C4A882;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  resize: vertical;
  min-height: 120px;
}

.question-group textarea:focus {
  border-color: #E85AA1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.status-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #6B7DB3;
}

.status-pending {
  color: #E85AA1;
  font-weight: bold;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message h1 {
  color: #A6518B;
  margin-bottom: 1rem;
}

.success-message p {
  color: #6B7DB3;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.success-actions {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-message {
    font-size: 1rem;
  }
  
  .safety-info {
    padding: 1rem;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    flex: none;
    width: 100%;
  }
  
  .btn-primary {
    margin: 0;
  }
  
  .hero-logo {
    height: 150px;
  }
  
  .current-groups {
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }
  
  .groups-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-link {
    margin: 0;
  }
  
  .modal-content {
    margin: 20% auto;
    padding: 20px;
  }
  
  .verification-section {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .verification-section h1 {
    font-size: 2rem;
  }
  
  .question-group textarea {
    min-height: 100px;
  }
  
  main {
    padding: 0 1rem;
  }
}


/* Admin Panel Styles */
.admin-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-section h1 {
  color: #A6518B;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background: #E85AA1;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1rem;
}

.tab-btn.active {
  background: #A6518B;
}

.admin-content h2 {
  color: #A6518B;
  margin-bottom: 1.5rem;
  text-align: center;
}

.user-card {
  background: white;
  border: 2px solid #C4A882;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-card h3 {
  color: #A6518B;
  margin-bottom: 1rem;
}

.responses p {
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #333;
}

.responses strong {
  color: #A6518B;
}

.admin-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.admin-actions button {
  margin: 0 0.5rem;
}

.admin-toggle-deleted-link {
  font-size: 0.875rem;
  color: #666;
}

.admin-toggle-deleted-link:hover {
  color: #A6518B;
  text-decoration: underline;
}

.btn-reject {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-reject:hover {
  background: #c82333;
}


/* Dashboard Styles */
.dashboard-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-section h1 {
  color: #A6518B;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.welcome-message {
  text-align: center;
  color: #6B7DB3;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-tabs .tab-btn {
  background: #a6518b;
  color: white;
  border: none;
  padding: 0.6rem 0.6rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dashboard-tabs .tab-btn:hover {
  background: #A6518B;
}

.dashboard-tabs .tab-btn.active {
  background: #E85AA1;
}

.tab-content {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(248, 246, 243, 0.5);
  border-radius: 10px;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  color: #A6518B;
  margin-bottom: 1rem;
}

.tab-content p {
  color: #6B7DB3;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .dashboard-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .dashboard-tabs .tab-btn {
    width: 200px;
  }
  
  .dashboard-section {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .dashboard-section h1 {
    font-size: 2rem;
  }
}



/* Profile Page Styles */
.profile-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

.profile-section h1 {
  text-align: center;
  color: var(--deep-purple);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.profile-intro {
  text-align: center;
  color: #6B7DB3;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Access Dating Features Button */
.access-dating-button {
  background: linear-gradient(135deg, var(--primary-magenta), var(--soft-purple));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 90, 161, 0.3);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  min-width: 250px;
}

.access-dating-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 90, 161, 0.4);
  background: linear-gradient(135deg, var(--deep-purple), var(--slate-blue));
}

.access-dating-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(232, 90, 161, 0.3);
}

.access-dating-button:focus {
  outline: 3px solid var(--primary-magenta);
  outline-offset: 2px;
}

.access-dating-button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.access-dating-button:disabled:hover {
  background: #ccc;
  color: #666;
  transform: none;
  box-shadow: none;
}

.coming-soon {
  text-align: center;
  color: var(--slate-blue);
  font-style: italic;
  margin-bottom: 1rem;
}

.unlocked-message {
  text-align: center;
  color: var(--primary-magenta);
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(232, 90, 161, 0.1);
  border-radius: 8px;
}

.dating-field-disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
}

.dating-field-enabled {
  opacity: 1;
  background-color: white;
}

/* Pulse animation for enabled dating button */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.form-row {
  display: flex !important;
  gap: 1rem !important;
  margin-bottom: 0.5rem !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
}

.form-row .form-group {
  flex: 1;
}

.profile-form .form-group {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: block !important;
  visibility: visible !important;
}

.profile-form label {
  display: block;
  color: #A6518B;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #C4A882;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  max-width: 100%;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: #E85AA1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
}

.profile-form textarea {
  resize: vertical;
  min-height: 80px;
}

.visibility-toggle {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visibility-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.visibility-toggle label {
  margin: 0;
  font-weight: normal;
  color: #6B7DB3;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
  width: 100%;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #6B7DB3;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
  max-width: none;
  white-space: normal;
}

/* Style for conditional textarea */
#neurodiverse-details,
#disability-details,
#covid-details {
  margin-top: 0.5rem;
  border: 2px solid #C4A882;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  resize: vertical;
  min-height: 44px;
}

/* Consistent height for form fields in the same row */
.form-row .field-group select,
.form-row .field-group textarea {
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

/* Ensure field-group has consistent spacing */
.field-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.field-group label {
  margin-bottom: 0.5rem;
  color: #A6518B;
  font-weight: bold;
  font-size: 1rem;
  height: 1.5rem;
  min-height: 1.5rem;
  max-height: 1.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  line-height: 1.2;
}

/* Override the existing profile-form styles for field-group elements */
.form-row .field-group select,
.form-row .field-group textarea {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

/* Force consistent alignment for field-group elements */
.form-row .field-group {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  align-items: stretch !important;
}

.form-row .field-group label {
  height: 1.5rem !important;
  min-height: 1.5rem !important;
  max-height: 1.5rem !important;
  margin-bottom: 0.3rem !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
}

/* Ensure form fields start at the same position */
.form-row .field-group select,
.form-row .field-group textarea,
.form-row .field-group input {
  margin-top: 0 !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

#neurodiverse-details:focus,
#disability-details:focus,
#covid-details:focus {
  border-color: #E85AA1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 90, 161, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .profile-section {
    margin: 1rem !important;
    padding: 1.5rem;
    max-width: calc(100% - 2rem);
  }
  
  .profile-section h1 {
    font-size: 2rem;
  }
  
  .verification-logo {
    height: 40px;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .checkbox-item {
    align-items: flex-start;
  }
  
  .checkbox-item label {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* Multi-select responsive styling handled above */
}

/* Multi-select styling consolidated above */

/* Search page and filters */
.search-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

.search-section h1 {
  font-size: 2.5rem;
  color: #497bbd;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-style: italic;
  font-weight: normal;
  text-align: center;
}

.search-intro {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--deep-purple);
  font-size: 1.1rem;
  font-weight: 500;
}

.search-filters {
  background: #f9f9f9;
  padding: 2rem 2rem 0 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.search-filters h2 {
  color: var(--deep-purple);
  text-align: left;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--deep-purple);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.filter-group.full-width {
  grid-column: 1 / -1;
}

.search-filters .filter-group {
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
}

.search-filters .filter-group label {
  font-weight: bold;
  color: var(--deep-purple);
  margin-bottom: 0.5rem;
}
.search-filters .help-text {
  display: block;
  margin-top: 0;
  margin-bottom: 0.7em;
  color: #333;
  font-size: 0.95em;
  font-style: italic;
}
.search-filters input[type="text"],
.search-filters .filter-group select:not([multiple]) {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border-radius: 6px;
  border: 2px solid var(--primary-magenta);
  color: var(--black);
  background: #fff;
}
.search-filters textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border-radius: 6px;
  border: 2px solid var(--primary-magenta);
  color: var(--black);
  background: #fff;
  resize: none;
  height: 5em;
  font-family: inherit;
}

.age-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.age-inputs input {
  width: 100px;
  padding: 0.75rem 0.5rem 0.75rem 0.75rem;
  font-size: 1.1rem;
  height: 48px;
  border: 2px solid var(--primary-magenta);
  border-radius: 6px;
}

.age-inputs input::-webkit-inner-spin-button,
.age-inputs input::-webkit-outer-spin-button {
  height: 24px;
  width: 24px;
  opacity: 1;
}

.location-suggestions {
  display: none;
}

.filter-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.helper-spacer {
  visibility: hidden;
}
.spacer-tiny {
  font-size: 0.1rem;
}

.about-you-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid #ff6b6b;
  margin-bottom: 2rem;
}

.section-description {
  color: #666;
  margin-bottom: 1rem;
}

.search-results {
  display: none;
  min-height: 200px;
  margin-top: 2rem;
  border-top: 2px solid var(--primary-magenta);
  padding-top: 2rem;
}
.search-results h2 {
  color: var(--deep-purple);
  margin-top: 0;
  margin-bottom: 1rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.profile-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(168,197,232,0.10);
  padding: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.profile-card .profile-header,
.profile-card .profile-info {
  cursor: pointer;
}

.profile-card .profile-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-card .profile-header-info {
  flex: 1;
}

.profile-card .profile-header h2 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.profile-card .favorite-avatar {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #2196f3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 25px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-card .pronouns {
  color: #666;
  font-style: italic;
  margin: 0 0 1rem 0;
}

.profile-card .profile-info p {
  margin: 0.5rem 0;
}

.profile-card .bio {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-style: italic;
}

.profile-card .profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  border-top: none;
  padding-top: 0;
  text-align: left;
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  flex-direction: column;
}

.filter-group {
  margin-bottom: 1rem;
}

/* Search page: regular phones and small tablets */
@media (max-width: 768px) {
  .search-section {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .search-section h1 {
    font-size: 2rem;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .filter-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-actions .btn-primary,
  .filter-actions .btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet (768px): dating page – same constraints as phone so cards don't run off */
@media (max-width: 768px) {
  .dating-section .profiles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .dating-section .profile-card {
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
  }

  /* Keep buttons in a row, compact message button height */
  .dating-section .profile-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .dating-section .profile-actions .btn-primary,
  .dating-section .profile-actions .btn-secondary,
  .dating-section .profile-actions .btn-favorite {
    width: auto;
    min-width: 0;
    flex: 1 1;
    padding: 0.25rem 0.4rem;
    font-size: 1.2rem;
  }

  .dating-section .profile-actions .btn-favorite {
    flex: 1.15 1;
  }

  .dating-section .profile-actions .btn-primary.message-btn,
  .dating-section .profile-actions .btn-secondary.message-btn {
    flex: 1.25 1;
    padding: 0.2rem 0.4rem;
    font-size: 1.2rem;
    line-height: 1.05;
    min-height: auto;
  }
}

/* Phones: profile card and action buttons */
@media (max-width: 480px) {
  .profile-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .profiles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  /* Dating page: override inline styles so cards don't run off screen, reduce padding */
  .dating-section .profiles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .dating-section .profile-card {
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
  }

  /* Keep buttons in a row, spread out */
  .profile-card .profile-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .profile-card .profile-actions .btn-primary,
  .profile-card .profile-actions .btn-secondary,
  .profile-card .profile-actions .btn-favorite {
    width: auto;
    min-width: 0;
    flex: 1 1;
    padding: 0.25rem 0.4rem;
    font-size: 1.2rem;
  }

  .profile-card .profile-actions .btn-favorite {
    flex: 1.15 1;
  }

  /* Message button: same text size, a bit wider */
  .profile-card .profile-actions .btn-primary.message-btn,
  .profile-card .profile-actions .btn-secondary.message-btn {
    flex: 1.25 1;
    padding: 0.2rem 0.4rem;
    font-size: 1.2rem;
    line-height: 1.05;
    min-height: auto;
  }
}

/* Search page: small phones */
@media (max-width: 480px) {
  .search-section {
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .search-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .search-intro {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .filter-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .search-filters .filter-group label {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
  }

  .search-filters .filter-group select:not([multiple]),
  .search-filters input[type="text"],
  .search-filters .filter-group input {
    padding: 0.625rem;
    font-size: 1rem;
    min-height: 44px;
  }

  .age-inputs {
    gap: 0.375rem;
  }

  .age-inputs input {
    width: 90px;
    padding: 0.625rem 0.375rem 0.625rem 0.625rem;
    font-size: 1rem;
    height: 44px;
  }

  .age-inputs input::-webkit-inner-spin-button,
  .age-inputs input::-webkit-outer-spin-button {
    height: 20px;
    width: 20px;
  }

  .filter-actions {
    gap: 0.5rem;
  }

  .filter-actions .btn-primary,
  .filter-actions .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .search-filters .help-text {
    font-size: 0.875rem;
  }

  #locationFilter,
  #keywordSearch {
    font-size: 1rem;
    padding: 0.625rem;
    min-height: 44px;
  }
}

/* Responsive Design for Community Agreements */
@media (max-width: 768px) {
  .verification-section {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .agreement-section {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .agreement-title {
    font-size: 1.5rem;
  }
  
  .password-section {
    padding: 1.5rem;
  }
  
  .password-title {
    font-size: 1.5rem;
  }
  
  .form-group input {
    padding: 0.875rem;
  }
  
  .btn-scroll-to-verification {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .verification-section {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .agreement-section {
    padding: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .agreement-title {
    font-size: 1.3rem;
  }
  
  .password-section {
    padding: 1rem;
  }
  
  .password-title {
    font-size: 1.3rem;
  }
  
  .verification-intro {
    font-size: 1rem;
    text-align: justify;
    line-height: 1.5;
    color: #6B7DB3;
  }
  
  .btn-scroll-to-verification {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Verified User Message Styles */
.verified-user-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.verified-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.verified-badge h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.verified-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.verified-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.verified-actions .btn-primary,
.verified-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.verified-actions .btn-primary {
    background: white;
    color: #4CAF50;
    border: 2px solid white;
}

.verified-actions .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.verified-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.verified-actions .btn-secondary:hover {
    background: white;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

/* Responsive adjustments for verified message */
@media (max-width: 768px) {
    .verified-user-message {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .verified-badge h2 {
        font-size: 1.5rem;
    }
    
    .verified-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .verified-actions .btn-primary,
    .verified-actions .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

/* Dating Unlock Button Styles */
.dating-unlock-button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 20px;
    font-weight: bold;
}

.dating-unlock-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.dating-unlock-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #ccc;
}

.dating-unlock-button.unlocked-state {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    opacity: 0.8;
    cursor: not-allowed;
}

.dating-unlock-button.unlocked-state:hover {
    transform: none;
    box-shadow: none;
}

/* Dating Field Styles */
.dating-field-disabled {
    opacity: 0.6;
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

/* Photo Upload Styles */
.photo-section {
    /* margin: 1rem 0 0 0; */
    /* padding: 0.5rem; */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* .photo-section button {
    margin-bottom: 1.5rem;
} */

/* #datingPhotosSection button {
    margin-bottom: 1.5rem;
} */

#datingPhotosButton.btn-primary {
    background: #E85AA1 !important;
    color: #FFFFFF !important;
    border: none !important;
}

#datingPhotosButton.btn-primary:hover {
    background: #A6518B !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 81, 139, 0.4);
}

#basicPhotoButton.btn-primary {
    background: #E85AA1 !important;
    color: #FFFFFF !important;
    border: none !important;
}

#basicPhotoButton.btn-primary:hover {
    background: #A6518B !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 81, 139, 0.4);
}

.section-subheader {
    font-size: 1.2rem;
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    font-weight: 600;
}

.photo-limit-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.photo-upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.photo-upload-area:hover {
    border-color: var(--primary-magenta);
    background: rgba(232, 90, 161, 0.1);
    transform: translateY(-2px);
}

.photo-upload-area.drag-over {
    border-color: var(--primary-magenta);
    background: rgba(232, 90, 161, 0.2);
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.photo-display {
    text-align: center;
    margin-bottom: 0.5rem;
}

.photo-display img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.photo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.main-photo-display {
    text-align: center;
    margin-bottom: 2rem;
}

.main-photo-display img {
    max-width: 400px;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.main-photo-label {
    color: var(--primary-magenta);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Photo Action Buttons */
.photo-action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.photo-section-help {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--pronouns-blue);
    text-align: center;
}

.photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    max-width: 100%;
}

.photo-thumbnail {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.photo-thumbnail:hover {
    transform: translateY(-2px);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumbnail-set-main {
    position: absolute;
    top: 2px;
    left: 2px;
    padding: 0;
    background: transparent;
    z-index: 2;
}

.photo-set-main-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.photo-set-main-btn:hover {
    background: #f0f0f0;
    color: #b8860b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.photo-thumbnail-actions {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    z-index: 2;
}

.photo-thumbnail-actions button {
    background: whitesmoke;
    border: none;
    color: black;
    cursor: pointer;
    padding: 0.1rem;
    /* border-radius: 4px; */
    font-size: 1.5rem;
}

.photo-thumbnail-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-delete-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.photo-delete-btn:hover {
    background: #f0f0f0;
    color: #b33;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.photo-thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-thumbnail-reorder {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    width: 150px;
}

.photo-thumbnail-reorder:empty {
    display: none;
}

.photo-reorder-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #111;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    min-width: 36px;
    min-height: 36px;
}

.photo-reorder-btn:hover {
    background: #fff;
    color: var(--primary-magenta, #E85AA1);
    border-color: rgba(0, 0, 0, 0.3);
}

.set-main-btn {
    background: var(--primary-magenta) !important;
    color: white !important;
    font-weight: 600;
}

.set-main-btn:hover {
    background: var(--deep-purple) !important;
}

/* Delete All Photos Section */
.delete-all-section {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-all-section .btn-secondary {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-all-section .btn-secondary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Disabled photo upload areas */
.photo-upload-area.dating-field-disabled {
    opacity: 0.6;
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

.photo-upload-area.dating-field-disabled:hover {
    border-color: #ddd;
    background: #f5f5f5;
    transform: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .photo-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .photo-display img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .main-photo-display img {
        max-width: 300px;
        max-height: 300px;
    }
    
    .photo-action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .photo-action-buttons button {
        width: 100%;
    }
    
    .photo-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .photo-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    .photo-thumbnail img {
        height: 100%;
    }
}

/* ===================================================================================
   VIEW PROFILE PHOTO DISPLAY STYLES
   =================================================================================== */

/* Photos Section */
.profile-photos-section {
    margin: 2rem 0;
    text-align: center;
}

.profile-photos-section h3 {
    color: var(--primary-magenta);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Main Photo Container */
.profile-main-photo-container {
    margin-bottom: 1.5rem;
}

.profile-main-photo {
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-main-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Thumbnail Grid */
.profile-photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.profile-photo-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-photo-thumbnail:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Photo Placeholder Blur-Up Effect */
.photo-placeholder {
    filter: blur(5px);
    transform: scale(1.05);
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.photo-thumbnail-loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

/* Base favorite avatar image styling */
.favorite-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Smooth transition for progressive image loading */
.favorite-avatar-img.photo-placeholder,
.profile-main-photo.photo-placeholder,
.profile-photo-thumbnail.photo-placeholder {
    filter: blur(8px);
    transform: scale(1.1);
}

.favorite-avatar-img.photo-thumbnail-loaded,
.profile-main-photo.photo-thumbnail-loaded,
.profile-photo-thumbnail.photo-thumbnail-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Clickable photo – opens full-size modal */
.photo-opens-modal {
    cursor: pointer;
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Photo rules link */
.photo-rules-link {
    color: var(--pronouns-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.photo-rules-link:hover {
    text-decoration: underline;
}

/* Basic photo section: Add Photo button, then photo rules on the next line */
.basic-photo-actions .photo-rules-link {
    display: block;
    margin-top: 0.5rem;
}

/* Photo rules modal (text card, not image) */
.photo-rules-modal .photo-modal-content {
    background: var(--white);
    color: #333;
    max-width: 480px;
    width: 90%;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}
.photo-rules-modal .photo-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    color: #333;
    background: rgba(0, 0, 0, 0.08);
}
.photo-rules-modal .photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}
.photo-rules-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}
.photo-rules-body {
    margin: 0;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-main-photo {
        max-width: 300px;
    }
    
    .profile-photo-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
        max-width: 400px;
    }
    
    .profile-photo-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    /* Keep close button on-screen on short viewports */
    .photo-modal-content {
        position: relative;
    }
    
    .photo-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
}

.dating-field-enabled {
    opacity: 1;
    background-color: white;
    color: #333;
    cursor: text;
    border: 1px solid #ddd;
}

/* Access Dating Button Styles */
.access-dating-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.access-dating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.access-dating-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.section-subtitle {
    font-size: 0.8em;
    color: white;
}

/* Save Basic Section Styles */
.save-basic-section {
    text-align: center;
    margin: 30px 0;
}

.save-basic-text {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Coming Soon Message Styles */
.coming-soon {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    font-style: italic;
}

/* Self-Describe Text Input Styles */
.self-describe-input {
    display: none;
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
    border-radius: 4px;
    border: 1.5px solid #667eea;
    background: #f8f9ff;
    color: #333;
}

.self-describe-input.show {
    display: block;
}

/* ===================================================================================
   DATING LANDING PAGE STYLES
   =================================================================================== */

.dating-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dating-option-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.dating-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-magenta);
}

.dating-option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.dating-option-card h2 {
    color: var(--deep-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dating-option-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dating-option-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dating-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 90, 161, 0.4);
}

.dating-option-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness for dating options */
@media (max-width: 768px) {
    .dating-options-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .dating-option-card {
        padding: 1.5rem;
    }
    
    .dating-option-icon {
        font-size: 2.5rem;
    }
    
    .dating-option-card h2 {
        font-size: 1.3rem;
    }
}

/* Signup Prompt Message Styles */
.signup-prompt-message {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.signup-prompt-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.signup-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.signup-prompt-badge h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.signup-prompt-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.signup-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.signup-prompt-actions .btn-primary,
.signup-prompt-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.signup-prompt-actions .btn-primary {
    background: white;
    color: #FF6B6B;
    border: 2px solid white;
}

.signup-prompt-actions .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.signup-prompt-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.signup-prompt-actions .btn-secondary:hover {
    background: white;
    color: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for signup prompt */
@media (max-width: 768px) {
    .signup-prompt-message {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .signup-prompt-badge h2 {
        font-size: 1.5rem;
    }
    
    .signup-prompt-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .signup-prompt-actions .btn-primary,
    .signup-prompt-actions .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

/* ===================================================================================
   RACE & ETHNICITY FIELD STYLING
   =================================================================================== */

/* Make neurodiverse field smaller */
.neurodiverse-field {
    flex: 0.7;
}

/* Make race & ethnicity field the same size as other fields */
.race-ethnicity-field {
    flex: 1;
}

/* In search filters, make neurodiverse smaller and race & ethnicity normal size */
.neurodiverse-filter {
    flex: 0.7;
}

.race-ethnicity-filter {
    flex: 1;
}

/* ===================================================================================
   FORUM AUTHOR NAME LINKS
   =================================================================================== */

.author-name-link {
    color: var(--primary-magenta);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.author-name-link:hover {
    color: var(--deep-purple);
    text-decoration: underline;
}

.author-name-link:focus {
    outline: 2px solid var(--primary-magenta);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Privacy Policy Page Styles */

.privacy-policy-list {
  list-style: none;  /* ← Add this to remove default bullets */
  padding-left: 0;
}

.privacy-policy-list li {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  padding-left: 1.5rem;
  position: relative;
}

.privacy-policy-list li::before {
  content: "•";
  color: var(--primary-magenta);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

h3.privacy-policy {
  color: var( --slate-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0 0.2rem 0;
}

.privacy-policy-paragraph {
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.pricing-coupon-note {
  font-size: 0.9em;
}

.pricing-scholarship-note {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--slate-blue);
}

/* Forum Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #1976d2;
}

.breadcrumb .separator {
    color: black;
    font-weight: 600;
}

.breadcrumb .current {
    color: #A6518B;
    font-weight: 600;
}

/* Forum Post Content Styles */
.post-content {
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

#viewPostContent {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.reply-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===================================================================================
   VIRTUAL GIFTS SYSTEM STYLES
   =================================================================================== */

/* Gift Modal */
.gift-modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.gift-modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gift-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--deep-purple);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.gift-modal-close:hover {
    color: var(--primary-magenta);
}

.gift-modal-content h2 {
    color: var(--deep-purple);
    margin-bottom: 1rem;
    text-align: center;
}

.gift-credit-balance {
    background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--heart-pink) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.gift-credits-buy-link {
    margin: -0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

.gift-credits-buy-link a {
    color: var(--primary-magenta);
    text-decoration: underline;
}

/* Gift Category Tabs */
.gift-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-cream);
}

.gift-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--slate-blue);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.gift-tab:hover {
    color: var(--primary-magenta);
}

.gift-tab.active {
    color: var(--primary-magenta);
    border-bottom-color: var(--primary-magenta);
    font-weight: 600;
}

/* Gift Grids */
.gift-grids {
    position: relative;
    min-height: 300px;
}

.gift-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gift-grid.active {
    display: grid;
}

.gift-item {
    background: var(--light-cream);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-item:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 161, 0.2);
}

.gift-item.selected {
    border-color: var(--primary-magenta);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(232, 90, 161, 0.3);
}

.gift-image-wrap {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-cream);
    border-radius: 6px;
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-image-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    font-size: 0.9rem;
    color: var(--deep-purple);
    text-align: center;
    word-break: break-word;
}

.gift-image-placeholder.visible {
    display: flex;
}

.gift-name {
    font-size: 0.85rem;
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gift-price {
    font-size: 0.9rem;
    color: var(--primary-magenta);
    font-weight: 700;
}

/* Gift Preview */
.gift-preview {
    background: var(--light-cream);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gift-preview-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.gift-preview-info h4 {
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
}

.gift-preview-info p {
    color: var(--slate-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gift-preview-price {
    font-size: 1.2rem;
    color: var(--primary-magenta);
    font-weight: 700;
}

/* Gift Message Section */
.gift-message-section {
    margin-bottom: 1.5rem;
}

.gift-message-section label {
    display: block;
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gift-message-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid var(--light-cream);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.gift-message-section textarea:focus {
    outline: none;
    border-color: var(--primary-magenta);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--slate-blue);
    margin-top: 0.25rem;
}

/* Gift Privacy Section */
.gift-privacy-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gift-privacy-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--deep-purple);
    cursor: pointer;
}

.gift-privacy-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Gift Send Section */
.gift-send-section {
    text-align: center;
}

.gift-send-section .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.gift-send-section .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gift Gallery */
.gift-gallery-header {
    margin: 2rem 0 1rem 0;
}

.gift-gallery-header h3 {
    color: var(--deep-purple);
    font-size: 1.5rem;
}

.gift-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.gift-gallery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--light-cream);
    border-radius: 6px;
    padding: 0.6rem;
    transition: transform 0.2s ease;
    min-width: 200px;
    max-width: 100%;
    width: fit-content;
}

.gift-gallery-item:hover {
    box-shadow: 0 2px 8px rgba(232, 90, 161, 0.15);
}

.gift-gallery-row-emoji {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 6px;
    position: relative;
}

.gift-gallery-row-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-gallery-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    font-size: 0.5rem;
    color: var(--deep-purple);
    text-align: center;
    word-break: break-word;
}

.gift-gallery-placeholder.visible {
    display: flex;
}

.gift-gallery-row-text {
    min-width: 0;
    flex: 1;
}

.gift-gallery-row-text .gift-sender {
    font-size: 0.8rem;
    color: var(--slate-blue);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.gift-gallery-row-text .gift-message {
    font-size: 0.85rem;
    color: var(--deep-purple);
    font-style: italic;
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.no-gifts {
    text-align: center;
    color: var(--slate-blue);
    padding: 2rem;
    font-style: italic;
}

/* Gift Shop page (gift-shop.html) - in style.css so they are not overwritten */
.gift-shop-blurb {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--slate-blue);
    max-width: 560px;
}

.buy-gift-credits-section {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.buy-gift-credits-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.buy-credits-blurb {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.buy-credits-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.buy-credits-btn {
    min-width: 6rem;
}

.gift-shop-image-wrap {
    height: 100px;
}
.gift-shop-image {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain;
}

.gift-shop-info p {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Donor Badge */
.donor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.donor-badge-icon {
    font-size: 1.2rem;
}

/* ===================================================================================
   ACCOUNT DELETION STYLES
   =================================================================================== */

/* Account Settings Section */
.account-settings-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.account-settings-section h2 {
    color: #A6518B;
    margin-bottom: 20px;
}

.account-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-settings-actions .btn-secondary,
.account-settings-actions .btn-danger {
    width: 100%;
    max-width: 300px;
}

.account-settings-action-desc {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Deletion status warning (scheduled deletion) */
.deletion-status-warning {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.deletion-status-warning p {
    margin: 5px 0;
}

.deletion-status-warning .deletion-status-text,
#deletion-status-text {
    color: #666;
}

.deletion-status-warning .deletion-status-cancel-btn,
.deletion-status-warning .btn-primary {
    margin-top: 10px;
}

/* Link to Account Settings (on profile page, below dating visibility) */
.account-settings-link {
    margin-top: 1rem;
}

.account-settings-link a {
    color: var(--pronouns-blue);
    font-size: 1rem;
    font-weight: 500;
}

/* Danger Button (Delete Account) */
.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-danger:active {
    background: #c62828;
}

/* Deletion Dashboard */
.deletion-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.deletion-dashboard h1 {
    color: #f44336;
    margin-bottom: 20px;
    text-align: center;
}

.deletion-info {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
}

.deletion-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f44336;
    margin: 10px 0;
}

.days-remaining {
    font-size: 1.2rem;
    color: #ffc107;
    margin: 10px 0;
    font-weight: bold;
}

.deletion-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #333;
}

.deletion-warning strong {
    color: #ffc107;
    display: block;
    margin-bottom: 5px;
}

.deletion-actions {
    margin-top: 30px;
    text-align: center;
}

.deletion-actions button {
    margin: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gift-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .gift-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .gift-category-tabs {
        flex-wrap: wrap;
    }
    
    .gift-tab {
        flex: 1;
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gift-preview {
        flex-direction: column;
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    .gift-modal-content {
        padding: 1rem;
    }
    
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gift-gallery-item {
        min-width: 140px;
    }
}

/* Message Bell Icon Styles */
.message-bell {
    position: relative;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
}

.bell-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    fill: #9B7CB8;
}

/* Bigger bell for messages page header */
.messages-section h1 .message-bell .bell-icon-header {
    width: 22px;
    height: 22px;
}

.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #A6518B;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid white;
}

/* Smaller badge for messages page header */
.messages-section h1 .message-bell .unread-badge {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    top: -6px;
    right: -6px;
}

/* Report Modal and Info Box Styles */
.info-box {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #A6518B;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    cursor: help;
}

.info-content {
    flex: 1;
}

.info-content a {
    color: #A6518B;
    text-decoration: underline;
}

.info-content a:hover {
    text-decoration: none;
}

/* Report Button Styles */
.report-message-btn,
#reportPostBtn,
#freezeThreadBtn,
#unfreezeThreadBtn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    transition: color 0.2s;
}

.report-message-btn:hover,
#freezeThreadBtn:hover,
#unfreezeThreadBtn:hover,
#reportPostBtn:hover {
    color: #A6518B;
}

/* Admin Reports Interface Styles */
.report-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.report-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-filters {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-filters label {
    font-weight: bold;
}

.admin-filters select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

/* Resolution Notes Textarea */
#resolutionNotesText_ {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-family: inherit;
    resize: vertical;
}

.unread-badge:empty {
    display: none;
}

/* Hide badge when count is 0 */
.unread-badge[data-count="0"] {
    display: none;
}

/* Empty category page: description at top, then new post button */
.empty-category-state {
    text-align: left;
    padding: 2rem 0;
}
.empty-category-description {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}
.new-post-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 11px 20px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.new-post-btn:hover {
    background: #1976d2;
}

.empty-category-state .new-post-btn {
    margin-top: 0;
}

@media (max-width: 768px) {
    .new-post-btn {
        padding: 4px 18px;
    }
}

@media (max-width: 480px) {
    .new-post-btn {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 8px 15px;
        font-size: 18px;
    }
}

/* Forums page - base layout and components */
.forums-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.forums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.forums-header h1 {
    margin: 0;
    color: #A6518B;
}

.forums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.forum-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.forum-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.forum-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #2196f3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.forum-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.forum-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.forum-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    word-wrap: break-word;
}

.forum-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.forum-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.posts-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.posts-header h2 {
    margin: 0;
}

.post-filters {
    display: flex;
    gap: 10px;
}

.post-filter {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.post-filter.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: background-color 0.2s;
}

.post-item:hover {
    background-color: #f9f9f9;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
    cursor: pointer;
}

.post-title:hover {
    color: #2196f3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2196f3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.post-preview {
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.deleted-badge {
    color: #dc3545;
    font-weight: bold;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pinned-badge {
    background: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.locked-badge {
    background: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reply-to-info {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #2196f3;
}

.reply-to-info strong {
    color: #333;
}

.reply-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.reply-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2196f3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.reply-content {
    color: #333;
    line-height: 1.4;
}

.reply-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.comments-disabled {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.no-replies {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Forums page - focus and skip links (forums context) */
.forums-page button:focus,
.forums-page input:focus,
.forums-page textarea:focus,
.forums-page select:focus,
.forums-page .forum-card:focus,
.forums-page .post-item:focus {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
}

.forums-page .skip-link {
    position: fixed;
    top: -40px;
    left: 6px;
    background: #2196f3;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.2s ease;
}

.forums-page .skip-link:focus {
    top: 6px;
}

.forums-page .skip-link-posts {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #A6518B;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
    transition: top 0.2s ease;
}

.forums-page .skip-link-posts:focus {
    top: 6px;
}

.forums-page .skip-link-replies {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
    transition: top 0.2s ease;
}

.forums-page .skip-link-replies:focus {
    top: 6px;
}

.forums-page .keyboard-hint {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-left: 10px;
}

.community-agreements-link {
    background: #A6518B;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
    transition: background-color 0.2s;
}

.community-agreements-link:hover {
    background: #8B4A7A;
}

@media (max-width: 820px) {
    .community-agreements-link {
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .community-agreements-link {
        padding: 6px 8px;
        font-size: 18px;
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }

    .forums-header {
        flex-direction: row;
        gap: 10px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .forums-header h1 {
        font-size: 1.5rem;
    }

    .header-buttons {
        gap: 10px;
    }

    .forums-grid {
        grid-template-columns: 1fr;
    }

    .forum-card {
        padding: 15px;
    }

    .forum-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
        margin-right: 12px;
    }

    .forum-icon img {
        width: 22px;
        height: 22px;
    }

    .forum-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .forums-container {
        padding: 5px;
    }

    .forums-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 15px;
    }

    .forums-header h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .community-agreements-link {
        padding: 11px;
        font-size: 18px;
        text-align: center;
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .forum-card {
        padding: 12px;
    }

    .forum-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 16px;
        margin-right: 10px;
    }

    .forum-icon img {
        width: 18px;
        height: 18px;
    }

    .forum-info p {
        font-size: 14px;
    }
}

.forum-info h2 {
    margin: 0 0 5px 0;
    color: #333;
    word-wrap: break-word;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .forum-info h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .forum-info h2 {
        font-size: 1.3rem;
    }
}

/* Payment success / failed result pages */
.payment-result-section {
    max-width: 560px;
    margin: 2rem auto;
}
.payment-result-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.payment-result-success .payment-result-title { color: var(--deep-purple); }
.payment-result-failed .payment-result-title { color: var(--deep-purple); }
.payment-result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.payment-result-message {
    margin-bottom: 0.75rem;
    color: #333;
}
.payment-result-note {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}
.payment-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.payment-result-links .btn-primary,
.payment-result-links .btn-secondary {
    margin: 0;
}
.payment-result-home {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-magenta);
    text-decoration: underline;
}
.payment-result-home:hover {
    color: var(--deep-purple);
}
