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

:root {
  --primary-pink: #E91E63;
  --light-pink: #FFE0EC;
  --dark-pink: #C2185B;
  --background: #FFF0F5;
  --white: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #9E9E9E;
  --error: #F44336;
  --success: #4CAF50;
  --border: #F5F5F5;
  --shadow: rgba(233, 30, 99, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #E91E63 !important;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation Header - Mobile First */
.nav-header {
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-header > a:first-child {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-header img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-header span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-header a {
  text-decoration: none;
  color: #E91E63 !important;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.875rem;
  padding: 0.5rem;
}

.nav-header a:hover {
  color: var(--dark-pink) !important;
}

.nav-header button {
  background: none;
  border: 1.5px solid var(--primary-pink);
  color: var(--primary-pink);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-header button:hover {
  background: var(--primary-pink);
  color: white;
  transform: scale(1.05);
}

/* Auth Pages - Mobile Optimized */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  text-align: center;
  transform: translateY(0);
  transition: var(--transition);
}

.auth-logo img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.2));
}

.auth-title {
  font-size: 1.75rem;
  color: #E91E63 !important;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  color: #000000 !important;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
}

/* Form Styles - Refined for Mobile */
.auth-form {
  margin-top: 1.5rem;
}

.form-field {
  position: relative;
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-input {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: #fafafa;
  -webkit-appearance: none;
}

.auth-input:focus {
  border-color: var(--primary-pink);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.auth-select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
  outline: none;
  appearance: none;
  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.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em;
}

.auth-select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Phone Input Group - Sleek Design */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.country-code-select {
  width: 75px;
  padding: 1rem 0.5rem;
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: #fafafa;
  transition: var(--transition);
  outline: none;
  appearance: none;
  text-align: center;
}

.country-code-select:focus {
  border-color: var(--primary-pink);
  background: white;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.phone-input {
  flex: 1;
}

/* Floating Labels - Refined */
.floating-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: var(--transition);
  pointer-events: none;
  font-size: 0.9375rem;
  background: transparent;
}

.auth-input:focus + .floating-label,
.auth-input:not(:placeholder-shown) + .floating-label {
  top: 0;
  font-size: 0.75rem;
  color: var(--primary-pink);
  background: white;
  padding: 0 0.5rem;
  font-weight: 500;
}

/* Buttons - Optimized for Mobile */
.auth-button {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
}

.auth-button.primary {
  background: var(--primary-pink);
  color: white;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.auth-button.primary:hover:not(:disabled) {
  background: var(--dark-pink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
}

.auth-button.secondary {
  background: transparent;
  color: var(--primary-pink);
  border: 1.5px solid var(--primary-pink);
}

.auth-button.secondary:hover:not(:disabled) {
  background: var(--primary-pink);
  color: white;
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Profile Page - Mobile First */
.profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  padding: 1rem;
  padding-bottom: 2rem;
}

.profile-view, .profile-edit {
  max-width: 600px;
  margin: 0 auto;
}

.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

/* Photo Cards - Elegant Mobile Design */
.photo-card {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.photo-card::after {
  content: "📷";
  font-size: 2.5rem;
  color: #ddd;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.photo-card.image-loaded::after,
.photo-upload-wrapper.image-loaded::after {
  display: none;
}

/* Profile Info - Clean Typography */
.profile-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-info h1 {
  font-size: 1.75rem;
  color: #E91E63 !important;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

.profile-subtitle {
  color: #000000 !important;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* Prompt Cards - Modern Design */
.prompt-card {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid #f0f0f0;
}

.prompt-question {
  font-size: 0.875rem;
  color: #000000 !important;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prompt-answer {
  color: #E91E63 !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Profile Actions - Sleek Buttons */
.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.action-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.025em;
}

.edit-btn {
  background: var(--primary-pink);
  color: white;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.edit-btn:hover {
  background: var(--dark-pink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
}

.invite-btn {
  background: transparent;
  color: var(--primary-pink);
  border: 1.5px solid var(--primary-pink);
}

.invite-btn:hover {
  background: var(--primary-pink);
  color: white;
}

/* Edit Form - Refined Mobile UI */
.edit-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

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

.edit-header h2 {
  font-size: 1.5rem;
  color: #E91E63 !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.save-btn {
  background: var(--primary-pink);
  color: white;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.25);
}

.save-btn:hover {
  background: var(--dark-pink);
  transform: scale(1.05);
}

/* Photo Upload Section - Clean Design */
.photo-upload-section {
  margin-bottom: 1.5rem;
}

.photo-upload-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e5e5e5;
  transition: var(--transition);
}

.photo-upload-wrapper:hover {
  border-color: var(--primary-pink);
  background: #fef5f7;
}

.photo-upload-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-upload-wrapper::after {
  content: "📷";
  font-size: 2rem;
  color: #ddd;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.photo-upload-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  z-index: 2;
}

.photo-upload-btn:hover {
  background: var(--dark-pink);
  transform: scale(1.1);
}

/* Edit Fields - Clean Mobile Forms */
.edit-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #E91E63 !important;
  font-size: 0.875rem;
}

.edit-field input,
.edit-field select,
.edit-field textarea {
  padding: 0.75rem;
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: var(--transition);
  background: #fafafa;
  -webkit-appearance: none;
}

.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
  border-color: var(--primary-pink);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.edit-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

/* Messages - Elegant Notifications */
.messages {
  margin-bottom: 1.5rem;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

.error-message, .error-text {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: left;
}

.success-message {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: left;
}

/* Profile Footer - Refined Actions */
.profile-footer {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  text-align: center;
  margin-top: 1.5rem;
}

.footer-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin: 0.25rem;
  background: #f8f9fa;
  color: #E91E63 !important;
}

.footer-btn:hover {
  background: var(--primary-pink);
  color: white;
  transform: translateY(-1px);
}

.footer-btn.danger {
  background: #ffebee;
  color: var(--error);
}

.footer-btn.danger:hover {
  background: var(--error);
  color: white;
}

/* Invite Page - Clean Design */
.invite-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.invite-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.invite-card img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.2));
}

.invite-title {
  font-size: 1.75rem;
  color: #E91E63 !important;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.invite-subtitle {
  color: #000000 !important;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
}

.invite-help {
  color: #E91E63 !important;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.invite-help a {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 500;
}

.invite-help a:hover {
  text-decoration: underline;
}

/* Landing Page Hero - Mobile Optimized */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.landing-hero h1 {
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -1px;
}

.landing-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--primary-pink);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
  letter-spacing: 0.025em;
}

.cta-button:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233, 30, 99, 0.4);
}

