/* ============================================
   PropertyParking DESIGN SYSTEM v2.0
   ============================================ */

:root {
  /* === COLORS: Brand === */
  --oz-primary-50: #eff6ff;
  --oz-primary-100: #dbeafe;
  --oz-primary-200: #bfdbfe;
  --oz-primary-300: #93c5fd;
  --oz-primary-400: #60a5fa;
  --oz-primary-500: #3b82f6;
  --oz-primary-600: #2563eb;
  --oz-primary-700: #1d4ed8;
  --oz-primary-800: #1e40af;
  --oz-primary-900: #1e3a8a;
  
  /* === COLORS: Neutral === */
  --oz-gray-50: #f8fafc;
  --oz-gray-100: #f1f5f9;
  --oz-gray-200: #e2e8f0;
  --oz-gray-300: #cbd5e1;
  --oz-gray-400: #94a3b8;
  --oz-gray-500: #64748b;
  --oz-gray-600: #475569;
  --oz-gray-700: #334155;
  --oz-gray-800: #1e293b;
  --oz-gray-900: #0f172a;
  
  /* === COLORS: Semantic === */
  --oz-success: #10b981;
  --oz-success-light: #d1fae5;
  --oz-warning: #f59e0b;
  --oz-warning-light: #fef3c7;
  --oz-error: #ef4444;
  --oz-error-light: #fee2e2;
  --oz-purple: #8b5cf6;
  --oz-purple-light: #ede9fe;
  
  /* === SPACING === */
  --oz-space-1: 0.25rem;
  --oz-space-2: 0.5rem;
  --oz-space-3: 0.75rem;
  --oz-space-4: 1rem;
  --oz-space-5: 1.25rem;
  --oz-space-6: 1.5rem;
  --oz-space-8: 2rem;
  --oz-space-10: 2.5rem;
  --oz-space-12: 3rem;
  
  /* === TYPOGRAPHY === */
  --oz-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --oz-text-xs: 0.75rem;
  --oz-text-sm: 0.875rem;
  --oz-text-base: 1rem;
  --oz-text-lg: 1.125rem;
  --oz-text-xl: 1.25rem;
  --oz-text-2xl: 1.5rem;
  --oz-text-3xl: 1.875rem;
  --oz-text-4xl: 2.25rem;
  
  /* === BORDER RADIUS === */
  --oz-radius-sm: 6px;
  --oz-radius-md: 8px;
  --oz-radius-lg: 12px;
  --oz-radius-xl: 16px;
  --oz-radius-2xl: 24px;
  --oz-radius-full: 9999px;
  
  /* === SHADOWS === */
  --oz-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --oz-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --oz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --oz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --oz-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --oz-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  
  /* === TRANSITIONS === */
  --oz-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --oz-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --oz-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --oz-duration-fast: 150ms;
  --oz-duration-normal: 200ms;
  --oz-duration-slow: 300ms;
  
  /* === Z-INDEX === */
  --oz-z-dropdown: 100;
  --oz-z-sticky: 200;
  --oz-z-overlay: 300;
  --oz-z-modal: 400;
  --oz-z-toast: 500;
}

