/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base styles - Updated colors only */
:root {
  /* Luxury Color Palette - Donation Page */
  --primary-color: #1e1b4b;
  --primary-dark: #3730a3;
  --primary-darker: #8b5cf6;
  --primary-light: #dbeafe;
  --primary-lightest: #eff6ff;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --success-light: #d1fae5;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;
  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --light-gray: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-color: #0f172a;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --border-light: #e2e8f0;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 6px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);

  /* Luxury Gradients */
  --gradient-royal: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #8b5cf6 100%);
  --gradient-royal-lite: linear-gradient(135deg, #7b93f2 0%, #a5b4fc 50%, #8b5cf6 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Card-based Design */
.donation-options > * {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  padding: 1rem;
}
.donation-options > *:hover {
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.2);
}
.donation-options .panel-header {
  background: var(--gradient-royal);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  box-shadow: var(--shadow);
  margin: -1rem -1rem 0.7rem -1rem;
  padding: 1rem 1.5rem;
}
.donation-options .form-row {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.8rem;
  border: 1px solid var(--glass-border);
}
.donation-amount-section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--glass-border);
}
.donation-amount-section h4 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem 0;
  color: var(--gray-700);
  font-weight: 600;
  position: relative;
  padding-left: 0.5rem;
}
.donation-amount-section h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  background: var(--gradient-royal);
  border-radius: 1.5px;
}

/* Donation Header Banner */
.donation-header {
  background: var(--gradient-royal);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
}
.donation-header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.05) 25%,
    rgba(16, 185, 129, 0.05) 50%,
    rgba(245, 158, 11, 0.05) 75%,
    rgba(239, 68, 68, 0.1) 100%
  );
  opacity: 1;
}
.header-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}
.donation-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.donation-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Fix spacing between panels in donation page */
.donation-container .side-column > * {
  margin-bottom: 1.25rem;
}

.donation-container .side-column > *:last-child {
  margin-bottom: 0;
}

.donation-options {
  margin-top: 1rem;
}

