html {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: static;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #1f2937;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
}

nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  nav {
      display: flex;
  }
}

nav a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #1f2937;
}

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

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 140px 1rem 80px;
  background: linear-gradient(180deg, #faf5ff 0%, #fce7f3 50%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3e8ff;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (min-width: 1024px) {
  .hero-title {
      font-size: 3.0rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

@media (min-width: 640px) {
  .hero-buttons {
      flex-direction: row;
  }
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-outline:hover {
  border-color: #d8b4fe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

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

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

.hero-image {
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #f3f4f6;
  animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
  top: -1.5rem;
  right: -1.5rem;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: -1.5rem;
  left: -1.5rem;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section */
section {
  padding: 5rem 1rem;
}

.section-bg {
  background: white;
}

.section-bg-alt {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #faf5ff;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #9333ea;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section-title {
      font-size: 3rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (min-width: 768px) {
  .grid-3 {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
  }
}

/* Feature Card */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s;
  position: relative;
}

.feature-card:hover {
  border-color: #e9d5ff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
  color: #9333ea;
  font-size: 0.75rem;
  border-radius: 9999px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #6b7280;
  line-height: 1.7;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .steps-grid {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
  }
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.step:hover .step-icon {
  transform: scale(1.1);
}

.step-number {
  font-size: 2rem;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-right: 0.75rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.step-description {
  color: #6b7280;
  line-height: 1.7;
}

.steps-image {
  position: relative;
}

.steps-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.steps-image-border {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 100%;
  height: 100%;
  border: 2px solid #e9d5ff;
  border-radius: 1rem;
  z-index: -1;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: #e9d5ff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: #e9d5ff;
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.testimonial-text {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-name {
  color: #1f2937;
  font-weight: 500;
}

.testimonial-role {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Footer */
footer {
  background: #111827;
  color: #d1d5db;
  padding: 4rem 1rem;
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
      grid-column: span 1;
  }
}

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

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
}

.footer-description {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

/* SVG Icons */
.icon {
  width: 24px;
  height: 24px;
}

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

.icon-lg {
  width: 32px;
  height: 32px;
}

/* User profile page overrides */
/* Profile Header */
.profile-page .profile-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
}

.profile-page .profile-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .profile-page .profile-info {
        flex-direction: row;
        text-align: left;
    }
}

.profile-page .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-page .profile-details {
    flex: 1;
}

.profile-page .profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-page .profile-bio {
    color: #6b7280;
    margin-bottom: 1rem;
}

.profile-page .profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-page .profile-stats {
        justify-content: flex-start;
    }
}

.profile-page .stat {
    text-align: center;
}

.profile-page .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-page .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.profile-page .profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-page .profile-actions {
        justify-content: flex-start;
    }
}

/* Main Content */
.profile-page main {
    padding: 3rem 0;
}

.profile-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
     .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wishlist-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.wishlist-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #e9d5ff;
}

.wishlist-card .wishlist-cover {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wishlist-card .wishlist-content {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.wishlist-card .wishlist-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.wishlist-card .wishlist-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wishlist-card .wishlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

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

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

/* Empty State */

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #f3f4f6;
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.form-input {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: #1f2937;
}

.form-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input-error {
    border-color: #ef4444;
}

.form-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.form-group-checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.checkbox-input:checked {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    border-color: #9333ea;
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-input:hover {
    border-color: #9333ea;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.form-link {
    color: #9333ea;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.form-link:hover {
    color: #ec4899;
    text-decoration: underline;
}