/* ========== BASE RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--oz-font-sans);
  font-size: var(--oz-text-base);
  line-height: 1.6;
  color: var(--oz-gray-900);
  background: var(--oz-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, var(--oz-gray-900) 0%, var(--oz-gray-800) 100%);
  color: var(--oz-gray-200);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: var(--oz-z-sticky);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--oz-space-3) var(--oz-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oz-space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--oz-space-3);
  text-decoration: none;
  transition: opacity var(--oz-duration-normal) var(--oz-ease-default);
}

.logo:hover {
  opacity: 0.9;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--oz-radius-lg);
  background: linear-gradient(135deg, var(--oz-primary-500) 0%, var(--oz-primary-600) 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--oz-text-lg);
  color: white;
}

.logo-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.logo-mark span {
  display: none;
  line-height: 1;
}

.logo-mark.fallback span {
  display: block;
}

.logo-mark.fallback img {
  display: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-brand {
  font-size: var(--oz-text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}

.logo-tagline {
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-400);
  font-weight: 400;
}

.logo-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-400);
  font-weight: 400;
  white-space: nowrap;
}

.logo-powered-img {
  height: 16px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--oz-space-3);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--oz-space-2);
  padding: var(--oz-space-2) var(--oz-space-4);
  border-radius: var(--oz-radius-md);
  font-size: var(--oz-text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--oz-duration-normal) var(--oz-ease-out);
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

.nav-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--oz-gray-300);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.nav-btn-primary {
  background: linear-gradient(135deg, var(--oz-primary-500) 0%, var(--oz-primary-600) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, var(--oz-primary-600) 0%, var(--oz-primary-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(148, 163, 184, 0.3);
  margin: 0 var(--oz-space-1);
}

@media (max-width: 1024px) {
  .nav-btn span {
    display: none;
  }
  
  .nav {
    gap: var(--oz-space-2);
  }
  
  .nav-btn {
    padding: var(--oz-space-2);
  }
  
  .nav-divider {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: var(--oz-space-3) var(--oz-space-4);
  }
  
  .logo-text {
    display: none;
  }
  
  .nav {
    gap: var(--oz-space-1);
  }
  
  .nav-btn {
    padding: var(--oz-space-2);
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80") center/cover;
  padding: var(--oz-space-12) var(--oz-space-6);
  color: white;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--oz-gray-50));
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: var(--oz-space-6);
  margin-bottom: var(--oz-space-6);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--oz-space-2);
  font-size: var(--oz-text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--oz-success);
}

.trust-item strong {
  font-weight: 600;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oz-space-4);
  margin-bottom: var(--oz-space-4);
  flex-wrap: wrap;
}

.hero-title {
  font-size: var(--oz-text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about-toggle {
  display: flex;
  align-items: center;
  gap: var(--oz-space-2);
  padding: var(--oz-space-2) var(--oz-space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--oz-radius-full);
  color: white;
  font-size: var(--oz-text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--oz-duration-normal) var(--oz-ease-out);
  backdrop-filter: blur(8px);
}

.about-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.about-toggle-icon {
  transition: transform var(--oz-duration-slow) var(--oz-ease-out);
}

.about-toggle.open .about-toggle-icon {
  transform: rotate(180deg);
}

.hero-subtitle {
  font-size: var(--oz-text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--oz-space-6);
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--oz-space-4);
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--oz-space-2);
  padding: var(--oz-space-4) var(--oz-space-6);
  background: linear-gradient(135deg, var(--oz-primary-500) 0%, var(--oz-primary-600) 100%);
  color: white;
  font-size: var(--oz-text-base);
  font-weight: 600;
  border-radius: var(--oz-radius-full);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all var(--oz-duration-normal) var(--oz-ease-out);
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.hero-cta svg {
  transition: transform var(--oz-duration-fast) var(--oz-ease-out);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--oz-space-2);
  padding: var(--oz-space-4) var(--oz-space-6);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--oz-text-base);
  font-weight: 600;
  border-radius: var(--oz-radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: all var(--oz-duration-normal) var(--oz-ease-out);
  cursor: pointer;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--oz-gray-200);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--oz-duration-slow) var(--oz-ease-out);
}

.about-section.open {
  max-height: 400px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--oz-space-8) var(--oz-space-6);
}

.about-content p {
  color: var(--oz-gray-600);
  font-size: var(--oz-text-base);
  line-height: 1.8;
  max-width: 800px;
}

/* ========== FEATURES BAR ========== */
.features-bar {
  background: white;
  border-bottom: 1px solid var(--oz-gray-200);
  padding: var(--oz-space-6);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--oz-space-6);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--oz-space-4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--oz-radius-lg);
  background: var(--oz-success-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--oz-success);
}

.feature-text {
  flex: 1;
}

.feature-label {
  font-size: var(--oz-text-sm);
  font-weight: 600;
  color: var(--oz-gray-900);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-500);
}

/* ========== MAIN CONTENT ========== */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--oz-space-10) var(--oz-space-6);
  flex: 1;
  width: 100%;
}

.section-header {
  margin-bottom: var(--oz-space-8);
}

.section-title {
  font-size: var(--oz-text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--oz-space-2);
  color: var(--oz-gray-900);
}

.section-subtitle {
  font-size: var(--oz-text-base);
  color: var(--oz-gray-500);
}

/* ========== FILTER SECTION ========== */
.filter-section {
  display: none;
  margin-bottom: var(--oz-space-6);
  padding: var(--oz-space-4);
  background: white;
  border-radius: var(--oz-radius-lg);
  border: 1px solid var(--oz-gray-200);
}

