:root {
  --navy: #0f1b3d;
  --gold: #d4af37;
  --bg: #f4f5fa;
}
* { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  font-family: 'Segoe UI', Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.app-main {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
}
.app-main.with-nav { padding-bottom: 84px; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid #e3e5ec;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  color: #7a7f92;
  text-decoration: none;
  font-size: 0.68rem;
  padding: 4px 0;
}
.bottom-nav a i { display: block; font-size: 1.25rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--navy); font-weight: 600; }
.bottom-nav a.add-btn {
  background: linear-gradient(135deg, var(--gold), #b8912a);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px 6px 0;
  box-shadow: 0 4px 12px rgba(212,175,55,0.5);
  flex: 0 0 52px;
}
.bottom-nav a.add-btn i { font-size: 1.5rem; margin: 0; }

.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(20,20,50,0.06); }
.stat-card { border-radius: 16px; color: #fff; padding: 16px; }
.stat-card h3 { margin: 0; font-size: 1.7rem; }
.stat-card small { opacity: 0.85; }
.bg-navy { background: var(--navy); }
.bg-gold { background: linear-gradient(135deg, var(--gold), #b8912a); }

.property-code-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #16224a 0%, #050a1a 80%);
}
.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.status-pill { font-size: 0.72rem; padding: 4px 10px; border-radius: 12px; }
.form-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8fa3;
  margin: 18px 0 8px;
}

/* ---- Laptop / desktop layout: sidebar nav instead of bottom nav ---- */
@media (min-width: 992px) {
  .topbar > div { max-width: 1100px; margin: 0 auto; padding-left: 16px; }

  .app-main.with-nav {
    max-width: 760px;
    margin: 0 auto 0 260px;
    padding-bottom: 0;
  }
  .app-main:not(.with-nav) { max-width: 100%; }

  .bottom-nav {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    right: auto;
    width: 220px;
    max-width: none;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 20px 12px;
    border-top: none;
    border-right: 1px solid #e3e5ec;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
  }
  .bottom-nav a {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .bottom-nav a:hover { background: #f0f1f7; }
  .bottom-nav a.active { background: var(--navy); color: #fff; }
  .bottom-nav a i { display: inline; font-size: 1.1rem; margin-bottom: 0; }
  .bottom-nav a span { display: inline; }
  .bottom-nav a.add-btn {
    border-radius: 10px;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    flex-direction: row;
    padding: 10px 12px;
    justify-content: flex-start;
  }
  .bottom-nav a.add-btn::after { content: "New Listing"; font-weight: 600; }
  .bottom-nav a.add-btn i { font-size: 1.1rem; margin-right: 4px; }

  .login-card { max-width: 420px; }
}

@media (min-width: 1200px) {
  .app-main.with-nav { max-width: 900px; }
}
