:root {
  --navy: #101b32;
  --navy-2: #182844;
  --teal: #12a789;
  --teal-dark: #0b8d75;
  --teal-soft: #e1f7f2;
  --gold: #d4a83e;
  --gold-soft: #fff5d9;
  --red: #e95959;
  --red-soft: #fff0f0;
  --ink-muted: #738096;
  --line: #e6eaf0;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --shadow: 0 20px 60px rgba(16, 27, 50, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--navy); background: radial-gradient(circle at 85% 10%, #ddf7f0 0, transparent 28%), var(--canvas); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.prototype-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.desktop-nav { padding: 30px 22px; background: #0d172a; color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 43px; height: 43px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-content: center; text-align: center; font: 700 14px/11px Georgia, serif; flex: 0 0 auto; }
.brand b { font-size: 17px; letter-spacing: -.4px; display: block; }
.brand small { display: block; margin-top: 2px; color: #8b96a9; font-size: 8px; text-transform: uppercase; letter-spacing: 2px; }
.brand--desktop { padding: 0 8px 24px; border-bottom: 1px solid #23314a; }
.brand--desktop small { color: #8290a7; }
.nav-label { margin: 24px 10px 10px; color: #77859b; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; }
.desktop-nav nav { display: grid; gap: 4px; overflow-y: auto; }
.nav-button { border: 0; background: transparent; color: #a9b4c5; padding: 11px 12px; border-radius: 12px; display: flex; gap: 11px; align-items: center; text-align: left; cursor: pointer; font-size: 13px; }
.nav-button:hover { background: #17263f; color: #fff; }
.nav-button.active { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; box-shadow: 0 8px 25px rgba(18,167,137,.22); }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.prototype-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px; background: #17243a; border-radius: 14px; }
.prototype-note > span { color: #4bd7bb; }
.prototype-note b, .prototype-note small { display: block; }
.prototype-note b { font-size: 12px; }.prototype-note small { color: #8090a8; font-size: 10px; margin-top: 2px; }
.phone-stage { display: grid; place-items: start center; padding: 26px; }
.phone { width: min(100%, 520px); min-height: calc(100vh - 52px); background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; position: relative; padding-bottom: 78px; }
.app-header { height: 78px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f2f6; background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(15px); }
.header-actions { display: flex; align-items: center; gap: 7px; }
.language, .icon-button { border: 0; background: transparent; cursor: pointer; }
.language { font-weight: 700; font-size: 12px; }.icon-button { width: 38px; height: 38px; border-radius: 50%; background: #f4f6f9; position: relative; font-size: 23px; }.notification-dot { position: absolute; right: 7px; top: 6px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.app-content { padding: 25px 22px 30px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; }
.page-head h1 { margin: 0; font-size: 30px; letter-spacing: -1.2px; line-height: 1.1; }
.page-head p { margin: 7px 0 0; color: var(--ink-muted); font-size: 12px; }
.role-pill, .count-pill, .status-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; font-size: 10px; letter-spacing: .5px; }
.role-pill { padding: 7px 10px; background: var(--gold-soft); color: #8d6817; }
.hero { background: linear-gradient(145deg, #effcf9, #fff); border: 1px solid #dff3ee; border-radius: 22px; padding: 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero:after { content: '⌁'; position: absolute; font-size: 110px; color: rgba(18,167,137,.08); right: 0; top: -20px; }
.hero h2 { margin: 0; font-size: 25px; line-height: 1.18; max-width: 310px; }.hero p { margin: 9px 0 0; color: var(--ink-muted); font-size: 12px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.primary, .secondary, .outline, .danger { border: 0; border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 800; font-size: 13px; transition: transform .15s; }
.primary:active, .secondary:active, .outline:active { transform: scale(.98); }
.primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; box-shadow: 0 8px 20px rgba(18,167,137,.2); }
.secondary { background: var(--navy); color: #fff; }.outline { background: #fff; border: 1px solid var(--line); }.danger { background: var(--red-soft); color: var(--red); }
.wide { width: 100%; }.tiny { padding: 8px 11px; font-size: 10px; border-radius: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }.section-title h2 { margin: 0; font-size: 17px; }.section-title button { border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 800; cursor: pointer; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.kpi { padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }.kpi .kpi-icon { font-size: 18px; }.kpi b { display: block; font-size: 24px; margin-top: 10px; }.kpi small { color: var(--ink-muted); font-size: 9px; line-height: 1.2; display: block; }
.match-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.image-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; }.property-image { height: 108px; background: linear-gradient(135deg, #bee7e0, #496b8f); position: relative; overflow: hidden; }.property-image:after { content: '⌂'; position: absolute; color: rgba(255,255,255,.9); font-size: 70px; right: 17px; bottom: -6px; }.score { position: absolute; left: 9px; top: 9px; background: var(--teal); color: #fff; border-radius: 10px; padding: 6px 8px; font-weight: 800; font-size: 11px; z-index: 1; }.image-card .card-body { padding: 11px; }.image-card h3 { margin: 0; font-size: 12px; }.image-card p { margin: 4px 0 0; color: var(--ink-muted); font-size: 9px; }
.search { display: flex; align-items: center; gap: 10px; background: #f3f5f8; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; color: var(--ink-muted); }.search input { width: 100%; border: 0; outline: none; background: transparent; font-size: 12px; }.search button { border: 0; background: transparent; cursor: pointer; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }.chip { white-space: nowrap; border: 1px solid transparent; background: #f2f4f7; color: #66748a; border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 700; cursor: pointer; }.chip.active { background: var(--teal-soft); color: var(--teal-dark); border-color: #b9e8dc; }
.list { display: grid; gap: 10px; }.list-card { border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: #fff; box-shadow: 0 4px 14px rgba(16,27,50,.035); cursor: pointer; }.list-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.list-card h3 { margin: 0 0 5px; font-size: 14px; }.list-card p { margin: 4px 0; font-size: 10px; color: var(--ink-muted); }.list-card strong { font-size: 12px; }.status-pill { padding: 5px 8px; background: var(--gold-soft); color: #96701d; }.status-pill.available { background: var(--teal-soft); color: var(--teal-dark); }.count-box { text-align: center; background: var(--teal-soft); color: var(--teal-dark); border-radius: 12px; padding: 8px; min-width: 62px; }.count-box b { display: block; font-size: 18px; }.count-box small { font-size: 7px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.progress-head h1 { margin: 0; font-size: 25px; }.progress-head span { font-size: 11px; color: var(--ink-muted); }.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 25px; }.progress i { height: 4px; border-radius: 5px; background: #e5e9ef; }.progress i.done { background: var(--teal); }
.form-section { margin: 20px 0; }.form-section h2 { font-size: 16px; margin: 0 0 12px; }.field-label { font-size: 11px; font-weight: 800; margin: 14px 0 7px; display: block; }.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.choice-grid.four { grid-template-columns: repeat(4, 1fr); }.choice { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 12px 8px; cursor: pointer; font-size: 10px; font-weight: 700; text-align: center; }.choice.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); box-shadow: inset 0 0 0 1px var(--teal); }
.field { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 13px; outline: none; font-size: 11px; }.field:focus { border-color: var(--teal); }.form-actions { display: grid; gap: 8px; margin-top: 22px; }.text-button { border: 0; background: transparent; color: var(--teal-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0; }.date-box { width: 100%; padding: 10px; background: #f5f7fa; border: 1px solid transparent; border-radius: 11px; color: var(--navy); font-size: 9px; text-align: center; }
.property-row { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; display: grid; grid-template-columns: 120px 1fr; min-height: 135px; background: #fff; cursor: pointer; }.property-row .property-image { height: 100%; }.property-info { padding: 13px; min-width: 0; }.property-info h3 { margin: 6px 0; font-size: 13px; }.property-info p { margin: 4px 0; color: var(--ink-muted); font-size: 9px; }.property-info strong { display: block; margin-top: 9px; font-size: 15px; }.sale-label { color: var(--teal-dark); font-size: 10px; font-weight: 800; }.rent-label { color: #a57712; font-size: 10px; font-weight: 800; }
.banner { padding: 13px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-soft), #fffaf0); color: #765818; font-size: 10px; margin-bottom: 15px; }.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }.tag-cloud .chip { font-size: 9px; }.match-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; }.match-card + .match-card { margin-top: 10px; }.match-summary { display: grid; grid-template-columns: 62px 1fr; gap: 12px; }.score-ring { width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--teal) var(--score), #e5edf0 0); display: grid; place-items: center; position: relative; }.score-ring:after { content: ''; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #fff; }.score-ring b { z-index: 1; font-size: 15px; }.compare-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.compare-mini div { padding: 10px; border-radius: 11px; background: #f5f7f9; font-size: 8px; }.compare-mini b { display: block; font-size: 9px; margin-bottom: 4px; }.match-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }.match-open { width: 100%; margin-top: 9px; }
.detail-score { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }.detail-score h1 { margin: 0; font-size: 28px; }.detail-score p { color: var(--ink-muted); font-size: 10px; margin: 4px 0 0; }.detail-block { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #fafbfd; }.detail-block.found { background: #f2fbf9; border-color: #cceee6; }.detail-block h2 { font-size: 11px; letter-spacing: 1px; margin: 0 0 12px; }.detail-line { display: flex; gap: 8px; margin: 7px 0; font-size: 10px; }.divider { display: flex; align-items: center; gap: 9px; margin: 13px 0; }.divider:before,.divider:after { content: ''; height: 1px; background: #ccd5df; flex: 1; }.divider span { background: var(--navy); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }.telegram-link { color: var(--teal-dark); background: var(--teal-soft); padding: 10px; display: block; border-radius: 10px; text-align: center; font-size: 9px; font-weight: 800; margin-top: 10px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3f6; border-radius: 13px; padding: 3px; margin-bottom: 14px; }.tab { border: 0; background: transparent; border-radius: 10px; padding: 10px; font-size: 11px; cursor: pointer; }.tab.active { background: var(--teal); color: #fff; font-weight: 800; }
.manage-row { position: relative; }.manage-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.manage-actions button, .manage-actions .button-link { padding: 8px; font-size: 8px; }
.button-link { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border-radius: 14px; font-weight: 800; }
.comment-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 9px; }.comment-author { display: flex; justify-content: space-between; }.comment-author b { font-size: 11px; }.comment-author small { color: var(--ink-muted); font-size: 8px; }.comment-card p { margin: 10px 0 0; font-size: 10px; }.comment-box { min-height: 90px; resize: vertical; margin-top: 5px; }
.admin-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.admin-kpis .kpi { display: flex; align-items: center; gap: 10px; }.admin-kpis .kpi b { margin: 0; }.access-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }.access-row:last-child { border: 0; }.access-row b { font-size: 10px; display: block; }.access-row small { color: var(--ink-muted); font-size: 8px; }.access-actions { display: flex; gap: 5px; }.admin-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.admin-menu button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px; font-size: 9px; font-weight: 800; cursor: pointer; }.chart { height: 120px; display: flex; align-items: end; gap: 9px; border-bottom: 1px solid var(--line); padding: 10px 6px 0; }.bar { flex: 1; height: var(--h); background: linear-gradient(var(--teal), #8edacc); border-radius: 5px 5px 0 0; }
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; z-index: 30; backdrop-filter: blur(12px); }.bottom-nav button { border: 0; background: transparent; color: #7c889a; font-size: 8px; display: grid; place-items: center; gap: 3px; cursor: pointer; min-width: 56px; }.bottom-nav button span { font-size: 19px; line-height: 1; }.bottom-nav button.active { color: var(--teal-dark); font-weight: 800; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 11px; box-shadow: var(--shadow); animation: toast 2.6s both; }.empty-note { text-align: center; color: var(--ink-muted); font-size: 10px; padding: 20px; }
@keyframes toast { 0%{opacity:0;transform:translate(-50%,10px)} 12%,82%{opacity:1;transform:translate(-50%,0)} 100%{opacity:0;transform:translate(-50%,-6px)} }
@media (max-width: 850px) { .prototype-shell { display: block; }.desktop-nav { display: none; }.phone-stage { padding: 0; }.phone { width: 100%; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: none; }.app-header { padding-top: max(16px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)); height: calc(72px + max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px))); }.bottom-nav { position: fixed; padding-bottom: max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)); height: calc(70px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); }.app-content { padding-bottom: 30px; } }
@media (max-width: 390px) { .app-content { padding-left: 16px; padding-right: 16px; }.choice-grid.four,.filter-grid { grid-template-columns: 1fr 1fr; }.filter-grid .field:last-child { grid-column: 1 / -1; }.page-head h1 { font-size: 27px; }.property-row { grid-template-columns: 105px 1fr; } }