.filter-section.show {
  display: flex;
  align-items: center;
  gap: var(--oz-space-4);
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: var(--oz-space-2);
  flex-wrap: wrap;
  flex: 1;
}

.filter-chip {
  padding: var(--oz-space-2) var(--oz-space-4);
  background: var(--oz-gray-100);
  border: 1px solid var(--oz-gray-200);
  border-radius: var(--oz-radius-full);
  font-size: var(--oz-text-sm);
  font-weight: 500;
  color: var(--oz-gray-700);
  cursor: pointer;
  transition: all var(--oz-duration-fast) var(--oz-ease-default);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--oz-primary-500);
  border-color: var(--oz-primary-500);
  color: white;
}

.search-input {
  padding: var(--oz-space-2) var(--oz-space-4);
  border: 1px solid var(--oz-gray-300);
  border-radius: var(--oz-radius-lg);
  font-size: var(--oz-text-sm);
  font-family: inherit;
  width: 220px;
  transition: all var(--oz-duration-fast) var(--oz-ease-default);
}

.search-input:focus {
  outline: none;
  border-color: var(--oz-primary-500);
  box-shadow: 0 0 0 3px var(--oz-primary-100);
}

/* P1-4 FIX: Disabled search styling */
.search-input:disabled {
  background: var(--oz-gray-100);
  color: var(--oz-gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}


/* ========== SPACES GRID - ADAPTIVE LAYOUTS ========== */
/* Default: Standard Grid (N=3-6) */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--oz-space-6);
}

/* N=1: Spotlight Mode - Single large card with special layout */
.spaces-grid[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.spaces-grid[data-count="1"] .space-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--oz-space-8);
}

.spaces-grid[data-count="1"] .space-card-image {
  height: 400px;
  border-radius: var(--oz-radius-xl);
}

.spaces-grid[data-count="1"] .space-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* N=2: Compare Mode - Wide cards side by side */
.spaces-grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--oz-space-8);
}

.spaces-grid[data-count="2"] .space-card-image {
  height: 240px;
}

/* N=3-6: Standard Grid (default) - already defined above */

/* N=7-12: Discovery Mode - Compact 4-column grid */
.spaces-grid[data-count="7"],
.spaces-grid[data-count="8"],
.spaces-grid[data-count="9"],
.spaces-grid[data-count="10"],
.spaces-grid[data-count="11"],
.spaces-grid[data-count="12"] {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--oz-space-5);
}

.spaces-grid[data-count="7"] .space-card-image,
.spaces-grid[data-count="8"] .space-card-image,
.spaces-grid[data-count="9"] .space-card-image,
.spaces-grid[data-count="10"] .space-card-image,
.spaces-grid[data-count="11"] .space-card-image,
.spaces-grid[data-count="12"] .space-card-image {
  height: 180px;
}

/* N>12: Max Density - Even more compact */
.spaces-grid[data-count="13"],
.spaces-grid[data-count="14"],
.spaces-grid[data-count="15"],
.spaces-grid[data-count="16"],
.spaces-grid[data-count="17"],
.spaces-grid[data-count="18"],
.spaces-grid[data-count="19"],
.spaces-grid[data-count="20"] {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--oz-space-4);
}

.spaces-grid[data-count="13"] .space-card,
.spaces-grid[data-count="14"] .space-card,
.spaces-grid[data-count="15"] .space-card,
.spaces-grid[data-count="16"] .space-card,
.spaces-grid[data-count="17"] .space-card,
.spaces-grid[data-count="18"] .space-card,
.spaces-grid[data-count="19"] .space-card,
.spaces-grid[data-count="20"] .space-card {
  font-size: 0.9em;
}

.spaces-grid[data-count="13"] .space-card-image,
.spaces-grid[data-count="14"] .space-card-image,
.spaces-grid[data-count="15"] .space-card-image,
.spaces-grid[data-count="16"] .space-card-image,
.spaces-grid[data-count="17"] .space-card-image,
.spaces-grid[data-count="18"] .space-card-image,
.spaces-grid[data-count="19"] .space-card-image,
.spaces-grid[data-count="20"] .space-card-image {
  height: 160px;
}

