:root {
  --sunflower-gold: #F6C445;
  --warm-yellow: #FFD95A;
  --soft-cream: #FFF9EF;
  --romantic-pink: #FF8FAB;
  --dark-text: #222222;
  --light-bg: #FFFFFF;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.3s ease-in-out;
}

body.dark-mode {
  --soft-cream: #121212;
  --light-bg: #1e1e1e;
  --dark-text: #f5f5f5;
  --warm-yellow: #332d1d;
}

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 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-color: var(--soft-cream);
  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: 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);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* 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: none !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.html */
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);
}
