/* =========================================================
   HOMEO WNR — COMPLETE MOBILE STYLESHEET
   Replace the ENTIRE contents of style.css with this file
   ========================================================= */

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

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #030711;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  color: #f7fbff;
  background:
    radial-gradient(
      circle at 15% -10%,
      rgba(18, 105, 255, 0.38),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(0, 224, 255, 0.2),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #061329 0%,
      #030711 48%,
      #01030a 100%
    );
}

/* Background grid */
.mobile-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    transparent 75%
  );
}

/* Main mobile page */
.mobile-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-right: 16px;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
  padding-left: 16px;
  overflow: visible;
}

/* =========================================================
   HEADERS
   ========================================================= */

.app-header,
.search-header,
.profile-header {
  padding: 6px 2px 20px;
}

.app-header {
  text-align: center;
}

.homeownr-text-logo {
  margin: 0 auto 8px;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -2.4px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(36, 107, 254, 0.7);
}

.homeownr-text-logo span {
  color: transparent;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #5ee7ff 42%,
    #246bfe 68%,
    #b44cff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-wordmark {
  display: block;
  width: 178px;
  max-width: 60%;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(36, 125, 255, 0.25));
}

.welcome,
.subtle {
  color: #93a8c7;
  font-size: 14px;
  line-height: 1.45;
}

.app-header .welcome {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

.search-header h1,
.profile-header h1,
.detail-card h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -1.1px;
}

.search-header p,
.profile-header p {
  margin: 8px 0 0;
}

/* =========================================================
   SHARED GLASS CARDS
   ========================================================= */

.mobile-chart-card,
.detail-card,
.premium-card,
.profile-stat,
.mover-card,
.activity-card,
.locked-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      145deg,
      rgba(16, 31, 62, 0.78),
      rgba(5, 14, 30, 0.62)
    );
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* =========================================================
   PORTFOLIO CHART CARD
   ========================================================= */

.mobile-chart-card {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 8px 0 16px;
  padding: 22px 20px 18px;
  overflow: hidden;
  border-radius: 28px;
}

.mobile-chart-card .subtle {
  margin: 0 0 8px;
}

.mobile-chart-card h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 12vw, 58px);
  line-height: 1;
  letter-spacing: -2px;
}

.mobile-chart-card h2,
.detail-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.4px;
}

#portfolioGain {
  margin: 0 0 8px;
  font-size: 18px;
}

.mobile-chart-card canvas {
  display: block;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  margin: 8px 0 0;
}

.positive {
  color: #36f3c2 !important;
}

.negative {
  color: #ff6f91 !important;
}

/* Range buttons */
.range-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: 14px;
}

.range-tabs span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #7f93b4;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.range-tabs span:active {
  transform: scale(0.92);
}

.range-tabs .active {
  color: #00101d;
  background: linear-gradient(135deg, #60f7ff, #2e8dff);
  font-weight: 800;
}

/* =========================================================
   PORTFOLIO STATS
   ========================================================= */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0 0 20px;
}

.profile-stat {
  width: 100%;
  min-width: 0;
  min-height: 120px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
}

.profile-stat span {
  display: block;
  color: #8ea2c0;
  font-size: 13px;
}

.profile-stat strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(23px, 6.5vw, 31px);
  line-height: 1.08;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 2px 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.section-title span {
  color: #7f93b4;
  font-size: 12px;
}

/* =========================================================
   PROPERTY CARDS
   ========================================================= */

.mobile-property-row {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 2px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mobile-property-row::-webkit-scrollbar {
  display: none;
}

.mobile-property-card {
  position: relative;
  flex: 0 0 86%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 30px;
  scroll-snap-align: start;
}

.mobile-property-card img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.property-info {
  padding: 17px;
}

.property-info h3 {
  margin: 0;
  overflow: hidden;
  color: #b9c8dd;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.property-info h2 {
  margin: 6px 0;
  font-size: 29px;
  letter-spacing: -1px;
}

.property-info p {
  margin: 0;
  color: #879ab7;
  font-size: 13px;
}

.property-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #8fa4c1;
  font-size: 12px;
}

/* =========================================================
   MARKET MOVERS
   ========================================================= */

.market-movers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.mover-card {
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 26px;
}

.mover-card span {
  color: #9bb1d2;
  font-size: 12px;
}

.mover-card h3 {
  margin: 12px 0 4px;
  overflow: hidden;
  color: #d5e5ff;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mover-card h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -1px;
}

.mover-card p {
  margin: 8px 0 0;
  color: #8194b3;
  font-size: 12px;
}

/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.activity-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 24px;
}

.activity-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.activity-card strong {
  font-size: 14px;
}

.activity-card p {
  margin: 4px 0 0;
  color: #8fa3c1;
  font-size: 12px;
}

.activity-card > span {
  font-size: 13px;
  font-weight: 800;
}

.green {
  border-color: rgba(54, 243, 194, 0.22);
}

.yellow {
  border-color: rgba(255, 214, 89, 0.24);
}

.red {
  border-color: rgba(255, 111, 145, 0.24);
}