/* ========== SPACE CARD - PREMIUM ========== */
.space-card {
  position: relative;
  background: white;
  border-radius: var(--oz-radius-xl);
  border: 1px solid var(--oz-gray-200);
  overflow: hidden;
  transition: 
    transform var(--oz-duration-slow) var(--oz-ease-out),
    box-shadow var(--oz-duration-slow) var(--oz-ease-out),
    border-color var(--oz-duration-normal) var(--oz-ease-default);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.space-card:hover {
  transform: translateY(-8px);
  border-color: var(--oz-primary-300);
  box-shadow: 
    0 20px 40px -15px rgba(37, 99, 235, 0.15),
    0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

.space-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--oz-primary-200);
}

/* Card image */
.space-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.space-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--oz-duration-slow) var(--oz-ease-out);
}

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

/* Badge with glassmorphism */
.space-card-badge {
  position: absolute;
  top: var(--oz-space-3);
  right: var(--oz-space-3);
  padding: var(--oz-space-2) var(--oz-space-3);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--oz-radius-full);
  font-size: var(--oz-text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--oz-space-2);
  z-index: 2;
  box-shadow: var(--oz-shadow-md);
}

.space-card-badge.available {
  color: var(--oz-success);
}

.space-card-badge.limited {
  color: var(--oz-warning);
  color: #d97706;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Content */
.space-card-content {
  padding: var(--oz-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--oz-space-4);
  flex: 1;
}

.space-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--oz-space-3);
}

.space-card-info {
  flex: 1;
  min-width: 0;
}

.space-card-title {
  font-size: var(--oz-text-lg);
  font-weight: 700;
  color: var(--oz-gray-900);
  margin-bottom: var(--oz-space-2);
  line-height: 1.3;
}

/* Meta */
.space-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oz-space-4);
  color: var(--oz-gray-500);
  font-size: var(--oz-text-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--oz-space-2);
}

.meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--oz-gray-400);
}

/* Status badge */
.status-badge {
  padding: var(--oz-space-1) var(--oz-space-3);
  border-radius: var(--oz-radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.status-available {
  background: var(--oz-success-light);
  color: #047857;
}

.status-free {
  background: var(--oz-primary-100);
  color: var(--oz-primary-700);
}


/* Pricing */
.space-card-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--oz-space-4);
  border-top: 1px solid var(--oz-gray-100);
  margin-top: auto;
}

.pricing-label {
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-500);
}

.pricing-amount {
  font-size: var(--oz-text-xl);
  font-weight: 800;
  color: var(--oz-gray-900);
}

.pricing-amount.free {
  color: var(--oz-success);
}

/* CTA Button with shine effect */
.space-card-cta {
  position: relative;
  width: 100%;
  padding: var(--oz-space-4);
  background: linear-gradient(135deg, var(--oz-primary-500), var(--oz-primary-600));
  color: white;
  font-size: var(--oz-text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--oz-radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: 
    transform var(--oz-duration-fast) var(--oz-ease-out),
    box-shadow var(--oz-duration-fast) var(--oz-ease-out);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--oz-space-2);
  font-family: inherit;
}

.space-card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.space-card:hover .space-card-cta::before {
  left: 100%;
}

.space-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.space-card-cta:active {
  transform: translateY(0);
}

.space-card-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--oz-duration-fast) var(--oz-ease-out);
}

.space-card-cta:hover svg {
  transform: translateX(4px);
}

/* Loading state - LEGACY (now using ui-states.css for skeleton screens) */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--oz-space-12) var(--oz-space-8);
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--oz-gray-200);
  border-top-color: var(--oz-primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--oz-space-4);
}

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

.loading-text {
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
}

/* Empty state - LEGACY (now using ui-states.css for illustrated states) */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--oz-space-12);
  background: white;
  border-radius: var(--oz-radius-xl);
  border: 1px solid var(--oz-gray-200);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--oz-space-4);
}

.empty-state-title {
  font-size: var(--oz-text-xl);
  font-weight: 700;
  color: var(--oz-gray-900);
  margin-bottom: var(--oz-space-2);
}

