/* ============================================
   AmorMatch - International Dating Landing Page
   Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
  --color-primary: #FF385C;
  --color-primary-dark: #E91E63;
  --color-primary-deep: #831535;
  --color-bg-main: #FFFBF7;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #FFF0F3;
  --color-text: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #F3E8EB;
  --color-success: #22C55E;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
  --shadow-glow: 0 4px 30px rgba(255, 56, 92, 0.3);

  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select {
  font-family: inherit;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration) var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 251, 247, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 12px rgba(26, 26, 46, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration) var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration) var(--transition);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration) var(--transition);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
  opacity: 0;
  transition: opacity var(--duration) var(--transition);
  z-index: -1;
  filter: blur(12px);
}

.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 40px rgba(255, 56, 92, 0.45);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta.pulse {
  animation: ctaPulse 0.6s ease;
}

@keyframes ctaPulse {
  0% { transform: scale(1.03); }
  50% { transform: scale(1.08); box-shadow: 0 8px 50px rgba(255, 56, 92, 0.5); }
  100% { transform: scale(1.03); }
}

.btn-icon {
  flex-shrink: 0;
}

.btn-chat {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--transition);
}

.btn-chat:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* === Hero Section === */
.hero {
  padding: 120px 0 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.88) 0%, rgba(255, 240, 243, 0.82) 50%, rgba(255, 251, 247, 0.85) 100%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* === Match Form === */
.match-form {
  background: var(--color-bg-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-select {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-main);
  transition: border-color var(--duration) var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

/* === Hero Stats === */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* === Hero Image === */
.hero-image-wrapper {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  animation: badgeFloat 3s ease-in-out infinite;
}

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

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.badge-text {
  font-weight: 600;
  color: var(--color-success);
}

.badge-divider {
  color: var(--color-text-light);
}

.badge-name {
  font-weight: 600;
  color: var(--color-text);
}

.badge-location {
  color: var(--color-text-secondary);
}

.hero-float-card {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--color-bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* === Profiles Section === */
.profiles-section {
  padding: 100px 0;
  background: var(--color-bg-main);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.profile-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--transition);
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.profile-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

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

.profile-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.profile-status.online {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.profile-status.offline {
  background: var(--color-text-light);
}

.profile-heart {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--transition);
}

.profile-heart:hover {
  background: rgba(255, 56, 92, 0.8);
  transform: scale(1.1);
}

.profile-heart.liked {
  background: rgba(255, 56, 92, 0.9);
}

.profile-info {
  padding: 18px;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.profile-name span {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

/* === Male Profiles Section === */
.profiles-section-male {
  background: var(--bg-secondary);
}

.profiles-section-male .section-title {
  color: var(--text-dark);
}

.profiles-section-male .section-subtitle {
  color: var(--text-muted);
}

/* === Features Section === */
.features-section {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* === Stories Section === */
.stories-section {
  padding: 100px 0;
  background: var(--color-bg-main);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.story-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--transition);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-image-wrap {
  height: 280px;
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.story-card:hover .story-image {
  transform: scale(1.03);
}

.story-content {
  padding: 32px;
}

.story-quote {
  position: relative;
  margin-bottom: 24px;
}

.quote-icon {
  position: absolute;
  top: -4px;
  left: -4px;
}

.story-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-style: italic;
  padding-left: 24px;
}

.story-couple {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.story-names {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.story-detail {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: 20px;
}

/* === CTA Banner === */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-primary-deep) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  animation: ctaShimmer 8s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 3%); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-cta {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* === Footer === */
.footer {
  padding: 48px 0 32px;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration) var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 14px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 400px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === Scroll Reveal Animation === */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal-hidden.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-container {
    gap: 40px;
  }

  .hero-image {
    height: 460px;
  }

  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg-main);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s var(--transition);
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-image {
    height: 400px;
  }

  .hero-float-card {
    right: 10px;
    top: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image {
    height: 320px;
  }

  .match-form {
    padding: 20px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    align-items: center;
  }
}

/* ============================================
   INTERACTIVE COMPONENTS
   ============================================ */

/* === Modal Overlay === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--transition);
}

.modal-close:hover {
  background: var(--color-primary);
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-header svg {
  margin: 0 auto 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-main);
  transition: border-color var(--duration) var(--transition);
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.forgot-link {
  color: var(--color-primary);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
}

.terms-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.terms-label a {
  color: var(--color-primary);
}

.modal-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.modal-footer-text a {
  color: var(--color-primary);
  font-weight: 600;
}

.modal-footer-text a:hover {
  text-decoration: underline;
}

/* === Match Results Page === */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--color-bg-main);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition);
}

.page-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-overlay-inner {
  min-height: 100vh;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--transition);
  margin-bottom: 32px;
}

.page-back-btn:hover {
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Match Loading */
.match-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.match-loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.match-loading-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
}

.match-loading-sub {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Match Results Grid */
.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.match-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(20px);
  animation: matchCardIn 0.5s var(--transition) forwards;
  transition: all var(--duration) var(--transition);
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@keyframes matchCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.match-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.match-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

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

.match-compatibility {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 56, 92, 0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.match-info {
  padding: 18px;
}

.match-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.match-name span {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.match-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.match-actions {
  display: flex;
  gap: 10px;
}

.match-actions .btn-chat {
  flex: 1;
}

.btn-heart-match {
  width: 42px;
  height: 42px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--transition);
  flex-shrink: 0;
}

.btn-heart-match:hover {
  background: var(--color-primary);
}

.btn-heart-match:hover svg {
  stroke: #fff;
}

.btn-heart-match.liked {
  background: var(--color-primary);
}

.btn-heart-match.liked svg {
  fill: #fff;
  stroke: #fff;
}

.match-cta {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.match-cta-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* === Chat Panel === */
.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  z-index: 3000;
  background: var(--color-bg-card);
  box-shadow: -4px 0 40px rgba(26, 26, 46, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--transition);
}

.chat-panel.active {
  transform: translateX(0);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.chat-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--duration) var(--transition);
  flex-shrink: 0;
}

.chat-back:hover {
  background: var(--color-primary);
  color: #fff;
}

.chat-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.chat-status.online {
  color: var(--color-success);
}

.chat-translate {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  transition: all var(--duration) var(--transition);
  flex-shrink: 0;
}

.chat-translate.active {
  background: var(--color-primary);
  color: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-bg-main);
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: msgIn 0.3s var(--transition);
}

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

.chat-message.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.received {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-message.sent .chat-bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.received .chat-bubble {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-time {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-main);
  transition: border-color var(--duration) var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-input::placeholder {
  color: var(--color-text-light);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

/* === Toast Notification === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 5000;
  opacity: 0;
  transition: all 0.4s var(--transition);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Responsive: Interactive Components === */
@media (max-width: 768px) {
  .modal {
    margin: 16px;
    padding: 28px 24px;
  }

  .match-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .chat-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .match-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto 48px;
  }

  .form-options {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
