/* Modern Profile Page Styles - Blue Theme */
:root {
  --primary: #2196f3;
  --primary-light: #64b5f6;
  --primary-dark: #1976d2;
  --secondary: #03dac6;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 50%, #0d47a1 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

.profile-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

.profile-header {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 1;
}

.profile-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.profile-avatar-section {
  position: relative;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  transition: var(--transition);
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(33, 150, 243, 0.3);
}

.avatar-upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.avatar-upload-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

.profile-info {
  flex: 1;
  padding-top: 60px;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.profile-email {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  min-width: 100px;
  transition: var(--transition);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.05));
  border-radius: var(--border-radius);
  opacity: 0;
  transition: var(--transition);
}

.stat-item:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.profile-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.profile-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius);
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.profile-main {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-height: 600px;
}

.tab-content {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title svg {
  color: var(--primary);
}

.section-description {
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input, .form-select, .form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #dc2626;
}

.preference-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.preference-card {
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.preference-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.preference-card.selected {
  border-color: var(--primary);
  background: rgba(33, 150, 243, 0.05);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.preference-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.preference-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.preference-description {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: var(--transition);
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.notification-info h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.notification-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.message {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: none;
}

.message-success {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
}

.message-error {
  background: rgb(239 68 68 / 0.1);
  border: 1px solid var(--error);
  color: #991b1b;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-300);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.security-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.security-item:last-child {
  border-bottom: none;
}

.security-info h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.security-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.security-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-enabled {
  color: var(--success);
}

.status-disabled {
  color: var(--error);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.activity-item:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.activity-content small {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.payment-method, .billing-item {
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-method h4, .billing-item h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.payment-method p, .billing-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
.hidden-file-input {
  display: none !important;
}

.form-help-text {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.section-subtitle {
  margin: 2rem 0 1rem 0;
  color: var(--gray-700);
  font-size: 1.25rem;
  font-weight: 600;
}

.payment-section-title {
  margin-bottom: 1rem;
  color: var(--gray-700);
  font-size: 1.25rem;
  font-weight: 600;
}

.danger-zone {
  border-color: var(--error) !important;
}

/* Mobile-First Responsive Design */

/* Base Mobile Styles (320px+) */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 50%, #0d47a1 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  padding-top: 60px;
}

.profile-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 60px);
}

.profile-header {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 1;
}

.profile-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 1rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.avatar-upload-btn:hover,
.avatar-upload-btn:focus {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.profile-email {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.nav-menu {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.nav-item {
  margin-bottom: 0;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border-radius: var(--border-radius);
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  touch-action: manipulation;
  min-height: 80px;
  justify-content: center;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--gray-50);
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.profile-main {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.tab-content {
  display: none;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

.section-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  transition: all 0.2s ease;
  touch-action: manipulation;
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  touch-action: manipulation;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--gray-200);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover,
.btn-danger:focus {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Touch Feedback for Mobile */
@media (hover: none) and (pointer: coarse) {
  .nav-link:active,
  .btn:active,
  .avatar-upload-btn:active {
    transform: scale(0.98);
  }
}

/* Small Mobile (360px+) */
@media (min-width: 360px) {
  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Large Mobile (480px+) */
@media (min-width: 480px) {
  .profile-container {
    padding: 1.5rem;
  }

  .profile-header {
    padding: 1.5rem;
  }

  .profile-header::before {
    height: 100px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .avatar-upload-btn {
    width: 40px;
    height: 40px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .nav-menu {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .nav-link {
    font-size: 0.9rem;
    min-height: 90px;
  }

  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .profile-container {
    padding: 2rem;
  }

  .profile-header {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .profile-header::before {
    height: 120px;
  }

  .profile-header-content {
    flex-direction: row;
    text-align: left;
    align-items: flex-end;
    gap: 2rem;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
  }

  .profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0;
    width: auto;
  }

  .stat-item {
    min-width: 80px;
  }

  .profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
  }

  .profile-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    padding: 1.5rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    flex-direction: row;
    text-align: left;
    padding: 0.875rem 1rem;
    min-height: auto;
    font-size: 1rem;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .tab-content {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .profile-content {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .profile-container {
    padding: 3rem 2rem;
  }
}

/* Accessibility & Focus States */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .profile-header,
  .profile-sidebar,
  .profile-main {
    border: 2px solid #000;
  }

  .btn-primary {
    background: #000;
    border: 2px solid #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .profile-container {
    max-width: none;
    padding: 0;
  }

  .profile-sidebar,
  .avatar-upload-btn,
  .btn {
    display: none;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-header,
  .profile-main {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .profile-container {
    padding: 1rem;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-sidebar {
    position: static;
  }
  
  .nav-menu {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
  }
  
  .nav-item {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .preference-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-info {
    padding-top: 0;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .profile-container {
    padding: 0.5rem;
  }
  
  .tab-content {
    padding: 1rem;
  }
}