.project-details-container {
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.main-content .project-details-container .donation-options {
  margin-top: 0;
}

.project-details-container .donation-options > * {
  margin-bottom: 1rem;
}

.project-details-container .donation-options > *:last-child {
  margin-bottom: 0;
}

.donation-container .main-content {
  margin-top: 0;
}

.project-media {
  margin-bottom: 1.5rem;
}

/* Profile edit button styling */
.profile-edit-btn {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.profile-edit-btn i {
  font-size: 0.875rem;
}

/* Enhanced tip card styling */
.tips-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.tips-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-details-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .user-contact-info {
    padding: 0 1rem 1.25rem;
  }
  
  .contact-table th {
    width: auto;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .donation-container .side-column > * {
    margin-bottom: 1rem;
  }
  
  .project-details-container {
    padding: 0.75rem;
  }
}

/* Ultra-premium donation amount boxes */
.amount-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.amount-option {
  padding: 0.5rem 0.3rem;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  height: auto;
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.amount-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.amount-option:hover {
  border-color: var(--primary-darker);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.amount-option:hover::before {
  background: var(--gradient-royal);
}

.amount-option.selected {
  border-color: var(--primary-darker);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 0 1px var(--primary-darker), var(--shadow-xs);
  transform: translateY(-2px);
}

.amount-option.selected::before {
  background: var(--gradient-royal);
}

.amount-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.1rem;
}

.amount-description {
  font-size: 0.65rem;
  color: var(--gray-600);
  line-height: 1.2;
}

.recurring-badge {
  display: inline-block;
  background: var(--success-light);
  color: var(--success-color);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.25rem;
}

/* Professional custom amount container */
.custom-amount-container {
  padding: 0.6rem 0.8rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: var(--transition);
}

.custom-amount-container:focus-within {
  border-color: var(--primary-darker);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.custom-amount-container label {
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.8rem;
}

.custom-amount-container .input-with-icon i {
  color: var(--primary-darker);
}

.custom-amount-container input {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  height: 2.5rem;
}

/* Gallery */
.project-image-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16/9;
  background: #f0f0f0;
  box-shadow: var(--shadow);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
  font-size: 0.9rem;
}

.project-image-container {
  position: relative;
  margin-bottom: 0.8rem;
}

.project-image-container .gallery-controls {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.gallery-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
  margin: 0 5px;
}

.gallery-nav:hover {
  background: #fff;
  color: var(--primary-darker);
  transform: scale(1.05);
}

.gallery-dots {
  display: flex;
  gap: 8px;
  margin: 0 10px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0,0,0,0.2);
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Premium Progress Steps */
.progress-steps-container {
  margin: 0 auto 1.2rem;
  padding: 0 1rem;
}

.progress-steps {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0.7rem 0;
  max-width: 700px;
  margin: 0 auto;
}

.progress-steps:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 120px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--light-gray);
  border: 2px solid var(--gray-300);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.step.active .step-number {
  background: var(--gradient-royal);
  border-color: var(--primary-darker);
  color: white;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: var(--transition);
}

.step.active .step-label {
  color: var(--primary-darker);
  font-weight: 600;
}

/* Main Layout */
.donation-container {
  display: grid;
  grid-template-columns: 350px 1fr 350px;
  gap: 1.5rem;
  padding: 0 1.5rem 3rem;
}

.side-column {
  margin-top: -0.5rem;
}

.user-column, .basket-column {
  padding-top: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-tag i {
  font-size: 0.675rem;
}

.project-tag.intention {
  background: #d1fae5;
  color: #065f46;
}

.project-tag.country {
  background: #dbeafe;
  color: #1e40af;
}

.project-tag.default {
  background: #f3f4f6;
  color: #374151;
}

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

.project-details-link {
  color: var(--gray-400);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  padding: 0.25rem;
  border-radius: 4px;
}

.project-details-link:hover {
  color: var(--primary-darker);
  background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 1400px) {
  .donation-container {
    grid-template-columns: 280px 1fr 280px;
  }
}

@media (max-width: 1200px) {
  .donation-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .side-column {
    order: 1;
    margin-top: 0;
  }
  
  .main-content {
    order: 0;
  }
}

/* Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stats-banner .stat-item {
  color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  background: var(--gradient-royal);
}

.stats-banner .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stats-banner .stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Impact Metrics */
.impact-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
}

.metric i {
  font-size: 1.5rem;
  color: var(--primary-darker);
  background: rgba(139, 92, 246, 0.15);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.metric-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-800);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Common Panel Styles */
.user-info-panel, .auth-panel, .impact-panel, 
.basket-panel, .main-content, .project-details-container {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* PREMIUM PANEL HEADERS */
.panel-header {
  background: var(--gradient-royal);
  color: white;
  padding: 1.25rem 1.5rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.panel-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.panel-header:hover::before {
  transform: translateX(200%);
}

.panel-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.panel-header h3 i {
  margin-right: 0.625rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Content Headers */
.content-header {
  background: var(--gradient-royal);
  color: white;
  padding: 0.8rem 1.2rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.content-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.content-header:hover::before {
  transform: translateX(200%);
}

.content-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.content-header h2 i {
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Enhanced User Info Panel */
.user-info-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.user-info-panel:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  position: relative;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-royal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 1.25rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.user-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
}

.user-details h4 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  color: var(--gray-800);
  font-weight: 600;
}

.user-details p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* FIXED DONATION STATS - NO OVERLAPPING */
.donation-stats {
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.donation-stats-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-darker);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* FIXED STATS CONTAINER - NO ICON OVERLAP */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.08);
  transition: all var(--transition-normal);
  border: 1px solid rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.12);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-royal);
}

/* FIXED STAT ICON - NO OVERLAP */
.stat-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: rgba(139, 92, 246, 0.15);
  font-size: 1rem;
}

/* FIXED STAT VALUE - PROPER SIZE */
.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 0.2rem;
  line-height: 1;
  display: block;
}

