:root {
  --sunflower-gold: #F6C445;
  --warm-yellow: #FFD95A;
  --soft-cream: #FFFDF9;
  --romantic-pink: #FF8FAB;
  --dark-text: #1A1A1A;
  --light-bg: #FFFFFF;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gold-gradient: linear-gradient(135deg, #F6C445 0%, #FFD95A 100%);
  --sunset-gradient: linear-gradient(135deg, #F6C445 0%, #FF8FAB 100%);
  --card-shadow: 0 12px 40px rgba(246, 196, 69, 0.08);
}

body.dark-mode {
  --soft-cream: #0F0F0E;
  --light-bg: #1A1A18;
  --dark-text: #F5F5F0;
  --warm-yellow: #262217;
  --sunflower-gold: #E5B22F;
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(rgba(15, 15, 14, 0.95), rgba(15, 15, 14, 0.95)), url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?w=1920&q=80');
}

body.dark-mode .glass-card,
body.dark-mode .navbar,
body.dark-mode .bottom-nav,
body.dark-mode .tabs-header,
body.dark-mode .active-matches-container,
body.dark-mode .chat-room,
body.dark-mode .chat-header,
body.dark-mode .chat-input-area,
body.dark-mode .msg.received,
body.dark-mode .inbox-item,
body.dark-mode #auth-modal,
body.dark-mode .swipe-card {
  background: var(--light-bg) !important;
  color: var(--dark-text) !important;
  border-color: #333 !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

body.dark-mode .glass-card {
  background: rgba(30, 30, 30, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--dark-text) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}


body.dark-mode input,
body.dark-mode .chat-input {
  background: #2a2a2a !important;
  color: #fff !important;
  border-color: #444 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode span {
  color: var(--dark-text);
}

body.dark-mode .hero-section {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background-image: linear-gradient(rgba(255, 253, 249, 0.90), rgba(255, 253, 249, 0.90)), url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?w=1920&q=80');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* User requirement: Add border radius to all sections */
section {
  border-radius: var(--border-radius-lg);
  background-color: var(--light-bg);
  padding: 40px 20px;
  margin: 0 auto 20px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-section {
  background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-yellow) 100%);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(34, 34, 34, 0.8);
}

.btn-primary {
  background-color: var(--sunflower-gold);
  color: var(--dark-text);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(246, 196, 69, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(246, 196, 69, 0.6);
  background-color: var(--warm-yellow);
}

.btn-premium {
  background: linear-gradient(135deg, var(--romantic-pink) 0%, var(--sunflower-gold) 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 143, 171, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 143, 171, 0.6);
  filter: brightness(1.05);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 30px 25px;
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.06) !important;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--light-bg);
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.bottom-nav a i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.bottom-nav a.active, .bottom-nav a:hover {
  color: var(--sunflower-gold);
}

/* Hide on desktop by default */
.desktop-only {
  display: block;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: var(--light-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sunflower-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--sunflower-gold);
}

/* Custom Cursor */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--sunflower-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(246, 196, 69, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-glow.hover-active {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 107, 107, 0.3);
}

.custom-cursor-dot.hover-active {
  background-color: var(--romantic-pink);
  width: 12px;
  height: 12px;
}

@media (min-width: 1024px) {
  body, a, button, input, select, textarea, .glass-card {
    cursor: auto !important;
  }
}

@media (max-width: 1023px) {
  .custom-cursor-dot, .custom-cursor-glow {
    display: none !important;
  }
}

/* --- MATRIMONY MODE --- */
body.matrimony-mode {
  --sunflower-gold: #D4AF37; /* Traditional Gold */
  --warm-yellow: #8B0000; /* Deep Maroon / Red */
  --romantic-pink: #A52A2A; /* Deep Brown/Red */
  --light-bg: #fffcf8; /* Soft traditional cream */
  background-color: var(--light-bg);
}

.matrimony-only {
  display: none !important;
}

body.matrimony-mode .matrimony-only {
  display: block !important;
}

body.matrimony-mode .dating-only {
  display: none !important;
}

body.matrimony-mode span.matrimony-only,
body.matrimony-mode i.matrimony-only,
body.matrimony-mode strong.matrimony-only {
  display: inline-block !important;
}

/* Overrides for hardcoded internal styles in index.php */
body.matrimony-mode .text-gradient {
  background: linear-gradient(135deg, #8B0000 0%, #D4AF37 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.matrimony-mode .btn-premium {
  background: linear-gradient(135deg, #8B0000 0%, #D4AF37 100%) !important;
  box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4) !important;
}

body.matrimony-mode .btn-premium::before {
  background: linear-gradient(135deg, #D4AF37 0%, #8B0000 100%) !important;
}

/* Switch UI */
.matrimony-switch-container {
    background: linear-gradient(135deg, var(--romantic-pink) 0%, var(--sunflower-gold) 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}
body.matrimony-mode .matrimony-switch-container {
    background: linear-gradient(135deg, var(--warm-yellow) 0%, var(--sunflower-gold) 100%);
}

.matrimony-switch-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: white;
}
.matrimony-switch-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: white;
}
.matrimony-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.matrimony-toggle-btn:hover {
    background: white;
    color: var(--dark-text);
}

/* Footer Details Reset (preventing white backgrounds inside dark footer) */
.footer-section details {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  box-shadow: none !important;
}

.footer-section details[open] {
  box-shadow: none !important;
}

.footer-section details summary {
  color: #ddd !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.footer-section details a {
  color: #aaa !important;
}

.footer-section details a:hover {
  color: var(--sunflower-gold) !important;
}

/* Custom Global Modal Styling */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  box-sizing: border-box;
  padding: 20px;
}

.custom-modal-content {
  background: var(--light-bg);
  color: var(--dark-text);
  border-radius: 24px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  border: 2px solid var(--romantic-pink);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

body.dark-mode .custom-modal-content {
  background: var(--light-bg) !important;
  color: var(--dark-text) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile Profile Popup Drawer / Menu list styles */
.profile-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.profile-popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 15px 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.profile-popup-item i {
  font-size: 1.6rem;
  color: var(--sunflower-gold);
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}
.profile-popup-item:hover {
  background: rgba(246, 196, 69, 0.08);
  border-color: var(--sunflower-gold);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(246, 196, 69, 0.12);
}
.profile-popup-item:hover i {
  transform: scale(1.1);
}
body.dark-mode .profile-popup-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--dark-text);
}
body.dark-mode .profile-popup-item:hover {
  background: rgba(246, 196, 69, 0.15);
  border-color: var(--sunflower-gold);
  box-shadow: 0 8px 20px rgba(246, 196, 69, 0.2);
}

/* Notifications Styling */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--light-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease-in-out;
  text-align: left;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border-color: rgba(246, 196, 69, 0.3);
}

.notification-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon-wrapper i {
  font-size: 1.4rem;
}

/* Icon type styles */
.notification-icon-wrapper.welcome {
  background: rgba(255, 143, 171, 0.15);
  color: var(--romantic-pink);
}

.notification-icon-wrapper.like {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
}

.notification-icon-wrapper.payment {
  background: rgba(246, 196, 69, 0.15);
  color: var(--sunflower-gold);
}

.notification-icon-wrapper.admin_location {
  background: rgba(74, 144, 226, 0.15);
  color: #4a90e2;
}

.notification-icon-wrapper.verification {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.notification-icon-wrapper.profile_view {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
}

.notification-icon-wrapper.private_album {
  background: rgba(103, 58, 183, 0.15);
  color: #673ab7;
}

.notification-icon-wrapper.favorite {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.notification-icon-wrapper.gift {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
}

.notification-icon-wrapper.crush {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-text);
  margin: 0 0 5px 0;
}

.notification-body {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.notification-time {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

body.dark-mode .notification-card {
  background: var(--light-bg) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .notification-body {
  color: #bbb;
}

/* Navigation Badge Styling */
.nav-link-item, .bottom-nav a {
  position: relative;
}

.nav-link-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--romantic-pink);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(255, 143, 171, 0.4);
}

.bottom-nav a .nav-link-badge {
  top: 2px;
  right: calc(50% - 15px);
}

.nav-link-badge.badge-yellow {
  background: var(--sunflower-gold);
  color: #000;
  box-shadow: 0 2px 5px rgba(246, 196, 69, 0.4);
}

/* Custom Sunflower Decal and Floating Badge Animations */
.hero-sunflower-bg {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: clamp(280px, 35vw, 400px);
  height: clamp(280px, 35vw, 400px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  animation: spinSlow 35s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(246, 196, 69, 0.15));
}

.hero-sunflower-bg-left {
  position: absolute;
  left: -80px;
  top: -50px;
  width: clamp(200px, 25vw, 280px);
  height: clamp(200px, 25vw, 280px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  animation: spinSlow 45s linear infinite reverse;
  filter: drop-shadow(0 4px 10px rgba(246, 196, 69, 0.1));
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Enhancements for Couple Card Stack badge interactions */
.floating-badge {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, background-color 0.3s;
}

.couple-card-stack:hover .badge-compatibility {
  transform: translate(-35px, -15px) scale(1.08) rotate(-6deg);
  background: white;
  box-shadow: 0 10px 25px rgba(255, 143, 171, 0.25);
}

.couple-card-stack:hover .badge-verified {
  transform: translate(30px, 15px) scale(1.08) rotate(4deg);
  background: white;
  box-shadow: 0 10px 25px rgba(246, 196, 69, 0.25);
}

.couple-card-stack:hover .badge-location {
  transform: translate(35px, -10px) scale(1.08) rotate(6deg);
  background: white;
  box-shadow: 0 10px 25px rgba(246, 196, 69, 0.2);
}

/* Title Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--sunflower-gold) 0%, var(--romantic-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Feature icon watermarks adjustments */
.feature-card:hover .feature-sunflower-icon {
  transform: rotate(180deg) scale(1.15);
  opacity: 0.25;
  transition: all 0.8s ease;
}

/* Smooth active state glow for CTA buttons */
.btn-hero-primary {
  background: var(--sunset-gradient) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, filter 0.3s;
  box-shadow: 0 6px 20px rgba(255, 143, 171, 0.35);
}
.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 143, 171, 0.5);
  filter: brightness(1.05);
}