.empty-state-text {
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: var(--oz-space-4);
  z-index: var(--oz-z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity var(--oz-duration-slow) var(--oz-ease-out),
    visibility var(--oz-duration-slow);
}

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

.modal {
  background: white;
  border-radius: var(--oz-radius-2xl);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: 
    transform var(--oz-duration-slow) var(--oz-ease-bounce),
    opacity var(--oz-duration-slow) var(--oz-ease-out);
}

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

.modal-header {
  padding: var(--oz-space-6) var(--oz-space-6) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--oz-space-4);
}

.modal-title {
  font-size: var(--oz-text-xl);
  font-weight: 700;
  color: var(--oz-gray-900);
}

.modal-subtitle {
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
  margin-top: var(--oz-space-1);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--oz-gray-100);
  border: none;
  border-radius: var(--oz-radius-md);
  color: var(--oz-gray-500);
  cursor: pointer;
  transition: all var(--oz-duration-fast) var(--oz-ease-out);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--oz-error-light);
  color: var(--oz-error);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--oz-space-6);
}

/* Form styles */
.form-group {
  margin-bottom: var(--oz-space-4);
}

.form-label {
  display: block;
  font-size: var(--oz-text-sm);
  font-weight: 600;
  color: var(--oz-gray-700);
  margin-bottom: var(--oz-space-2);
}

.form-input {
  width: 100%;
  padding: var(--oz-space-3) var(--oz-space-4);
  border: 2px solid var(--oz-gray-200);
  border-radius: var(--oz-radius-lg);
  font-size: var(--oz-text-base);
  font-family: inherit;
  color: var(--oz-gray-900);
  background: white;
  transition: all var(--oz-duration-fast) var(--oz-ease-default);
}

.form-input:focus {
  outline: none;
  border-color: var(--oz-primary-400);
  box-shadow: 0 0 0 3px var(--oz-primary-100);
}

.form-input::placeholder {
  color: var(--oz-gray-400);
}

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

.form-hint {
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-500);
  margin-top: var(--oz-space-1);
}

/* Alerts */
.form-alert {
  display: none;
  align-items: flex-start;
  gap: var(--oz-space-3);
  padding: var(--oz-space-4);
  border-radius: var(--oz-radius-lg);
  font-size: var(--oz-text-sm);
  margin-bottom: var(--oz-space-4);
}

.form-alert.visible {
  display: flex;
}

.form-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-alert.error {
  background: var(--oz-error-light);
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-alert.success {
  background: var(--oz-success-light);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-alert.warning {
  background: var(--oz-warning-light);
  color: #b45309;
  border: 1px solid #fde68a;
}

.form-alert.info {
  background: var(--oz-primary-50);
  color: var(--oz-primary-700);
  border: 1px solid var(--oz-primary-200);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--oz-space-2);
  padding: var(--oz-space-4) var(--oz-space-6);
  border-radius: var(--oz-radius-lg);
  font-size: var(--oz-text-base);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--oz-duration-fast) var(--oz-ease-out);
  border: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--oz-primary-500) 0%, var(--oz-primary-600) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.loading {
  pointer-events: none;
  color: transparent;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.modal-footer-text {
  text-align: center;
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
  margin-top: var(--oz-space-4);
}

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

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

/* Success state */
.success-state {
  text-align: center;
  padding: var(--oz-space-4) 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--oz-success-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--oz-space-4);
  animation: success-pop 0.5s var(--oz-ease-bounce);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--oz-success);
}

.success-title {
  font-size: var(--oz-text-lg);
  font-weight: 700;
  color: var(--oz-gray-900);
  margin-bottom: var(--oz-space-2);
}

.success-message {
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--oz-gray-900) 0%, var(--oz-gray-800) 100%);
  color: var(--oz-gray-200);

  border-top: 1px solid var(--oz-gray-200);
  padding: var(--oz-space-8) var(--oz-space-6);
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--oz-space-4);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--oz-space-1);
}

.footer-brand-name {
  font-size: var(--oz-text-base);
  font-weight: 700;
  color: var(--oz-gray-100);
}

.footer-brand-tagline {
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-500);
}

.footer-links {
  display: flex;
  gap: var(--oz-space-6);
}

.footer-links a {
  font-size: var(--oz-text-sm);
  color: var(--oz-gray-500);
  text-decoration: none;
  transition: color var(--oz-duration-fast);
}

.footer-links a:hover {
  color: var(--oz-primary-600);
}