/* FIXED STAT LABEL - PROPER SIZE */
.stat-label {
  font-size: 0.6rem;
  color: var(--gray-600);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

/* Contact Table */
.user-contact-info {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.contact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.contact-table th {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  width: 30%;
  vertical-align: top;
  white-space: nowrap;
}

.contact-table td {
  padding: 0.5rem 0;
  vertical-align: top;
  font-size: 0.875rem;
  color: var(--gray-800);
  font-weight: normal;
  line-height: 1.5;
}

.contact-table th i {
  margin-right: 0.5rem;
  color: var(--primary-darker);
  display: inline-block;
  vertical-align: middle;
  font-size: 0.9rem;
}

/* Tips Card Content */
.tips-content {
  padding: 1.25rem 1.5rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  border: none;
  text-align: left;
}

.tip-item i {
  color: var(--warning-color);
  margin-top: 0.25rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.tip-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
  text-align: left;
}

/* Left Column: User Info */
.side-column > * {
  margin-bottom: 1rem;
}

.quick-links {
  padding: 0 1.5rem 1.5rem;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all var(--transition-normal);
  border-bottom: 1px solid var(--gray-100);
}

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

.link-item:hover {
  color: var(--primary-darker);
  transform: translateX(2px);
}

.link-item i {
  margin-right: 0.875rem;
  font-size: 1rem;
  width: 20px;
  color: var(--gray-400);
  transition: all var(--transition-normal);
}

.link-item:hover i {
  color: var(--primary-darker);
}

/* Auth Panel */
.auth-panel {
  padding-bottom: 1.5rem;
}

.auth-content {
  padding: 0 1.5rem;
}

.social-login-section {
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

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

.social-btn.google {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: #333;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.social-btn.google:hover {
  background-color: #f8f9fa;
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.social-btn i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.social-btn.google i {
  color: #ea4335;
}

.auth-panel p {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group.optional label::after {
  content: " (optional)";
  font-weight: normal;
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* Premium INPUT WITH ICON STYLING */
.input-with-icon {
  position: relative;
  display: block;
  width: 100%;
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-darker);
  font-size: 0.9rem;
  z-index: 2;
  pointer-events: none;
  transition: var(--transition);
}

.input-with-icon input:focus + i {
  color: var(--primary-darker);
}

.input-with-icon input {
  padding-left: 38px !important;
  width: 100%;
  height: 2.6rem;
  transition: var(--transition);
}

.select-with-icon {
  position: relative;
  display: block;
  width: 100%;
}

.select-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-darker);
  font-size: 0.9rem;
  z-index: 2;
  pointer-events: none;
  transition: var(--transition);
}

.select-with-icon select:focus + i {
  color: var(--primary-darker);
}

.select-with-icon select {
  width: 100%;
  padding-left: 38px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238b5cf6' d='M4.5 6l3.5 3.5L11.5 6h-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  height: 2.6rem;
  transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-darker);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

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

.auth-divider:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  position: relative;
  padding: 0 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-panel .panel-header h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.auth-content p {
  margin: 1rem 0 1.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  text-align: left;
  background: rgba(139, 92, 246, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-darker);
  font-weight: 500;
  line-height: 1.6;
}

.social-btn.google {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: #333;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn.google:hover {
  background-color: #f8f9fa;
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.social-btn.google::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  position: static;
}

.social-btn.google i {
  display: none;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-royal);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  transition: var(--transition);
}

.btn-primary::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;
}

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

.btn-primary i {
  font-size: 1rem;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--gray-700);
  transition: var(--transition);
}

.btn-outline i {
  font-size: 1rem;
  color: var(--primary-darker);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-darker);
}

.btn-outline:hover i {
  color: var(--primary-darker);
}

/* Main Content */
.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  width: 220px;
  flex-grow: 1;
}

.search-box input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  font-size: 0.875rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-darker);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-darker);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.search-box:focus-within .search-btn {
  color: var(--primary-darker);
  background-color: rgba(139, 92, 246, 0.15);
}

.filter-dropdown {
  position: relative;
  min-width: 180px;
}

.filter-dropdown select {
  padding: 0.625rem 2rem 0.625rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  font-size: 0.875rem;
  color: var(--gray-700);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238b5cf6' d='M4.5 6l3.5 3.5L11.5 6h-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  width: 100%;
}

.filter-dropdown select:focus {
  outline: none;
  border-color: var(--primary-darker);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* Project Card - KEEP ORIGINAL SIZE */
.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  max-height: 380px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.3);
}