/* Animations - Smooth and Subtle */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.landing-hero h1,
.auth-title,
.profile-info h1 {
  animation: fadeInUp 0.6s ease-out;
}

.landing-hero p,
.auth-subtitle,
.profile-subtitle {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.cta-button,
.auth-button {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Custom Notification Styles */
.custom-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid var(--primary-pink);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 2000;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
  max-width: 280px;
  text-align: center;
}

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

.custom-notification.error {
  border-color: var(--error);
}

/* Desktop Responsive Adjustments */
@media (min-width: 768px) {
  /* Navigation */
  .nav-header {
    padding: 0.75rem 2rem;
  }
  
  .nav-header img {
    width: 50px;
  }
  
  .nav-header span {
    gap: 1.5rem;
  }
  
  .nav-header a {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
  
  .nav-header button {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
  
  /* Auth Pages */
  .auth-card {
    padding: 3rem 2.5rem;
  }
  
  .auth-logo img {
    width: 100px;
    margin-bottom: 2rem;
  }
  
  .auth-title {
    font-size: 2rem;
  }
  
  .auth-subtitle {
    font-size: 1.1rem;
  }
  
  /* Forms */
  .auth-input,
  .auth-select {
    padding: 1.125rem;
    font-size: 1.0625rem;
  }
  
  .auth-button {
    padding: 1rem;
    font-size: 1.0625rem;
  }
  
  /* Profile */
  .profile-card {
    padding: 2.5rem;
  }
  
  .photo-card {
    height: 350px;
    width: 450px;
    margin: 0 auto 2rem;
  }
  
  .photo-card img {
    object-fit: cover;
    border-radius: 12px;
  }
  
  .profile-info h1 {
    font-size: 2.25rem;
  }
  
  .profile-subtitle {
    font-size: 1.1rem;
  }
  
  .prompt-card {
    padding: 1.75rem;
  }
  
  .prompt-question {
    font-size: 1rem;
  }
  
  .prompt-answer {
    font-size: 1.0625rem;
  }
  
  /* Edit Form */
  .edit-form {
    padding: 2.5rem;
  }
  
  .edit-header h2 {
    font-size: 1.875rem;
  }
  
  .edit-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .photo-upload-wrapper {
    height: 300px;
    width: 450px;
    margin: 0 auto 1.5rem;
  }
  
  /* Landing Page */
  .landing-hero h1 {
    font-size: 3.5rem;
  }
  
  .landing-hero p {
    font-size: 1.25rem;
  }
  
  .cta-button {
    padding: 1rem 3rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .photo-card {
    height: 400px;
    width: 500px;
  }
  
  .photo-upload-wrapper {
    height: 350px;
    width: 500px;
  }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .auth-input,
  .auth-select,
  .edit-field input,
  .edit-field select,
  .edit-field textarea {
    border-width: 1px;
  }
  
  .nav-header {
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (if device prefers) */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1a1a;
    --white: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --border: #3a3a3a;
  }
}

/* Touch Target Optimization */
button, .action-btn, .footer-btn, a {
  min-height: 44px;
  min-width: 44px;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}

/* Prevent iOS Zoom on Input Focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Performance Optimizations */
.photo-card img,
.photo-upload-wrapper img {
  will-change: transform;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.profile-page::-webkit-scrollbar,
.auth-page::-webkit-scrollbar,
.invite-container::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Features Section Mobile Optimization */
.features-section {
  background: white;
  padding: 3rem 1rem;
}

.features-container {
  max-width: 1000px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.feature-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fafafa;
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9375rem;
}

/* How it works section - Mobile */
.how-it-works {
  background: linear-gradient(135deg, #FFF5F7 0%, #FFE0EC 100%);
  padding: 3rem 1rem;
}

.steps-container {
  max-width: 600px;
  margin: 0 auto;
}

.steps-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9375rem;
}

/* Social proof section - Mobile */
.social-proof {
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.stats-container {
  max-width: 500px;
  margin: 0 auto;
}

.social-proof-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat {
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: bold;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Final CTA section - Mobile */
.final-cta {
  background: linear-gradient(135deg, #FFE0EC 0%, #FFF5F7 100%);
  color: var(--text-primary);
  padding: 3rem 1rem;
  text-align: center;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.final-cta p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-white {
  background: var(--primary-pink);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.cta-white:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233, 30, 99, 0.4);
}

/* Invite CTA section - Mobile */
.invite-cta {
  background: white;
  padding: 3rem 1rem;
  text-align: center;
}

.invite-cta-container {
  max-width: 500px;
  margin: 0 auto;
}

.invite-cta h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

.invite-cta p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.invite-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-pink);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.invite-cta-btn:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Responsive Adjustments for Larger Mobile Screens */
@media (min-width: 375px) {
  .auth-card,
  .invite-card {
    padding: 2.25rem 1.75rem;
  }
  
  .profile-card {
    padding: 1.75rem;
  }
  
  .photo-card {
    height: 320px;
  }
  
  .landing-hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 414px) {
  .auth-title,
  .invite-title {
    font-size: 1.875rem;
  }
  
  .profile-info h1 {
    font-size: 1.875rem;
  }
  
  .landing-hero h1 {
    font-size: 2.75rem;
  }
  
  .landing-hero p {
    font-size: 1.0625rem;
  }
}

/* Tablet Adjustments */
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .step {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
  
  .step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  .step-number {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

/* Remove all the old mobile-specific media queries that were causing conflicts */
/* The above styles are mobile-first and progressively enhance for larger screens */