/* Enhanced Mobile UI v2 visual layer — keeps token accents */
*, *::before, *::after { box-sizing: border-box; }
html { background: #e8f0f2; }
body { margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans Ethiopic", "Noto Sans", sans-serif;
  background: #e8f0f2;
  color: var(--bete-text);
  padding-bottom: 0;
  letter-spacing: -0.01em;
}
.app {
  position: relative;
  margin: 0 auto;
  width: min(100%, 460px);
  height: 100dvh;
  min-height: 620px;
  background: var(--bete-bg);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(18,59,75,.12);
  display: flex;
  flex-direction: column;
}
.top {
  height: 70px;
  flex: 0 0 70px;
  padding: 10px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bete-surface) 93%, transparent);
  border-bottom: 1px solid var(--bete-border);
  position: relative;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand-block { display: flex; flex-direction: column; gap: 1px; }
.brand-logo {
  font-family: "Segoe Script", "Bradley Hand", "Apple Chancery", cursive;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: #087187;
  font-weight: 800;
  letter-spacing: -1.7px;
}
.brand-tag { font-size: 9px; letter-spacing: .25px; color: #8199a3; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bete-border);
  background: var(--bete-surface); color: var(--bete-accent);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:active { transform: scale(.96); }
.theme-toggle-ico { width: 18px; height: 18px; }
.theme-toggle-ico[hidden] { display: none; }
.logo-slot { display: none; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bete-border);
  background: var(--bete-surface); color: var(--bete-accent); display: grid; place-items: center;
  position: relative; cursor: pointer; padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f0a45e; right: 7px; top: 6px; border: 1px solid var(--bete-surface); }