.project-image {
  position: relative;
  height: 140px;
  overflow: hidden;
}

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

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

.emergency-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--danger-color);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--gray-800);
}

.project-content p {
  margin-bottom: 0.75rem;
  color: var(--gray-600);
  font-size: 0.8rem;
  line-height: 1.5;
  height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-progress {
  margin-bottom: 1rem;
  margin-top: auto;
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar .progress {
  height: 100%;
  background: var(--gradient-royal);
  border-radius: 4px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.funding-percentage {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-darker);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* ENHANCED BUTTONS */
.btn-primary,
.btn-outline,
.btn-text {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-royal);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-select-project {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--gradient-royal-lite);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-select-project::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;
}

.btn-select-project:hover::before {
  left: 100%;
}

.btn-select-project i {
  margin-right: 0.5rem;
}

.btn-select-project:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--gray-700);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-darker);
  border-color: var(--primary-darker);
  transform: translateY(-1px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--gray-500);
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--primary-darker);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading indicator */
.loading-indicator {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: var(--gray-500);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-darker);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Projects Message */
.no-projects-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
}

.message-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.no-projects-message h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.no-projects-message p {
  margin: 0;
  font-size: 0.875rem;
}

/* Project Details View */
.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.project-details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 0.8rem 1.2rem;
}

@media (max-width: 768px) {
  .project-details-container {
    grid-template-columns: 1fr;
  }
}

.project-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
}

.project-image-container img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}

.emergency-badge.large {
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.project-progress-container {
  margin-bottom: 1.2rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--border-radius);
  padding: 0.8rem;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.progress-stats-header {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.project-progress-container .progress-bar {
  height: 10px;
}

.project-progress-container .progress-stats {
  margin-top: 0.6rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

.funding-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.funding-item {
  display: flex;
  flex-direction: column;
}

.funding-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.funding-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  background: rgba(139, 92, 246, 0.05);
  padding: 0.6rem 0.8rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item i {
  color: var(--primary-darker);
}

.project-description {
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 0.5rem 0;
}

/* Donation Options */
.donation-options {
  padding-bottom: 1rem;
}

.donation-preferences {
  padding: 0 1.5rem;
  margin-bottom: 0.8rem;
  margin-top: -0.2rem;
}

.donation-type-toggle {
  display: flex;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 3px;
}

.donation-type-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #4a5568;
  position: relative;
  border-radius: 6px;
}

.donation-type-btn i {
  margin-right: 6px;
  font-size: 14px;
}

.donation-type-btn.active {
  background: var(--gradient-royal-lite);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.donation-type-btn.active i {
  color: white;
}

.donation-type-btn:hover:not(.active):not(.disabled) {
  color: var(--primary-darker);
}

.donation-type-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.recurring-options-container {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--primary-darker);
  animation: fadeIn 0.3s ease;
}

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

.recurring-config {
  display: flex;
  gap: 0.8rem;
}

.recurring-frequency, .recurring-duration {
  flex: 1;
}

.recurring-frequency label, .recurring-duration label, .date-field label {
  display: block;
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 4px;
  font-weight: 500;
}

.specific-duration {
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.date-range-compact {
  display: flex;
  gap: 10px;
}

.date-field {
  flex: 1;
}

.select-with-icon.compact, .input-with-icon.compact {
  position: relative;
  height: 36px;
}

.select-with-icon.compact i, .input-with-icon.compact i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-darker);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s;
}

.select-with-icon.compact select, .input-with-icon.compact input {
  height: 36px;
  padding-left: 32px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 14px;
  color: #2d3748;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  transition: all 0.2s;
}

.select-with-icon.compact select:focus, .input-with-icon.compact input:focus {
  outline: none;
  border-color: var(--primary-darker);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.select-with-icon.compact:focus-within i, .input-with-icon.compact:focus-within i {
  color: var(--primary-darker);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-darker);
}

.form-check label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0 1.5rem;
}

.donation-options .form-group {
  padding: 0 1.5rem;
}

.donation-options .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 1.5rem;
}