.footer-credits {
  width: 100%;
  text-align: center;
  padding-top: var(--oz-space-6);
  margin-top: var(--oz-space-6);
  border-top: 1px solid var(--oz-gray-100);
  font-size: var(--oz-text-xs);
  color: var(--oz-gray-400);
}

.footer-credits a {
  color: var(--oz-primary-600);
  text-decoration: none;
  font-weight: 500;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  /* Override adaptive grids for tablets */
  .spaces-grid,
  .spaces-grid[data-count="7"],
  .spaces-grid[data-count="8"],
  .spaces-grid[data-count="9"],
  .spaces-grid[data-count="10"],
  .spaces-grid[data-count="11"],
  .spaces-grid[data-count="12"],
  .spaces-grid[data-count="13"],
  .spaces-grid[data-count="14"],
  .spaces-grid[data-count="15"],
  .spaces-grid[data-count="16"],
  .spaces-grid[data-count="17"],
  .spaces-grid[data-count="18"],
  .spaces-grid[data-count="19"],
  .spaces-grid[data-count="20"] {
    grid-template-columns: repeat(2, 1fr);
  }

  /* N=1 spotlight stays wide on tablet */
  .spaces-grid[data-count="1"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* All grids become single column on mobile */
  .spaces-grid,
  .spaces-grid[data-count="2"],
  .spaces-grid[data-count="3"],
  .spaces-grid[data-count="4"],
  .spaces-grid[data-count="5"],
  .spaces-grid[data-count="6"],
  .spaces-grid[data-count="7"],
  .spaces-grid[data-count="8"],
  .spaces-grid[data-count="9"],
  .spaces-grid[data-count="10"],
  .spaces-grid[data-count="11"],
  .spaces-grid[data-count="12"],
  .spaces-grid[data-count="13"],
  .spaces-grid[data-count="14"],
  .spaces-grid[data-count="15"],
  .spaces-grid[data-count="16"],
  .spaces-grid[data-count="17"],
  .spaces-grid[data-count="18"],
  .spaces-grid[data-count="19"],
  .spaces-grid[data-count="20"] {
    grid-template-columns: 1fr !important;
  }

  /* N=1 spotlight becomes stacked on mobile */
  .spaces-grid[data-count="1"] .space-card {
    grid-template-columns: 1fr;
  }

  .spaces-grid[data-count="1"] .space-card-image {
    height: 250px;
  }

  .header-inner {
    padding: var(--oz-space-3) var(--oz-space-4);
  }

  .logo-text {
    display: none;
  }

  .nav-btn span {
    display: none;
  }

  .nav-btn {
    padding: var(--oz-space-2);
  }

  .nav-btn svg {
    width: 20px;
    height: 20px;
  }


  .hero {
    padding: var(--oz-space-8) var(--oz-space-4);
  }

  .hero-title {
    font-size: var(--oz-text-2xl);
  }

  .hero-subtitle {
    font-size: var(--oz-text-base);
  }

  .trust-bar {
    gap: var(--oz-space-4);
  }

  .trust-item {
    font-size: var(--oz-text-xs);
  }

  .spaces-grid {
    grid-template-columns: 1fr;
    gap: var(--oz-space-4);
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--oz-space-4);
  }

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

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .features-container {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

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

/* ============================================
   CSP-COMPLIANT UTILITY CLASSES
   JS inline style yerine class toggle iÃ§in
   ============================================ */

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Modal open - body scroll lock */
body.modal-open {
  overflow: hidden;
}

/* Empty state container (JS createEmptyState iÃ§in) */
.empty-state-container {
  text-align: center;
  padding: 48px 24px;
  color: var(--oz-gray-500, #64748b);
  grid-column: 1 / -1;
  background: white;
  border-radius: var(--oz-radius-xl, 16px);
  border: 1px solid var(--oz-gray-200, #e2e8f0);
}

.empty-state-container.empty-state-error .empty-state-title {
  color: var(--oz-error, #ef4444);
}

.empty-state-icon-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-container .empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--oz-gray-900, #1e293b);
  margin-bottom: 8px;
}

.empty-state-container .empty-state-description {
  margin-bottom: 24px;
  line-height: 1.6;
}

.empty-state-container .empty-state-action {
  padding: 12px 24px;
  background: var(--oz-primary-600, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.empty-state-container .empty-state-action:hover {
  background: var(--oz-primary-700, #1d4ed8);
  transform: translateY(-2px);
}