/* ==========================================================================
   UnitEx — Egyptian Real Estate Marketplace & Contract Assignment Platform
   Styles: Modern, Premium, RTL-First, Dark Mode Default, Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Dark Mode Palette (Default) */
  --bg-base: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-hover: #222d44;
  --bg-overlay: rgba(9, 13, 22, 0.85);

  --border-subtle: #1f293d;
  --border-medium: #2e3d5b;
  --border-highlight: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-subtle: rgba(59, 130, 246, 0.15);

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.15);

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-subtle: rgba(245, 158, 11, 0.15);

  --accent-rose: #ef4444;
  --accent-rose-subtle: rgba(239, 68, 68, 0.15);

  --accent-purple: #8b5cf6;
  --accent-purple-subtle: rgba(139, 92, 246, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-tajawal: 'Tajawal', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-overlay: rgba(15, 23, 42, 0.7);

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-subtle: rgba(37, 99, 235, 0.08);

  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.1);

  --accent-amber: #d97706;
  --accent-amber-hover: #b45309;
  --accent-amber-subtle: rgba(217, 119, 6, 0.1);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.12);
  --shadow-glow-emerald: 0 0 20px rgba(5, 150, 105, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Prototype Role-Switcher Banner
   -------------------------------------------------------------------------- */
.prototype-banner {
  background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.prototype-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
}

.role-switch-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-btn {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.role-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.role-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 500;
  color:#1644b4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.5px;
  font-weight: bold;
  font-family: system-ui;
}

.brand-logo span.accent {
  color: var(--accent-blue);
}

.brand-tag {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.5rem;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-blue);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-blue-subtle);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: var(--text-primary);
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
  font-family: var(--font-tajawal);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-actions .btn-primary, .hero-actions .btn-secondary {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-stat-item {
  text-align: center;
  border-left: 1px solid var(--border-subtle);
}

.hero-stat-item:last-child {
  border-left: none;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.stat-number .stat-icon {
  font-size: 1.2rem;
  color: var(--accent-emerald);
}

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

/* --------------------------------------------------------------------------
   6. Search & Filter Section
   -------------------------------------------------------------------------- */
.search-section {
  padding-block: 2rem 3rem;
}

.search-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.search-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-title-group p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.deal-type-tabs {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  gap: 0.3rem;
  border: 1px solid var(--border-subtle);
}

.deal-tab {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.deal-tab.active {
  background: var(--accent-blue);
  color: #ffffff;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-control label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.select-wrapper, .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select, .input-wrapper input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.select-wrapper select:focus, .input-wrapper input:focus {
  border-color: var(--accent-blue);
  background: var(--bg-surface);
}

.select-icon {
  position: absolute;
  left: 0.9rem;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.advanced-filters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  transition: all var(--transition-normal);
}

.advanced-filters-row.hidden {
  display: none;
}

.search-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.toggle-advanced-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-advanced-btn:hover {
  text-decoration: underline;
}

.search-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-reset {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.btn-reset:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

/* --------------------------------------------------------------------------
   7. Property Listings Section
   -------------------------------------------------------------------------- */
.properties-section {
  padding-block: 2rem 5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-group h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.section-title-group p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.properties-counter {
  background: var(--bg-surface-elevated);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   8. Modern Property Card
   -------------------------------------------------------------------------- */
.property-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-surface-elevated);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-media img {
  transform: scale(1.04);
}

.card-badges {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
}

.badge-assignment {
  background: rgba(37, 99, 235, 0.85);
  color: #ffffff;
}

.badge-resale {
  background: rgba(139, 92, 246, 0.85);
  color: #ffffff;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.badge-render {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.badge-status-reserved {
  background: rgba(245, 158, 11, 0.9);
  color: #ffffff;
}

.badge-status-sold {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.developer-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.delivery-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--border-subtle);
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.card-financial-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.financial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.financial-row:last-child {
  margin-bottom: 0;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-subtle);
}

.fin-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.fin-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

.fin-value.highlight {
  color: var(--accent-emerald);
  font-size: 1.05rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-footer .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.65rem;
}

/* --------------------------------------------------------------------------
   9. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding-block: 4.5rem;
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.switch-tabs {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.switch-tab-btn {
  padding: 0.6rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.switch-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. Trust & Transparency Section
   -------------------------------------------------------------------------- */
.trust-section {
  padding-block: 5rem;
}

.trust-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .trust-box {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.trust-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.trust-content p.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.trust-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.trust-feature-text h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.trust-feature-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}

.office-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.office-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.office-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.office-step-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.office-step-row .check {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   11. Modals & Overlays (System Core)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
  position: relative;
}

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

.modal-container.large {
  max-width: 1040px;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
}

/* --------------------------------------------------------------------------
   12. Property Details View Modal
   -------------------------------------------------------------------------- */
.details-gallery {
  position: relative;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.main-image-viewport {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
}

.main-image-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--bg-surface-elevated);
  overflow-x: auto;
}

.thumb-item {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
  opacity: 1;
  border-color: var(--accent-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}

.details-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--bg-surface-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.spec-block {
  display: flex;
  flex-direction: column;
}

.spec-block-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.spec-block-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.financial-breakdown-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.financial-breakdown-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fin-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.fin-row.total-contract {
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.fin-row.paid-verified {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.05rem;
}

.assignment-fees-note {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.verification-explainer {
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1.5rem;
}

.verification-explainer .v-title {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.verification-explainer p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Lead Interest Form Modal
   -------------------------------------------------------------------------- */
.lead-form-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-blue);
}

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

.lead-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

/* Success Confirmation State */
.confirmation-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.confirmation-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.confirmation-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Direct Contact Channels & Quick Action Modals
   -------------------------------------------------------------------------- */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
}

.contact-channel-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.channel-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.channel-icon-wrap.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.channel-icon-wrap.call {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.channel-icon-wrap.email {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.channel-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.channel-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-channel-action {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-channel-action.whatsapp {
  background: #25D366;
  color: #ffffff;
}

.btn-channel-action.whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-channel-action.call {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-channel-action.call:hover {
  background: var(--accent-blue-hover);
  box-shadow: var(--shadow-glow-blue);
}

.btn-channel-action.email {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-channel-action.email:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-primary);
}

.quick-inquiry-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 1.5rem;
}

.quick-inquiry-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-inquiry-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.unit-target-summary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pending {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.status-action-required {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
}

.status-approved {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.status-published {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-sold {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   16. Office / Admin Console View
   -------------------------------------------------------------------------- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

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

.admin-stat-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.admin-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.admin-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
}

.table-actions-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-table-action {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  transition: all var(--transition-fast);
}

.btn-table-action:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.btn-table-action.approve {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-table-action.request-change {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   17. Document Inspection Viewer (Admin Private)
   -------------------------------------------------------------------------- */
.doc-inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.doc-file-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.doc-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.doc-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.doc-preview-mock {
  height: 120px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   18. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
  pointer-events: none;
}

.toast-msg {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: slideUp 0.3s ease;
  min-width: 280px;
}

.toast-msg.success {
  border-right: 4px solid var(--accent-emerald);
}

.toast-msg.warning {
  border-right: 4px solid var(--accent-amber);
}

.toast-msg.info {
  border-right: 4px solid var(--accent-blue);
}

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

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   20. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .search-grid, .advanced-filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-stat-item {
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
  }
  .hero-stat-item:last-child {
    border-bottom: none;
  }
  .search-grid, .advanced-filters-row {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .properties-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stepper-header .step-label {
    display: none;
  }
}