@media (max-width: 576px) {
  .donation-options .form-row {
    grid-template-columns: 1fr;
    padding: 0.6rem 1rem;
  }
  
  .recurring-config {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .date-range-compact {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.donation-options .form-group {
  padding: 0;
}

/* Personal Message Tooltip */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-800);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  white-space: normal;
  text-align: left;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-800);
}

.tooltip-container:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Apply tooltip to personal message label */
.form-group label[for="donationMessage"] {
  position: relative;
  cursor: help;
}

.form-group label[for="donationMessage"]::after {
  content: '?';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--primary-darker);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  line-height: 16px;
  margin-left: 0.5rem;
  cursor: help;
}

.form-group label[for="donationMessage"]:hover::after {
  background: var(--primary-dark);
}

/* Tooltip for personal message */
.form-group label[for="donationMessage"]:hover::before {
  content: 'You can include reference numbers for sponsorship renewals, special instructions, or personal messages here.';
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: var(--gray-800);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  white-space: normal;
  font-weight: normal;
  text-align: left;
}

/* Right Column: Basket */
.basket-panel {
  padding-bottom: 1.5rem;
}

.basket-items {
  margin-top: 0.8rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) rgba(139, 92, 246, 0.1);
}

.basket-items::-webkit-scrollbar {
  width: 8px;
}

.basket-items::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
}

.basket-items::-webkit-scrollbar-thumb {
  background-color: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

/* COMPACT BASKET ITEMS - MATCHING REVIEW PAGE STYLE */
.basket-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
  gap: 0.4rem;
}

.basket-item:hover {
  background: rgba(139, 92, 246, 0.05);
}

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

.basket-item-details {
  flex-grow: 1;
  padding-right: 0.5rem;
  min-width: 0;
}

.basket-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px; /* This allows ~40-45 characters */
  min-width: 250px; /* This ensures minimum ~35 characters */
}

.basket-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.6875rem;
}

.basket-item-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  gap: 0.25rem;
  white-space: nowrap;
  font-size: 11px;
  background-color: #f7fafc;
  border: 1px solid #edf2f7;
}

.basket-item-meta i {
  font-size: 10px;
}

.basket-item-meta span {
  background: var(--gray-100);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.basket-item-meta span.recurring {
  background: var(--success-light);
  color: var(--success-color);
  font-weight: 500;
}

.basket-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.6875rem;
}

.basket-item-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  gap: 0.25rem;
  white-space: nowrap;
  font-size: 11px;
  background-color: #f7fafc;
  border: 1px solid #edf2f7;
}

.basket-item-quantity {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  flex-shrink: 0;
  align-self: flex-end; /* Add this line */
  margin-bottom: 0.2rem; /* Optional: fine-tune positioning */
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  height: 24px;
}

.quantity-btn {
  background: transparent;
  border: none;
  color: var(--primary-darker);
  width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.6875rem;
}

.quantity-btn:hover {
  background: rgba(139, 92, 246, 0.2);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 28px;
  height: 24px;
  border: none;
  text-align: center;
  font-size: 0.75rem;
  padding: 0;
  color: var(--gray-700);
  background: transparent;
  font-weight: 500;
}