/* =========================================================
   FLOATING ADD BUTTON
   ========================================================= */

.add-btn {
  position: fixed;
  right: max(20px, calc(50% - 242px));
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(145deg, #2b8cff, #00d4ff);
  box-shadow: 0 18px 42px rgba(0, 123, 255, 0.42);
  font-size: 34px;
  line-height: 1;
}

/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 24px), 496px);
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
  background: rgba(5, 13, 28, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  color: #7f93b4;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav-item span {
  font-size: 10px;
}

.mobile-nav-item.active {
  color: #58dfff;
}

.mobile-nav-item.active span {
  color: #ffffff;
}

/* =========================================================
   BUTTONS
   ========================================================= */

button {
  font-family: inherit;
  cursor: pointer;
}

.green-btn,
.red-btn,
#agreeBtn,
#signupBtn {
  width: 100%;
  margin-top: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.green-btn,
#agreeBtn,
#signupBtn {
  background: linear-gradient(135deg, #2f8cff, #00d8ff);
  box-shadow: 0 14px 34px rgba(0, 124, 255, 0.3);
}

.red-btn {
  background: linear-gradient(135deg, #ff466e, #a71135);
  box-shadow: 0 14px 34px rgba(255, 70, 110, 0.18);
}

.back-btn {
  width: 48px;
  height: 48px;
  margin: 4px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 34px;
}

/* =========================================================
   FORMS
   ========================================================= */

label {
  display: block;
  margin: 16px 2px 8px;
  color: #b8c8df;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea,
.property-input {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-family: inherit;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(67, 197, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #667b9a;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-suggestions {
  display: none;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(8, 18, 38, 0.96);
}

.address-suggestion {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #dceaff;
}

/* =========================================================
   PROPERTY DETAILS
   ========================================================= */

.detail-card {
  width: 100%;
  margin: 14px 0;
  padding: 22px;
  border-radius: 32px;
}

.detail-photo {
  width: 100%;
  height: 240px;
  margin-bottom: 18px;
  border-radius: 24px;
  object-fit: cover;
}

.detail-card h2#propertyValue,
.detail-card #propertyValue {
  margin: 8px 0;
  font-size: 42px;
  letter-spacing: -1.5px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row span {
  color: #8ea3c2;
}

.settings-row strong {
  text-align: right;
}

/* =========================================================
   LOCKED / PROFILE / TERMS
   ========================================================= */

.locked-box {
  padding: 22px;
  border-radius: 28px;
  text-align: left;
}

.locked-box h2 {
  margin-top: 8px;
}

.locked-box ul {
  padding-left: 20px;
  color: #b8c8df;
  line-height: 1.8;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #2e8dff, #061a38);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.3);
  font-size: 30px;
  font-weight: 900;
}

a {
  color: #58dfff;
}

.terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  color: #c7d6ea;
}

.terms-check input {
  width: auto;
  margin-top: 2px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #9fd9ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 230px;
  text-align: left;
}

/* =========================================================
   MLS COMPLIANCE
   ========================================================= */

.mls-listing-compliance,
.mls-page-compliance-footer {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: #91a5c5;
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  line-height: 1.45;
}

.mls-compliance-title,
.mls-page-compliance-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #dce8ff;
  font-size: 13px;
  font-weight: 900;
}

.mls-compliance-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mls-compliance-line span {
  color: #8095b5;
  font-size: 11px;
  font-weight: 800;
}

.mls-compliance-line strong {
  color: #ffffff;
  font-size: 12px;
  text-align: right;
}

.mls-listing-compliance p,
.mls-page-compliance-footer p {
  margin: 10px 0 0;
  color: #91a5c5;
}

/* =========================================================
   PROPERTY ACTION BUTTONS
   ========================================================= */

.property-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  background: #1f2937;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-btn:hover {
  background: #374151;
}

/* =========================================================
   PHONE-SIZED SCREENS
   ========================================================= */

@media screen and (max-width: 520px) {
  .mobile-shell {
    width: 100%;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-chart-card {
    padding: 20px 17px 16px;
  }

  .mobile-chart-card h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .mobile-chart-card canvas {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .mobile-property-card {
    flex: 0 0 92%;
  }

  .market-movers {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SMALL IPHONES
   ========================================================= */

@media screen and (max-width: 390px) {
  .mobile-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  .homeownr-text-logo {
    font-size: 34px;
  }

  .mobile-chart-card {
    padding: 18px 15px 15px;
  }

  .mobile-chart-card h1 {
    font-size: 42px;
  }

  .mobile-chart-card canvas {
    height: 195px !important;
    min-height: 195px !important;
    max-height: 195px !important;
  }

  .profile-stat {
    min-height: 110px;
    padding: 15px;
  }

  .profile-stat strong {
    font-size: 23px;
  }

  .range-tabs {
    gap: 5px;
  }

  .range-tabs span {
    min-height: 39px;
    font-size: 11px;
  }

  .mobile-nav {
    height: 70px;
    border-radius: 24px;
  }

  .mobile-nav-item {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .mobile-property-card {
    flex-basis: 94%;
  }
}