@font-face { font-family: 'Tajawal'; src: url('/fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: 'Tajawal', -apple-system, 'Segoe UI', Roboto, sans-serif; background: #F5F5F7; color: #111; }
.screen { min-height: 100vh; }
.hidden { display: none !important; }

/* ---------- brand ---------- */
.logo-img { height: 30px; width: auto; }
.icon-img { height: 22px; width: 22px; }
.icon-img.sm { height: 16px; width: 16px; }
.icon-btn { font-size: 18px; }

/* ---------- auth ---------- */
.auth-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.auth-body { max-width: 430px; margin: 0 auto; padding: 8px 22px 40px; text-align: center; }
.illus-img { max-width: 270px; width: 100%; margin: 6px auto 4px; display: block; }
.onb-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 6px 0 18px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 28px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #bbb; }
.dot.on { background: #111; border-color: #111; }
.card-plain { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); text-align: left; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: #666; margin: 12px 2px 5px; }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid #E5E5E5; border-radius: 12px; font-size: 15px; background: #fff; outline: none; }
.input:focus { border-color: #FF6B00; }
.btn { border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn.primary { background: #FF6B00; color: #fff; }
.btn.gray { background: #D9D9D9; color: #222; }
.btn.primary.big, .btn.gray.big { width: 100%; margin-top: 12px; padding: 15px; border-radius: 14px; }
.btn.sm { padding: 8px 16px; font-size: 12.5px; border-radius: 999px; margin-top: 10px; }
.btn.ghost { background: transparent; border: 1.5px solid #D8D8D8; color: #555; width: 100%; margin-top: 10px; }
.msg { font-size: 13px; color: #E05C5C; margin: 10px 2px; }

/* ---------- app header ---------- */
.app-header { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px; position: sticky; top: 0; z-index: 9; }
.hdr-icons { display: flex; gap: 12px; align-items: center; }

/* ---------- views ---------- */
.view { max-width: 520px; margin: 0 auto; padding: 4px 14px 96px; }
.sec-title { font-size: 19px; font-weight: 800; margin: 16px 2px 10px; }

/* status tabs */
.chips { display: flex; gap: 8px; margin: 6px 0 12px; }
.chip { border: 0; background: none; font-size: 15px; font-weight: 700; color: #999; padding: 6px 2px; cursor: pointer; border-bottom: 2.5px solid transparent; font-family: inherit; }
.chip.on { color: #FF6B00; border-bottom-color: #FF6B00; }

/* banner */
.banner-card { background: #FBE9D8; border-radius: 16px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 6px; }
.banner-txt h3 { margin: 0 0 4px; font-size: 17px; }
.banner-txt p { margin: 0; font-size: 12px; color: #777; line-height: 1.4; }
.banner-art { height: 64px; width: auto; }

/* property cards */
.prop-card { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); cursor: pointer; }
.prop-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.prop-body { padding: 13px 15px 15px; }
.prop-body h3 { margin: 0 0 3px; font-size: 16.5px; }
.prop-loc { font-size: 12.5px; color: #888; margin-bottom: 6px; }
.prop-price { font-size: 19px; font-weight: 800; color: #FF6B00; margin-bottom: 8px; }
.fund-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 4px; }
.funded { color: #FF6B00; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.elec { height: 14px; width: 14px; }
.avail { color: #999; }
.bar { height: 7px; background: #EDEDED; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: #FF6B00; border-radius: 5px; transition: width .5s; }
.empty-note { color: #999; text-align: center; padding: 26px 0; }

/* ---------- detail ---------- */
.detail-hero { position: relative; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 0; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 5px rgba(0,0,0,.15); cursor: pointer; }
.detail-hero .round-btn { position: absolute; top: 14px; z-index: 2; }
#detail-back { left: 14px; }
.detail-hero .round-btn:nth-of-type(2) { right: 60px; }
.detail-hero .round-btn:nth-of-type(3) { right: 14px; }
.hero-img { width: 100%; height: 300px; object-fit: cover; display: block; }
.thumbs { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 8px; }
.thumb { width: 74px; height: 74px; border-radius: 12px; background-size: cover; background-position: center; border: 3px solid transparent; cursor: pointer; background-color: #222; }
.thumb.on { border-color: #FF6B00; }
.detail-body { padding: 16px 16px 30px; }
.d-title { margin: 0 0 4px; font-size: 20px; }
.d-loc { font-size: 13px; color: #777; margin-bottom: 4px; }
.d-specs { font-size: 13px; color: #888; margin-bottom: 12px; }
.d-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.d-price { font-size: 22px; font-weight: 800; color: #FF6B00; }
.d-label { font-size: 12.5px; color: #555; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { border: 1.5px solid #ddd; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #333; display: inline-flex; align-items: center; gap: 5px; }
.pill img { height: 14px; width: 14px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.metric { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.m-icon { width: 34px; height: 34px; border-radius: 50%; background: #F2F2F2; display: flex; align-items: center; justify-content: center; }
.m-icon img { height: 17px; width: 17px; }
.m-label { font-size: 11px; color: #999; display: block; }
.metric b { font-size: 14.5px; }

/* wallet / rewards */
.wallet-card { background: linear-gradient(135deg, #FF6B00, #F47321); color: #fff; border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.wallet-card.alt { background: linear-gradient(135deg, #222, #555); }
.wallet-card span { font-size: 13px; opacity: .9; }
.wallet-card b { display: block; font-size: 26px; margin-top: 4px; }
.tx { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.tx b { display: block; font-size: 13.5px; text-transform: capitalize; }
.tx span { font-size: 11.5px; color: #999; }
.tx .pos { color: #16A34A; font-weight: 700; }
.tx .neg { color: #DC2626; font-weight: 700; }
.ref-row { margin-top: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.modal-card { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 520px; padding: 18px 18px 30px; }
.head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.calc-grid div { background: #F6F6F6; border-radius: 12px; padding: 12px; text-align: center; }
.calc-grid b { display: block; font-size: 15px; color: #FF6B00; }
.calc-grid span { font-size: 11px; color: #888; }

/* ---------- fab + tabbar ---------- */
.fab { position: fixed; left: 18px; bottom: 86px; width: 54px; height: 54px; border-radius: 50%; background: #FF6B00; color: #fff; font-size: 22px; border: 0; box-shadow: 0 4px 14px rgba(255,107,0,.4); z-index: 8; cursor: pointer; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; border-top: 1px solid #EDEDED; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabbar-btn { flex: 1; border: 0; background: none; padding: 8px 0 7px; font-size: 10px; color: #999; font-weight: 700; font-family: inherit; }
.tabbar-btn img { height: 21px; width: 21px; display: block; margin: 0 auto 2px; }
.tabbar-btn.on { color: #FF6B00; }

/* toast */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: 90vw; text-align: center; }

/* ---------- profile (app structure) ---------- */
.prof-head { text-align: center; padding: 14px 0 8px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #eee; }
.prof-name { margin: 10px 0 0; font-size: 19px; font-weight: 800; }
.prof-phone { margin: 2px 0 0; font-size: 13px; color: #888; }
.menu-list { margin-top: 14px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.menu-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 13px 16px; font-size: 14px; font-weight: 600; color: #222; border-bottom: 1px solid #F2F2F2; cursor: pointer; font-family: inherit; text-align: left; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list img { height: 20px; width: 20px; }

/* ---------- detail extra sections ---------- */
.d-desc { font-size: 13.5px; color: #555; line-height: 1.6; margin: 0 2px 4px; }
.tl-row { display: flex; gap: 10px; padding: 8px 2px; align-items: flex-start; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #FF6B00; margin-top: 3px; flex-shrink: 0; }
.tl-dot.done { background: #FF6B00; }
.tl-txt b { display: block; font-size: 13.5px; }
.tl-txt span { font-size: 12px; color: #888; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); cursor: pointer; padding-bottom: 10px; }
.sim-card img { width: 100%; height: 90px; object-fit: cover; display: block; }
.sim-card b { display: block; font-size: 12.5px; padding: 8px 10px 0; }
.sim-card span { display: block; font-size: 12px; color: #FF6B00; font-weight: 700; padding: 2px 10px 0; }

/* ---------- subpages ---------- */
.sub-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.sub-title { margin: 0; font-size: 18px; font-weight: 800; }
.page-icon { height: 44px; width: 44px; margin: 4px auto 8px; display: block; }
.center { text-align: center; }
.code-box { background: #F6F6F6; border-radius: 12px; padding: 14px; font-size: 20px; letter-spacing: 2px; margin: 10px 0; text-align: center; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #F2F2F2; font-size: 14px; }
.toggle-row input { width: 42px; height: 22px; accent-color: #FF6B00; }
.stars { font-size: 34px; color: #FF6B00; letter-spacing: 6px; text-align: center; margin: 10px 0; cursor: pointer; }
.help-row { padding: 8px 0; font-size: 14px; }
details { padding: 8px 0; border-bottom: 1px solid #F2F2F2; }
details summary { font-weight: 700; font-size: 13.5px; cursor: pointer; }
details p { font-size: 12.5px; color: #666; margin: 6px 0 0; }
.step { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: #FF6B00; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.step b { font-size: 14px; }
.step p { margin: 2px 0 0; font-size: 12.5px; color: #666; }

/* ---------- card: swipe gallery · chips · metrics · rows ---------- */
.pgal { position: relative; }
.pgal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px 20px 0 0; }
.pgal-track::-webkit-scrollbar { display: none; }
.pgal-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pgal-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ph { width: 100%; height: 180px; background: #eee; }
.pgal-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pgal-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pgal-dot.on { background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; color: #fff; font-size: 11px; font-weight: 700; }
.chip.strat { position: absolute; top: 12px; left: 14px; z-index: 2; }
.chip.src { position: absolute; top: 12px; left: 14px; z-index: 2; background: #6D28D9; }
.pgal .chip.src { left: auto; right: 14px; top: 52px; }
.chip.stat { background: #16A34A; }
.chip.done { background: #16A34A; }
.save-btn { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.card-metrics { margin: 12px 0 8px; gap: 8px; }
.card-metrics .metric { padding: 8px; border-radius: 10px; background: #F8F8F8; }
.line-price { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 2px; font-size: 13px; font-weight: 700; }
.fd-ok { color: #16A34A; }
.fd-no { color: #999; }
.pct-n { color: #FF7000; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #444; }
.inv-now { width: 100%; margin-top: 12px; }

/* ---------- detail: investors banner + financial breakdown ---------- */
.inv-banner { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; background: #FFF4EC; border-radius: 12px; margin: 10px 2px 4px; }
.inv-num { font-weight: 800; font-size: 14px; color: #FF7000; }
.inv-sub { font-size: 12.5px; color: #7a5a44; }
.bd-row { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed #EAEAEA; font-size: 13.5px; }
.bd-row b { font-weight: 700; }

/* ---------- home filters ---------- */
.filter-bar { display: flex; gap: 8px; margin: 2px 0 10px; }
.filter-bar .input { flex: 1; font-size: 12.5px; padding: 8px 6px; }

/* ---------- detail: exact app layout ---------- */
.d-hero { position: relative; height: 300px; background: #eee; }
.d-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-topbar { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; z-index: 5; }
.round-btn.light { background: rgba(0,0,0,.35); color: #fff; border: none; }
.hdr-btns { display: flex; gap: 12px; }
.d-thumbs { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 8px; overflow-x: auto; padding: 4px; z-index: 4; }
.d-thumbs .thumb { flex: 0 0 64px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; }
.d-thumbs .thumb.on { border-color: #FF7000; }
.d-card { background: #fff; border-radius: 26px 26px 0 0; margin-top: -24px; position: relative; padding: 18px 16px 96px; }
.d-head h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
#d-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #666; margin-bottom: 8px; }
.meta-chip { background: #F5F5F5; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.d-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.d-price-row b { font-size: 21px; color: #FF7000; }
.d-label { font-size: 11.5px; color: #888; }
.d-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.d-fund { margin: 8px 0 14px; }
.d-avail-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.d-avail-row .avail { color: #8A8A8A; }
.info-i { color: #d1d1d0; font-size: 14px; cursor: help; }
.how-card { background: #fff8f2; border: 1px solid #FFE3CC; border-radius: 14px; padding: 12px; margin: 10px 0; }
.how-card h4 { margin: 0 0 10px; font-size: 15px; }
.how-steps { display: flex; gap: 8px; }
.how-step { flex: 1; background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; }
.how-step b { display: block; font-size: 12px; margin-top: 6px; }
.how-step p { margin: 2px 0 0; font-size: 10.5px; color: #888; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.sec-ic { font-size: 18px; }
.row-link { display: flex; align-items: center; gap: 6px; padding: 12px 4px; font-size: 13.5px; font-weight: 600; color: #444; border-bottom: 1px solid #F2F2F2; cursor: pointer; }
.strat-card { display: flex; gap: 10px; background: #fff8f2; border-radius: 12px; padding: 12px; margin: 6px 0; }
.strat-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.strat-bd b { font-size: 14px; }
.strat-bd p { margin: 3px 0 0; font-size: 12px; color: #777; }
.calc-box { background: #FAFAFA; border-radius: 14px; padding: 14px; }
.calc-rows { display: flex; flex-direction: column; gap: 4px; }
.calc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.calc-row b { color: #FF7000; }
.calc-rows input[type=range] { width: 100%; accent-color: #FF7000; margin: 2px 0 8px; }
.calc-res { display: flex; gap: 8px; margin-top: 8px; }
.calc-res div { flex: 1; background: #fff; border: 1px solid #F0F0F0; border-radius: 10px; padding: 8px 6px; text-align: center; }
.calc-res span { display: block; font-size: 10.5px; color: #999; }
.calc-res b { display: block; font-size: 13px; color: #FF7000; margin-top: 2px; }
.why-card { background: linear-gradient(135deg, #fff8f2, #fff); border: 1px solid #FFE3CC; border-radius: 14px; padding: 14px; margin: 10px 0; }
.why-card h4 { margin: 0 0 4px; font-size: 15px; }
.why-card p { margin: 0; font-size: 12px; color: #666; }
.avg-row { display: flex; gap: 10px; margin-top: 10px; }
.avg { flex: 1; background: #fff; border-radius: 10px; padding: 10px; text-align: center; }
.avg-b { font-size: 20px; display: block; }
.avg b { display: block; color: #16A34A; font-size: 15px; margin-top: 2px; }
.avg p { margin: 0; font-size: 10.5px; color: #888; }
.lease-card { background: #FAFAFA; border-radius: 14px; padding: 12px 14px; }
.lease-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #ECECEC; }
.lease-row b { font-weight: 600; }
.lease-desc { font-size: 11.5px; color: #777; margin: 8px 0 0; }
.guarantee-card { display: flex; gap: 12px; align-items: center; background: #FFF4EC; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.g-ic { font-size: 26px; }
.guarantee-card b { font-size: 14px; color: #FF7000; }
.guarantee-card p { margin: 2px 0 0; font-size: 11.5px; color: #666; }
.exit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exit-card { background: #FAFAFA; border-radius: 12px; padding: 12px; }
.exit-card b { font-size: 13.5px; }
.exit-card p { margin: 4px 0 0; font-size: 11.5px; color: #777; }
.dev-card { display: flex; gap: 10px; background: #FAFAFA; border-radius: 12px; padding: 12px; margin-top: 10px; }
.dev-ic { font-size: 26px; }
.dev-card b { font-size: 14px; }
.dev-card p { margin: 2px 0 0; font-size: 12px; color: #777; }
.map-embed { width: 100%; height: 150px; border: 0; border-radius: 12px; }
.doc-row { display: flex; gap: 10px; align-items: center; background: #FAFAFA; border-radius: 10px; padding: 10px 12px; margin: 6px 0; text-decoration: none; color: inherit; }
.doc-ic { font-size: 20px; }
.doc-row b { font-size: 13px; }
.doc-row p { margin: 0; font-size: 11px; color: #999; }
.q-card { background: #fff8f2; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.q-card p { margin: 4px 0 0; font-size: 12px; color: #666; }
.d-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; z-index: 30; border-top: 1px solid #F0F0F0; }
.d-bottom .btn { flex: 1; }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 60; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer-close { position: absolute; top: 18px; right: 20px; color: #fff; font-size: 22px; cursor: pointer; z-index: 2; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 34px; padding: 10px; cursor: pointer; z-index: 2; }
.viewer-prev { left: 8px; } .viewer-next { right: 8px; }

/* ================= PREMIUM PASS — unique, premium feel ================= */
.btn { border-radius: 999px; letter-spacing: .2px; transition: transform .15s ease, box-shadow .15s ease; font-weight: 700; }
.btn.primary { background: linear-gradient(135deg, #FF6B00 0%, #FF9A4D 100%); box-shadow: 0 8px 18px rgba(255,107,0,.32); }
.btn.primary:active { transform: scale(.97); }
.btn.gray { background: #F4F4F4; }
.btn.ghost { background: #fff; border: 1.5px solid #E6E6E6; }
.prop-card { border-radius: 20px; box-shadow: 0 2px 12px rgba(20,20,20,.06); border: 1px solid #F1EFEC; overflow: hidden; }
.pimg { position: relative; height: 180px; background: linear-gradient(135deg, #FFF6EE, #FFEAD8); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg .ph { position: static; width: 100%; height: 100%; background: linear-gradient(135deg,#FFEAD8,#FFF6EE); }
.p-badge { position: absolute; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; color: #fff; z-index: 3; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.22); backdrop-filter: blur(4px); }
.b-strat { top: 12px; left: 12px; background: linear-gradient(135deg,#FF6B00,#FF9A4D); }
.b-src { top: 12px; right: 46px; background: linear-gradient(135deg,#6D28D9,#8B5CF6); }
.b-new { top: 46px; left: 12px; background: linear-gradient(135deg,#10B981,#34D399); }
.b-fund { bottom: 12px; right: 12px; background: linear-gradient(135deg,#FF6B00,#FF9A4D); }
.b-fund.b-full { background: linear-gradient(135deg,#059669,#10B981); }
.b-fund .elec { width: 11px; height: 11px; }
.save-btn { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.metric { border-radius: 14px; background: #fff; border: 1px solid #F3EFEA; padding: 10px 8px; }
.m-icon { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#FF6B00,#FF9A4D); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(255,107,0,.28); flex-shrink: 0; }
.m-icon img { width: 17px; height: 17px; }
.banner-card { background: linear-gradient(135deg, #FF6B00 0%, #FF8E3C 55%, #FFB27A 100%); color: #fff; border-radius: 20px; box-shadow: 0 10px 26px rgba(255,107,0,.32); }
.banner-card h3, .banner-card p { color: #fff; }
.banner-card .btn.primary { background: #fff; color: #FF6B00; box-shadow: none; }
.banner-card .banner-art { filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.tabbar { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid #F0F0F0; }
.sec-title { font-weight: 800; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(180deg,#FF6B00,#FF9A4D); }
.input { border-radius: 13px; border: 1.5px solid #ECECEC; background: #FAFAFA; }
.input:focus { border-color: #FF6B00; background: #fff; }
.d-card { box-shadow: 0 -6px 30px rgba(20,20,20,.07); }
.d-bottom { background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.d-thumbs .thumb { border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.d-thumbs .thumb.on { border-color: #FF6B00; box-shadow: 0 0 0 2px rgba(255,107,0,.35); }
.d-hero { height: 320px; background: linear-gradient(135deg,#FFEAD8,#FFF6EE); }
.d-bottom .chip.src { position: static; }
.prop-price b { background: linear-gradient(90deg,#FF6B00,#FF9A4D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.d-price b { background: linear-gradient(90deg,#FF6B00,#FF9A4D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.round-btn { border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fab { background: linear-gradient(135deg,#FF6B00,#FF9A4D); box-shadow: 0 10px 22px rgba(255,107,0,.4); }
.strat-card, .lease-card, .guarantee-card, .dev-card, .exit-card, .calc-box, .q-card, .how-card, .why-card { box-shadow: 0 2px 10px rgba(255,107,0,.05); }
.bar-fill { background: linear-gradient(90deg,#FF6B00,#FF9A4D); }
body { -webkit-font-smoothing: antialiased; }
.chip { box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* ================= POPPINS + PREMIUM PASS 2 ================= */
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
body, .btn, .input, .chip, .sec-title, h1, h2, h3, h4, .w-balance { font-family: 'Poppins', 'Tajawal', system-ui, sans-serif; }
h1, h2, h3, h4, .sec-title, .d-title, .sub-title { letter-spacing: -.2px; }

/* home greeting */
.home-greet { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 12px; }
.hg-hi { font-size: 12.5px; color: #9A9A9A; font-weight: 500; display: block; }
.hg-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; display: block; }
.hg-bell { position: relative; width: 40px; height: 40px; border-radius: 14px; background: #F6F3EF; display: flex; align-items: center; justify-content: center; }
.bell-dot { position: absolute; top: 6px; right: 7px; min-width: 16px; height: 16px; border-radius: 9px; background: linear-gradient(135deg,#FF6B00,#FF9A4D); color: #fff; font-size: 9.5px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ================= WALLET — Binance/Bybit-style ================= */
.wallet-hero { border-radius: 22px; padding: 20px 18px 16px; color: #fff; background: linear-gradient(135deg,#191C1F 0%, #2A2E33 55%, #3A2E22 100%); position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(20,22,25,.35); }
.wallet-hero::after { content: ""; position: absolute; top: -60px; right: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,0,.45), transparent 70%); }
.wallet-hero::before { content: ""; position: absolute; bottom: -70px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,77,.25), transparent 70%); }
.w-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.w-label { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.eye-btn { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; }
.w-balance { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.6px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.w-sub { font-size: 12px; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.w-actions { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.w-act { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 9px 4px; color: #fff; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: background .15s; }
.w-act span { font-size: 15px; }
.w-act:active { background: rgba(255,107,0,.45); }
.w-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.w-stat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #F1EFEC; border-radius: 15px; padding: 11px; }
.ws-txt b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.ws-txt span { font-size: 10.5px; color: #9A9A9A; }
.pnl-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #F1EFEC; border-radius: 15px; padding: 13px 14px; margin: 10px 0; }
.pnl-lbl { display: block; font-size: 10.5px; color: #9A9A9A; text-transform: uppercase; letter-spacing: .4px; }
.pnl-row b { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.pnl-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pnl-badge.pos { color: #059669; background: #ECFDF5; }
.pnl-badge.neg { color: #DC2626; background: #FEF2F2; }
.pnl-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: #8A8A8A; margin: 0 2px 8px; }
.pnl-sub b { color: #333; }
.chart { width: 100%; height: 130px; display: block; background: #fff; border: 1px solid #F1EFEC; border-radius: 15px; }
.w-alloc { background: #fff; border: 1px solid #F1EFEC; border-radius: 15px; padding: 12px 14px; margin: 12px 0; }
.w-alloc h4 { margin: 0 0 8px; font-size: 13.5px; }
.alloc-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #F1EFEC; font-size: 12.5px; }
.alloc-row:last-child { border-bottom: none; }
.alloc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.alloc-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-val { font-variant-numeric: tabular-nums; }
.alloc-val b { color: #FF6B00; }
.w-tx-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.w-tx-head .sec-title { margin: 0; }
.tx { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #F1EFEC; border-radius: 14px; padding: 10px 12px; margin: 7px 0; }
.tx-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #F6F3EF; flex-shrink: 0; }
.tx-ic.pos { background: #ECFDF5; }
.tx-ic.neg { background: #FFF1F1; }
.tx-mid { flex: 1; min-width: 0; }
.tx-mid b { display: block; font-size: 12.5px; text-transform: capitalize; }
.tx-mid span { font-size: 10.5px; color: #9A9A9A; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-right { text-align: right; }
.tx-right b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.st { font-size: 9.5px; padding: 2px 7px; border-radius: 99px; font-weight: 600; }
.st.ok { color: #059669; background: #ECFDF5; }
.st.pend { color: #B45309; background: #FEF3C7; }
.help-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #F2F2F2; text-decoration: none; color: inherit; font-size: 14px; }
.help-row span { margin-left: auto; color: #C4C4C4; font-size: 16px; }
.ref-stats { display: flex; gap: 8px; margin: 10px 0; }
.ref-stats div { flex: 1; background: #F8F5F2; border-radius: 12px; padding: 9px 4px; }
.ref-stats b { display: block; font-size: 14px; }
.ref-stats span { font-size: 10px; color: #9A9A9A; }
.d-price-row b { background: linear-gradient(90deg,#FF6B00,#FF9A4D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- premium polish #3 ---------- */
.prop-card { transition: transform .18s ease, box-shadow .18s ease; }
.prop-card:active { transform: scale(.985); }
.saved-hint { font-size: 12px; color: #9A9A9A; margin: 2px 4px 10px; }
.w-stat, .pnl-row, .tx, .alloc-row b, .w-balance, .w-stat b, .tx-right b { font-variant-numeric: tabular-nums; }
.chip { transition: all .15s ease; }
.chip:active { transform: scale(.95); }
.sec-h { letter-spacing: -.2px; }
.bar { height: 6px; border-radius: 99px; background: #F2EEE9; overflow: hidden; }
.bar-fill { border-radius: 99px; height: 100%; }
.fund-row { margin-top: 8px; }
.d-price-row { gap: 12px; }