.basket-item-amount {
  font-weight: 600;
  color: var(--primary-darker);
  font-size: 0.8125rem;
  min-width: 55px;
  text-align: right;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.remove-item {
  color: var(--danger-color);
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: var(--transition);
  border-radius: 50%;
  flex-shrink: 0;
}

.remove-item:hover {
  opacity: 1;
  background-color: var(--danger-light);
}

.empty-basket-message {
  text-align: center;
  padding: 2rem 0;
  color: var(--gray-500);
  margin: 0 1.5rem;
}

.empty-basket-message .message-icon {
  font-size: 2rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-basket-message p {
  margin: 0 0 0.5rem;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.gift-aid-section {
  background: rgba(139, 92, 246, 0.08);
  margin: 1.5rem;
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.gift-aid-checkbox {
  display: flex;
  margin-bottom: 0.75rem;
}

.gift-aid-checkbox input {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  accent-color: var(--primary-darker);
}

.checkbox-content label {
  display: block;
  font-weight: 500;
  color: var(--primary-darker);
  margin-bottom: 0.25rem;
}

.gift-aid-info {
  font-size: 0.75rem;
  color: var(--gray-700);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  margin-top: 0.75rem;
  display: none;
}

.gift-aid-info p {
  margin: 0;
}

.basket-summary {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin: 0 1.5rem 1.5rem;
  border: 1px solid var(--glass-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-700);
}

#giftAidRow {
  display: none;
  color: var(--primary-darker);
  background: rgba(139, 92, 246, 0.1);
  margin: 0.5rem -1.25rem;
  padding: 0.5rem 1.25rem;
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-300);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.amount {
  color: var(--primary-darker);
  font-weight: 600;
}

.basket-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 1.5rem 1.5rem;
}

.basket-item-meta .meta-donation-type.highlight {
  background-color: var(--warning-light);
  color: var(--gray-800);
  font-weight: 600;
  border-left: 3px solid var(--warning-color);
  padding-left: 0.5rem;
}

.basket-item-meta .meta-country {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--primary-darker);
}

.basket-item-meta .meta-intention {
  background-color: var(--success-light);
  color: var(--success-color);
}

.basket-item-meta .recurring {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--primary-darker);
  font-weight: 500;
}

.basket-item-meta i {
  font-size: 0.65rem;
}

/* ENHANCED PAYMENT METHODS SECTION */
.payment-methods {
  border-top: 1px solid var(--gray-200);
  margin: 0 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.payment-methods-header {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  font-weight: 600;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 2rem;
}

.visa-color {
  color: #1a1f71;
}

.mastercard-color {
  color: #eb001b;
}

.amex-color {
  color: #006fcf;
}

.paypal-color {
  color: #003087;
}

/* Notifications */
.notification {
  position: fixed;
  top: 70px;
  right: 20px;
  min-width: 300px;
  padding: 1rem 1.5rem 1rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  z-index: 1000;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-darker);
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.notification-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
}

.notification-message {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.notification.success::before {
  background: var(--success-color);
}

.notification.info::before {
  background: var(--primary-darker);
}

.notification.warning::before {
  background: var(--warning-color);
}

.notification.error::before {
  background: var(--danger-color);
}

.notification.success .notification-icon {
  color: var(--success-color);
}

.notification.info .notification-icon {
  color: var(--primary-darker);
}

.notification.warning .notification-icon {
  color: var(--warning-color);
}

.notification.error .notification-icon {
  color: var(--danger-color);
}

.notification-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.notification-close:hover {
  color: var(--gray-600);
}

/* RESPONSIVE DESIGN ENHANCEMENTS */
@media (max-width: 1600px) {
  .donation-container {
    max-width: 1400px;
  }
}

@media (max-width: 1400px) {
  .donation-container {
    grid-template-columns: 280px 1fr 280px;
  }
  
  .search-box {
    width: 200px;
  }
}

@media (max-width: 1200px) {
  .donation-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .side-column {
    order: 1;
    margin-top: 0;
  }
  
  .main-content {
    order: 0;
  }
  
  .filter-controls {
    flex-wrap: wrap;
  }
  
  .search-box {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .donation-container {
    padding: 0 1rem 2rem;
  }
  
  .content-header,
  .panel-header {
    padding: 0.8rem 1.2rem;
  }
  
  .filter-controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .social-btn {
    height: 45px;
    font-size: 0.875rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .donation-stats {
    grid-template-columns: 1fr;
  }
  
  .donation-options .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .stats-banner {
    grid-template-columns: 1fr;
  }
  
  .payment-icons {
    font-size: 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .user-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .user-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .project-card {
    max-height: none;
  }
  
  .project-image {
    height: 200px;
  }
  
  .content-header h2 {
    font-size: 1.1rem;
  }
  
  .panel-header h3 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .form-actions {
    flex-direction: column;
  }
  
  .stats-banner,
  .donation-stats,
  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .donation-header h1 {
    font-size: 1.75rem;
  }
  
  .donation-header p {
    font-size: 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-royal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
}

/* Selection styling */
::selection {
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-darker);
}

/* Focus outline for accessibility */
*:focus {
  outline: 2px solid var(--primary-darker);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}