.screen { display: none; padding: 0 17px 28px; flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.screen.active { display: block; }
h1 { font-size: 25px; letter-spacing: -.8px; line-height: 1.15; margin: 18px 0 7px; }
h2 { font-size: 17px; letter-spacing: -.35px; margin: 23px 0 12px; font-weight: 700; }
.muted { color: var(--bete-text-muted); font-size: 12px; }
.tiny { font-size: 10px; color: var(--bete-text-muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.text-btn {
  border: 0; background: transparent; color: var(--bete-accent);
  font-size: 11px; font-weight: 800; padding: 7px 0; cursor: pointer;
}
.chip-row, .horizontal { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar, .horizontal::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 1px solid #dfebee; background: #fff; color: #6b8996;
  border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 700; cursor: pointer;
}
.chip.on, .chip.active { background: var(--bete-accent); color: #fff; border-color: var(--bete-accent); }
.card {
  background: var(--bete-surface); border-radius: var(--radius-card);
  box-shadow: 0 5px 16px rgba(33,74,92,.05);
  border: 1px solid var(--bete-border); overflow: hidden; margin-bottom: 12px;
  color: var(--bete-text);
}
.card.pad { padding: 15px; }
.btn, .primary {
  border: 0; border-radius: var(--radius-btn); padding: 13px 15px; cursor: pointer;
  background: linear-gradient(105deg, var(--bete-accent), color-mix(in srgb, var(--bete-accent) 70%, #139eaa));
  color: #fff; font-weight: 800; font-size: 12px; width: 100%;
  box-shadow: 0 6px 13px color-mix(in srgb, var(--bete-accent) 20%, transparent);
}
.btn:active { transform: scale(.99); }
.btn.ghost, .advanced {
  background: transparent; color: var(--bete-accent); width: auto; padding: 8px 0;
  box-shadow: none; font-weight: 750; font-size: 11px;
}
.btn.secondary {
  background: var(--bete-accent-soft); color: var(--bete-accent); box-shadow: none;
}
.btn.danger { background: var(--bete-danger); color: #fff; box-shadow: none; }
.field { margin-bottom: 10px; }
.field label {
  display: block; font-size: 10px; color: #698491; margin: 0 0 6px 2px; font-weight: 650;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #dce8ec; background: #f8fbfc;
  border-radius: var(--radius-input); padding: 11px 10px; color: var(--bete-text); font-size: 12px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-banner {
  margin: 0 -17px 0; padding: 25px 20px 54px; min-height: 205px; position: relative;
  overflow: hidden; border-radius: 0 0 27px 27px; color: #fff;
  background:
    linear-gradient(108deg, #075e6eef 0%, #087f8cce 50%, #0d78864a 100%),
    url("../assets/listings/modern-apartment.jpg") center 46%/cover;
}
.hero-banner .eyebrow {
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; color: #d3f4f2;
}
.hero-banner h1 { font-size: 31px; max-width: 245px; margin: 8px 0; color: #fff; }
.hero-banner p { font-size: 12px; line-height: 1.55; max-width: 230px; color: #e1f5f4; margin: 0; }
.search-card {
  position: relative; z-index: 2; margin: -35px 0 0; background: #fff;
  border: 1px solid #e8f0f2; border-radius: 21px; padding: 15px; box-shadow: var(--bete-shadow);
}
.search-card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-card-title strong { font-size: 13px; }
.search-card-title span { font-size: 10px; color: var(--bete-text-muted); }
.property {
  min-width: 0; background: #fff; border: 1px solid #e5edef; border-radius: 17px;
  overflow: hidden; box-shadow: 0 5px 16px rgba(33,74,92,.05); margin-bottom: 12px; cursor: pointer;
}
.property.feature { flex: 0 0 77%; margin-bottom: 0; }
.photo { height: 152px; position: relative; background: #dce9ed; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .heart, .heart {
  position: absolute; right: 10px; top: 10px; width: 33px; height: 33px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.93); color: #527180; font-size: 17px;
  box-shadow: 0 3px 10px rgba(18,59,75,.12); cursor: pointer;
}
.heart.saved { color: #e44f6b; }
.photo-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.93);
  color: var(--bete-accent); font-size: 9px; font-weight: 800; border-radius: 7px; padding: 6px 8px;
}
.propbody { padding: 11px 12px 13px; }
.propbody h3 { font-size: 13px; line-height: 1.4; margin: 0; }
.price { color: #098bb7; font-size: 14px; font-weight: 850; margin: 5px 0; }
.loc { font-size: 10px; color: var(--bete-text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag, .pill {
  font-size: 9px; font-weight: 750; border-radius: 6px; padding: 5px 7px;
  background: #e5f6f2; color: #238269; display: inline-block; margin: 0 2px 2px 0;
}
.tag.blue, .pill { background: #e7f5f8; color: #087f8c; }
.pill.warn { background: #fff4e5; color: #c98a12; }
.listing-row {
  display: flex; gap: 11px; background: #fff; border: 1px solid #e4edef;
  border-radius: 16px; padding: 10px; box-shadow: 0 4px 14px rgba(18,59,75,.04); margin-bottom: 11px; cursor: pointer;
}
.listing-row > img {
  width: 108px; height: 112px; object-fit: cover; border-radius: 11px; flex: 0 0 108px;
}
.rowinfo { flex: 1; min-width: 0; }
.thumb {
  height: 110px; border-radius: 12px; background: linear-gradient(135deg, var(--bete-accent-soft), var(--bete-accent));
  display: grid; place-items: center; color: #fff; font-weight: 700; margin-bottom: 8px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { height: 180px; border-radius: 0; margin: 0; }
.list-row {
  display: flex; gap: 11px; align-items: center; padding: 14px 2px;
  border-bottom: 1px solid #e7eff1; cursor: pointer;
}
.avatar {
  width: 43px; height: 43px; border-radius: 50%;
  background: linear-gradient(145deg, #d4eff0, #b5dadd); color: #17697a;
  display: grid; place-items: center; font-weight: 850; flex-shrink: 0; font-size: 12px;
}
.badge {
  min-width: 19px; height: 19px; border-radius: 50%; background: var(--bete-accent);
  color: #fff; font-size: 10px; display: inline-grid; place-items: center; padding: 0 6px; font-weight: 800;
}
.nav {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 7px 6px max(8px, var(--safe-b));
  background: color-mix(in srgb, var(--bete-surface) 93%, transparent);
  border-top: 1px solid var(--bete-border);
  display: none; justify-content: space-around; align-items: flex-start; z-index: 30;
  backdrop-filter: blur(18px);
}
.nav.show { display: flex; }
.nav button {
  border: 0; background: transparent; color: #839aa4; font-size: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; min-width: 56px;
  position: relative;
}
.nav button.active { color: var(--bete-accent); font-weight: 800; }
.nav button.active::after {
  content: ""; width: 17px; height: 3px; border-radius: 9px; background: var(--bete-accent);
  position: absolute; bottom: -2px;
}
.nav svg { width: 22px; height: 22px; }
.toast {
  position: absolute;
  left: 18px; right: 18px; bottom: calc(var(--nav-h) + 12px);
  background: #123d4b; color: #fff; border-radius: 12px; padding: 13px 15px;
  opacity: 0; transform: translateY(9px); transition: .2s; z-index: 50; font-size: 12px;
  pointer-events: none; box-shadow: var(--bete-shadow);
}
.toast.show { opacity: 1; transform: translateY(0); }
.menu-item, .menu-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px; border-bottom: 1px solid #edf2f4; cursor: pointer; background: #fff; text-align: left; width: 100%; border-left: 0; border-right: 0; border-top: 0;
}
.menu-group { border: 1px solid #e3edef; background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.menu-label { font-size: 10px; letter-spacing: 1.2px; font-weight: 850; color: #8197a0; margin: 20px 2px 8px; }
.menu-icon {
  width: 35px; height: 35px; flex: 0 0 35px; border-radius: 11px; background: #eaf7f7;
  color: var(--bete-accent); display: grid; place-items: center; font-size: 15px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.stats > div, .stat { text-align: center; border-right: 1px solid #d8e9eb; background: transparent; padding: 0; }
.stats > div:last-child, .stat:last-child { border: 0; }
.stats strong, .stat b { display: block; font-size: 20px; letter-spacing: -.5px; color: var(--bete-text); }
.stats span, .stat span { font-size: 10px; color: var(--bete-text-muted); }
.profile-card {
  background: linear-gradient(130deg, #e1f5f3, #fff 75%);
  border: 1px solid #d8eeed; border-radius: 21px; padding: 17px; margin-top: 8px;
}
.member {
  display: inline-block; background: #d5f4e7; color: #20815f; border-radius: 999px;
  padding: 5px 8px; font-size: 9px; font-weight: 800; margin-top: 5px;
}
.premium {
  background: linear-gradient(130deg, #fff4e5, #fff); border: 1px solid #f0e0c8;
  border-radius: 16px; padding: 14px; margin-top: 14px;
}
.msg {
  padding: 12px 13px; border-radius: 15px; font-size: 12px; line-height: 1.55;
  max-width: 86%; margin: 12px 0; background: #fff; border: 1px solid #e8eff1;
  border-bottom-left-radius: 4px;
}
.msg.me {
  background: #dff4f2; margin-left: auto; border-color: transparent; border-bottom-right-radius: 4px;
}
.empty {
  text-align: center; padding: 36px 20px; color: var(--bete-text-muted);
  background: #fff; border: 1px dashed #cbdfe4; border-radius: 17px; margin-top: 15px; font-size: 12px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 7px; margin: 6px 0; font-size: 11px; color: #557583; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bete-border);
  cursor: pointer; position: relative;
}
.swatch.on { outline: 2px solid var(--bete-accent); outline-offset: 2px; }
.owner-bar, .contact-card {
  display: flex; gap: 10px; align-items: center;
  background: #f5fafb; border-radius: 14px; padding: 11px; margin-top: 10px;
}
.owner-bar {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b));
  background: #fff; border-top: 1px solid #eaf0f2; border-radius: 0;
  padding: 10px 16px; margin: 0 -17px;
}
.owner-bar .btn { width: auto; flex: 1; }
.detail-hero {
  height: 290px; margin: 0 -17px; position: relative; background: #dce8ec;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.float-btn {
  position: absolute; top: 14px; width: 39px; height: 39px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.93); color: var(--bete-text); display: grid; place-items: center; font-size: 17px; cursor: pointer;
}
.float-btn.back { left: 14px; }
.float-btn.fav { right: 14px; }
.detail-panel {
  position: relative; background: #fff; margin: -22px -17px 0; padding: 20px 18px 24px;
  border-radius: 24px 24px 0 0;
}
.detail-price { font-size: 22px; font-weight: 900; color: #078ab6; margin: 8px 0; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 17px 0; }
.metric { background: #f2f8f9; border-radius: 12px; text-align: center; padding: 12px 4px; }
.metric strong { display: block; font-size: 13px; }
.metric span { display: block; font-size: 9px; color: var(--bete-text-muted); margin-top: 4px; }
.description { font-size: 12px; line-height: 1.75; color: #64818e; }
.detail-section { border-top: 1px solid #eaf0f2; padding-top: 18px; margin-top: 18px; }
.alert-card {
  display: flex; gap: 11px; background: #fff; border: 1px solid #e5eef0;
  border-radius: 16px; padding: 10px; margin: 0 0 10px; cursor: pointer;
}
.filter-card {
  background: var(--bete-surface); border: 1px solid var(--bete-border);
  border-radius: 18px; padding: 15px; margin-top: 13px;
}
.filter-card h3 { font-size: 13px; letter-spacing: -.1px; margin: 18px 0 10px; }
.filter-card h3:first-child { margin-top: 0; }
.filter-card .range { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-card .checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 4px 0 8px;
  font-size: 11px; color: #557583;
}
.filter-card .checks label.check { display: flex; align-items: center; gap: 7px; margin: 0; }
.filter-card .checks input { accent-color: var(--bete-accent); }
.mini-card {
  min-width: 160px; background: #fff; border: 1px solid #e5edef; border-radius: 17px;
  padding: 13px; cursor: pointer; box-shadow: 0 5px 16px rgba(33,74,92,.05); text-align: left;
}
.step { font-size: 12px; color: var(--bete-accent); font-weight: 700; }
.login-wrap { padding: 48px 8px 24px; text-align: center; }
.login-wrap .brand-logo { font-size: 42px; margin-bottom: 6px; }
.filter-card, .search-card, .property, .listing-row, .profile-card, .menu-group, .empty {
  background: var(--bete-surface);
  border-color: var(--bete-border);
  color: var(--bete-text);
}
.menu-item, .menu-row { background: var(--bete-surface); color: var(--bete-text); border-bottom-color: var(--bete-border); }
.field input, .field select, .field textarea {
  background: var(--bete-bg);
  border-color: var(--bete-border);
  color: var(--bete-text);
}
@media (min-width: 700px) {
  body { padding: 22px 0; background: radial-gradient(ellipse at top, #f9ffff, #e3edef); }
  .app {
    height: min(920px, calc(100dvh - 44px));
    border: 5px solid #fff; border-radius: 31px; overflow: hidden;
  }
  .top { border-radius: 25px 25px 0 0; }
  .nav { border-radius: 0 0 25px 25px; }
}

/* C2: welcome text shows once; later visits keep only the photo strip */
.hero-banner.seen { min-height: 96px; padding-bottom: 40px; }
.hero-banner.seen .eyebrow, .hero-banner.seen h1, .hero-banner.seen p { display: none; }

/* Chat inbox, Bete_UI_Enhanced */
.page-sub { margin: -6px 0 14px; font-size: 12px; }
.searchbar { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--bete-border); background: var(--bete-surface); border-radius: 12px; margin-bottom: 8px; color: var(--bete-text-muted); }
.searchbar svg { width: 14px; height: 14px; flex: 0 0 14px; }
.searchbar input { flex: 1; border: 0; background: transparent; padding: 11px 0; font-size: 12px; color: var(--bete-text); outline: none; }
#chatList .list-row { border-bottom: 1px solid var(--bete-border); }
.chat-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; margin: 3px 0; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; align-self: flex-start; }
#chatList strong { font-size: 13px; }

/* Me menu rows, Bete_UI_Enhanced */
.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-text b { font-size: 13px; }
.menu-text small { font-size: 10.5px; color: var(--bete-text-muted); }
.role-field { padding: 12px 13px 4px; margin: 0; border-bottom: 1px solid var(--bete-border); }
#profileBody .profile-card { background: linear-gradient(135deg, var(--bete-accent-soft), var(--bete-surface) 70%); }
.pad-group { padding: 13px 13px 6px; }
/* Alerts cards, Bete_UI_Enhanced */
.note-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px; margin-bottom: 10px; background: var(--bete-surface); border: 1px solid var(--bete-border); border-radius: 16px; box-shadow: var(--bete-shadow); }
.note-text { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.note-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }

/* Admin — reuse Enhanced cards / stats (not in marketing mockup) */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.admin-stat {
  background: var(--bete-surface);
  border: 1px solid var(--bete-border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(18,59,75,.04);
}
.admin-stat strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.5px;
  color: var(--bete-text);
}
.admin-stat span {
  display: block;
  font-size: 10px;
  color: var(--bete-text-muted);
  margin-top: 4px;
}
.admin-pending .btn { font-size: 11px; padding: 11px 10px; }
