/**
 * LUXESTATE — Design System
 * Takali Digital + Techniques Bolt
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TOKENS CSS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --brand: #2563EB;
  --brand-light: #3B82F6;
  --brand-dark: #1D4ED8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  /* Surfaces */
  --bg-primary: #0A0E1A;
  --bg-secondary: #0F1628;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-elevated: rgba(255, 255, 255, 0.05);
  
  /* Text */
  --text-primary: #F0F4FF;
  --text-secondary: #8892B0;
  --text-muted: #4A5568;
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.07);
  --border-active: rgba(37, 99, 235, 0.3);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-hero: clamp(2.5rem, 5vw, 4rem);
  
  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-light);
}

::selection {
  background: rgba(37, 99, 235, 0.3);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════════════════ */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--success));
  border-radius: 999px;
  animation: loadProgress 2s ease-in-out forwards;
}

.loader-text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

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

@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.orb-1 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 70%);
  top: -200px;
  right: -200px;
  animation: drift 20s ease-in-out infinite;
}

.orb-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  bottom: -300px;
  left: -200px;
  animation: drift 25s ease-in-out infinite reverse;
}

.orb-3 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drift 30s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 100;
  transition: all var(--dur-base) var(--ease-out);
}

.landing-nav.scrolled {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--success));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  transition: width var(--dur-base) var(--ease-out);
}

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

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

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-md);
}

.btn-ghost {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn-ghost-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--success));
  color: white;
  font-weight: 600;
  font-size: var(--fs-md);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pill-tag {
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--brand), var(--success));
  color: white;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.accent-word {
  background: linear-gradient(135deg, var(--brand), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-card-3d {
  transform-style: preserve-3d;
  transition: transform var(--dur-base) var(--ease-out);
}

.property-card-premium {
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.property-card-premium .property-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.property-card-premium .property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--warning), #D97706);
  color: white;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-card-premium .property-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.property-card-premium .property-info {
  padding: 1.25rem;
}

.property-card-premium h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.property-card-premium p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.search-section {
  padding: 3rem 2rem;
  z-index: 1;
  position: relative;
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 24px;
}

.search-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.search-tab {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--fs-sm);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.search-tab.active {
  background: var(--brand);
  color: white;
}

.search-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.search-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

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

.search-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.search-field input,
.search-field select {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--fs-md);
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-field input::placeholder {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

.properties-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}

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

.property-card .property-image {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}

.property-card .property-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-card .property-badge.premium {
  background: linear-gradient(135deg, var(--warning), #D97706);
}

.property-fav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 999px;
  color: white;
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  backdrop-filter: blur(8px);
}

.property-fav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.property-fav.active {
  color: #EF4444;
}

.property-content {
  padding: 1.25rem;
}

.property-content .property-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.property-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.property-location {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.property-features span {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════════════ */

.services-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  z-index: 1;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--dur-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-active);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.1));
  border-radius: 16px;
  font-size: var(--fs-2xl);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-section {
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
}

.contact-content h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-content > p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

.contact-item span {
  font-size: var(--fs-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--fs-md);
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  z-index: 1;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand span {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) var(--ease-out);
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  z-index: 1;
  transform: translateY(20px) scale(0.95);
  transition: all var(--dur-base) var(--ease-out);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

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

.login-role {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-role label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.role-btn span {
  font-size: var(--fs-2xl);
}

.role-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.role-btn.active {
  border-color: var(--brand);
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
}

.login-hint {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.login-hint strong {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT (Client & Admin)
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s var(--ease-out);
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--success));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.sidebar .logo-text {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  list-style: none;
  padding: 0.75rem;
  flex: 1;
}

.nav-menu li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.nav-menu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--brand);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-menu li:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-menu li.active {
  background: var(--bg-card);
  color: var(--brand);
}

.nav-menu li.active::before {
  transform: scaleY(1);
}

.nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 0.5rem;
}

.user-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.user-role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: 2rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notif-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.notif-btn:hover {
  background: var(--bg-elevated);
  transform: scale(1.05);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.logout-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

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

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Stats Grid Dashboard */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.05));
  border-color: var(--border-active);
}

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

.stat-icon {
  font-size: 1.5rem;
}

.stat-trend {
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.stat-trend.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.stat-value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all var(--dur-base) var(--ease-out);
}

.card:hover {
  background: var(--bg-elevated);
}

.card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  font-size: var(--fs-sm);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover td {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.status.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all var(--dur-fast) var(--ease-out);
}

.activity-item:hover {
  background: var(--bg-card);
  border-color: var(--border-active);
  transform: translateX(5px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.activity-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.activity-icon.info {
  background: rgba(37, 99, 235, 0.15);
  color: var(--brand);
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.activity-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-text {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.activity-time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Profile Card */
.profile-card {
  max-width: 600px;
  padding: 2rem;
  border-radius: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.profile-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 12px;
}

.profile-stat .stat {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 0.25rem;
}

.profile-stat span:last-child {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: all 600ms var(--ease-out);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 9999;
  animation: slideInRight 0.4s ease forwards;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.notification.error {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 5rem 1rem 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-container {
    padding: 1rem;
  }
  
  .properties-grid {
    gap: 1rem;
  }
  
  .contact-container {
    padding: 1.5rem;
  }
  
  .stats-grid {
    gap: 1rem;
  }
  
  .footer {
    padding: 3rem 1rem 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-3xl);
  }
  
  .section-header h2 {
    font-size: var(--fs-2xl);
  }
  
  .property-card-premium {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

@supports (padding: max(0px)) {
  .landing-nav {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}
