:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: #0b1220;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #f472b6;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% -10%, #0ea5e93a, transparent 60%),
              radial-gradient(900px 700px at 120% 20%, #a78bfa33, transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(14px);
  background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(15,23,42,0.5));
  border-bottom: 1px solid #1f2a44;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.2px;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: conic-gradient(from 140deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 8px 24px #22d3ee33, inset 0 0 22px #a78bfa33;
}

.nav-links {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.nav-links a {
  padding: 10px 14px;
  color: #e2e8f0;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.nav-links a.active, .nav-links a:hover {
  background: linear-gradient(135deg, #0b1220 0%, #121a2d 100%);
  color: #fff;
  transform: translateY(-1px);
  border: 1px solid #1f2a44;
}

.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001018;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 8px 30px #22d3ee44;
}
.cta:hover { transform: translateY(-1px); }

.main {
  padding: 28px 0 80px;
}

.hero {
  display: grid; gap: 18px; padding: 24px; border-radius: var(--radius);
  background:
    radial-gradient(400px 120px at 20% 0%, #22d3ee26, transparent 60%),
    linear-gradient(180deg, #0b1220, #0f172a);
  border: 1px solid #1f2a44;
  box-shadow: inset 0 1px 0 #ffffff08, 0 30px 80px #00000044;
}
.hero h1 {
  margin: 0; font-size: clamp(26px, 3.6vw, 42px);
}
.hero p { margin: 0; color: var(--muted); max-width: 70ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 12; }
.col-6 { grid-column: span 12; }
.col-4 { grid-column: span 12; }

@media (min-width: 960px) {
  .col-8 { grid-column: span 8; }
  .col-4 { grid-column: span 4; }
}
@media (min-width: 680px) {
  .col-6 { grid-column: span 6; }
}

.card {
  background: linear-gradient(180deg, #0b1220, #10192b);
  border: 1px solid #1f2a44;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px #00000055;
}

.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 4px 16px; color: #e2e8f0;
}

.filters {
  display: grid; gap: 10px; grid-template-columns: repeat(12, 1fr);
}
.filter-item { grid-column: span 12; }
@media (min-width: 680px) {
  .filter-item { grid-column: span 3; }
  .filter-item.wide { grid-column: span 6; }
}

.input, .select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  background: #0c1424;
  color: #e5e7eb;
  border: 1px solid #1f2a44;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}
.input::placeholder { color: #94a3b8; opacity: 0.9; }
.input:focus, .select:focus { border-color: #2b3b63; box-shadow: 0 0 0 4px #60a5fa22; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131b; border: none; padding: 10px 14px; border-radius: 12px;
  font-weight: 700; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease;
  box-shadow: 0 12px 30px #22d3ee44;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary {
  background: linear-gradient(135deg, #0b1220, #0b1424);
  color: #e5e7eb; border: 1px solid #1f2a44; box-shadow: none;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 10px; border-radius: 999px; border: 1px solid #223050; background: #0b1220; color: #cbd5e1;
}

.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.house-card {
  overflow: hidden; position: relative;
}
.house-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.house-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.house-card:hover .house-media img { transform: scale(1.05); }
.house-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #0b1220cc; color: #e2e8f0; border: 1px solid #1f2a44;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center;
}
.house-content { padding: 12px 14px 14px; }
.price { font-weight: 800; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.seller {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #cbd5e1;
}
.seller img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.stat {
  padding: 14px; border-radius: 12px; background: #0c1424; border: 1px solid #1f2a44;
  display: flex; flex-direction: column; gap: 6px;
}
.stat .num { font-size: 20px; font-weight: 800; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2,6,23,.6);
  display: grid; place-items: center; z-index: 100;
  backdrop-filter: blur(10px);
}
.modal {
  width: min(900px, 92vw); max-height: 86vh; overflow: auto;
  border-radius: 16px; background: #0b1220; border: 1px solid #1f2a44;
  box-shadow: 0 40px 120px #000000aa;
}
.modal-header, .modal-footer { padding: 14px 18px; border-bottom: 1px solid #1f2a44; }
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 16px 18px; display: grid; gap: 16px; }
.close {
  background: transparent; border: 1px solid #1f2a44; color: #cbd5e1; padding: 8px; border-radius: 10px; cursor: pointer;
}

.footer {
  border-top: 1px solid #1f2a44; color: #9aa5b1; padding: 30px 0; text-align: center;
  background: linear-gradient(180deg, transparent, #0a1020 40%);
}

.auth-card { padding:24px !important; max-width:620px !important; margin:0 auto; border-radius:16px; }
.auth-card .section-title { margin-bottom: 10px; }
.btn.full { width:100%; justify-content:center; }
.form-error { color:#fca5a5; }
.alt-link { display:inline-block; margin-top:10px; color:#93c5fd; }

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 6px;
}

.contact-item.active { outline: 2px solid #223050; background: #0c1424; }



.message-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 60ch;
  margin: 4px 0;
}
.message-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001018;
}
.message-bubble.received {
  align-self: flex-start;
  background: #0c1424;
  color: #e5e7eb;
}
.meta {
  font-weight: 700;
  margin-bottom: 4px;
}


.icon-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb3c8;
  font-size: 24px;
  padding: 6px;
}
.icon-btn:hover {
  color: var(--accent);
}


.logo-cont img {
    width: 50px;
    height: 50px;
}