@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 #E3DAC8; border-radius: 12px; font-size: 15px; background: #FBF8F1; outline: none; }
.input:focus { border-color: #FF6A00; }
.btn { border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn.primary { background: #FF6A00; 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: rgba(247,243,234,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); 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: #FF6A00; border-bottom-color: #FF6A00; }

/* 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: #FF6A00; margin-bottom: 8px; }
.fund-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 4px; }
.funded { color: #FF6A00; 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: #FF6A00; 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: #FF6A00; }
.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: #FF6A00; }
.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, #FF4D00, #FF8F3D); 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: #FBF8F1; 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: #FF6A00; }
.calc-grid span { font-size: 11px; color: #888; }

/* ---------- fab + tabbar ---------- */
.fab { position: fixed; right: 18px; bottom: 86px; width: 54px; height: 54px; border-radius: 50%; background: #FF6A00; color: #fff; font-size: 22px; border: 0; box-shadow: 0 4px 14px rgba(255,106,0,.4); z-index: 8; cursor: pointer; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(247,243,234,.94); display: flex; border-top: 1px solid #E3DAC8; 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: #FF6A00; }

/* 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 #FF6A00; margin-top: 3px; flex-shrink: 0; }
.tl-dot.done { background: #FF6A00; }
.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: #FF6A00; 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: #FF6A00; }
.stars { font-size: 34px; color: #FF6A00; 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: #FF6A00; 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: #FF6A00; }
.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: #FAF6ED; border-radius: 12px; margin: 10px 2px 4px; }
.inv-num { font-weight: 800; font-size: 14px; color: #FF6A00; }
.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: #FF6A00; }
.d-card { background: #FBF8F1; 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: #F3EDE0; 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: #FF6A00; }
.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: #FAF6ED; border: 1px solid #F6E9DA; 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: #FAF6ED; 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: #FF6A00; }
.calc-rows input[type=range] { width: 100%; accent-color: #FF6A00; margin: 2px 0 8px; }
.calc-res { display: flex; gap: 8px; margin-top: 8px; }
.calc-res div { flex: 1; background: #fff; border: 1px solid #E3DAC8; 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: #FF6A00; margin-top: 2px; }
.why-card { background: linear-gradient(135deg, #FAF6ED, #fff); border: 1px solid #F6E9DA; 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: #FAF6ED; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.g-ic { font-size: 26px; }
.guarantee-card b { font-size: 14px; color: #FF6A00; }
.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: #FAF6ED; 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: rgba(247,243,234,.95); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; z-index: 30; border-top: 1px solid #E3DAC8; }
.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, #FF6A00 0%, #FF8F3D 100%); box-shadow: 0 8px 18px rgba(255,106,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, #FAF6ED, #F6E9DA); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg .ph { position: static; width: 100%; height: 100%; background: linear-gradient(135deg,#F6E9DA,#FAF6ED); }
.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,#FF6A00,#FF8F3D); }
.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,#FF6A00,#FF8F3D); }
.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,#FF6A00,#FF8F3D); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(255,106,0,.28); flex-shrink: 0; }
.m-icon img { width: 17px; height: 17px; }
.banner-card { background: linear-gradient(135deg, #FF6A00 0%, #A31616 55%, #FF8F3D 100%); color: #fff; border-radius: 20px; box-shadow: 0 10px 26px rgba(255,106,0,.32); }
.banner-card h3, .banner-card p { color: #fff; }
.banner-card .btn.primary { background: #fff; color: #FF6A00; box-shadow: none; }
.banner-card .banner-art { filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.tabbar { background: rgba(247,243,234,.94); backdrop-filter: blur(14px); border-top: 1px solid #E3DAC8; }
.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,#FF6A00,#FF8F3D); }
.input { border-radius: 13px; border: 1.5px solid #E3DAC8; background: #FBF8F1; }
.input:focus { border-color: #FF6A00; background: #F7F3EA; }
.d-card { box-shadow: 0 -6px 30px rgba(20,20,20,.07); }
.d-bottom { background: rgba(247,243,234,.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: #FF6A00; box-shadow: 0 0 0 2px rgba(255,106,0,.35); }
.d-hero { height: 320px; background: linear-gradient(135deg,#F6E9DA,#FAF6ED); }
.d-bottom .chip.src { position: static; }
.prop-price b { background: linear-gradient(90deg,#FF6A00,#FF8F3D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.d-price b { background: linear-gradient(90deg,#FF6A00,#FF8F3D); -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,#FF6A00,#FF8F3D); box-shadow: 0 10px 22px rgba(255,106,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,106,0,.05); }
.bar-fill { background: linear-gradient(90deg,#FF6A00,#FF8F3D); }
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: #F7F3EA; 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,#FF6A00,#FF8F3D); 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,106,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(226,98,79,.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,106,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: #FF6A00; }
.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: #F7F3EA; 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,#FF6A00,#FF8F3D); -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; }

/* ================= ANIMATIONS + NOTIFICATIONS ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.prop-card { animation: fadeUp .45s ease both; }
.prop-card:nth-child(2) { animation-delay: .06s; }
.prop-card:nth-child(3) { animation-delay: .12s; }
.prop-card:nth-child(4) { animation-delay: .18s; }
.prop-card:nth-child(5) { animation-delay: .24s; }
.prop-card:nth-child(6) { animation-delay: .3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.banner-art { animation: floaty 3.6s ease-in-out infinite; }
@keyframes pulseSoft { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.b-new { animation: pulseSoft 1.9s ease-in-out infinite; }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-20deg); animation: shine 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { left: -80%; } 55%, 100% { left: 140%; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.save-btn.pop, .round-btn.pop { animation: pop .35s ease; }
.tabbar-btn:active img { transform: scale(.82); }
.tabbar-btn img { transition: transform .18s ease; }
.m-icon { transition: transform .2s ease; }
.m-icon:active { transform: scale(.9); }
.chart circle { filter: drop-shadow(0 0 5px rgba(255,106,0,.85)); }
.notif { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #F1EFEC; border-radius: 14px; padding: 12px; margin: 7px 0; cursor: pointer; animation: fadeUp .4s ease both; }
.notif.unread { border-color: #E3DAC8; background: #F3EDE0; }
.notif-ic { width: 36px; height: 36px; border-radius: 11px; background: #F7F3EA; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.save-ic { width: 16px; height: 16px; }
.hdr-icons .icon-img { cursor: pointer; transition: transform .18s ease; }
.hdr-icons .icon-img:active { transform: scale(.85); }

/* ================= PROJECTDIVIDO.COM BRAND 2.0 ================= */
:root {
  --orange: #FF6A00; --orange-bright: #FF6A00; --orange-soft: #FF8F3D;
  --orange-pale: #F3DCC4; --plum: #230f2b; --plum-deep: #1f1722;
  --sand: #F7F3EA; --sand-deep: #f4ece1; --gold: #c79645;
}
body { background: var(--sand); }
.prop-card, .metric, .w-stat, .pnl-row, .tx, .w-alloc, .strat-card, .lease-card, .guarantee-card, .dev-card, .exit-card, .calc-box, .q-card, .how-card, .why-card, .inv-card, .chart, .code-box { background: #fff; }
.sec-h, .sec-title { color: #1C1B1A; }
.btn.primary, .bar-fill, .m-icon, .fab, .b-strat, .b-fund, .b-new, .bell-dot, .p-badge.b-fund { background: linear-gradient(135deg, #FF6A00 0%, #FF8F3D 100%); }
.btn.primary { box-shadow: 0 10px 22px rgba(255,106,0,.32); }
.btn.primary::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); }
.b-fund .elec { filter: none; }
.p-badge.b-full { background: linear-gradient(135deg, #c79645, #e0b56e); }
.b-pend { background: linear-gradient(135deg, #A31616, #FF6A00); }
.b-src { background: linear-gradient(135deg, #FF6A00, #A31616); }
.b-new { background: linear-gradient(135deg, #10b981, #34d399); }
.prop-card { border-radius: 28px; }
.metric { border-radius: 18px; }
.wallet-hero, .inv-hero { border-radius: 28px; background: linear-gradient(135deg, #8F1D1D 0%, #A31616 55%, #FF6A00 100%); box-shadow: 0 18px 40px rgba(70,20,20, .45); }
.wallet-hero::after { background: radial-gradient(circle, rgba(255,106,0,.45), transparent 70%); }
.wallet-hero::before { background: radial-gradient(circle, rgba(226,98,79,.22), transparent 70%); }
.w-sub, .w-label { color: rgba(255,255,255,.7); }
.banner-card { background: linear-gradient(135deg, #FF6A00 0%, #A31616 55%, #FF8F3D 120%); border-radius: 28px; box-shadow: 0 16px 34px rgba(255,106,0,.35); }
.banner-card h3, .banner-card p { color: #fff; }
.prop-price b, .d-price-row b { background: linear-gradient(90deg, #FF6A00, #FF8F3D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pnl-badge.pos, .st.ok { color: #0e8a5f; background: #e8f7f0; }
.fd-ok { color: #0e8a5f; }
.fund-row .funded, .alloc-val b, .pct-n, .calc-res b { color: #FF6A00; }
.d-card { border-radius: 28px 28px 0 0; }
.round-btn { border-radius: 50%; }
.how-card, .why-card, .strat-card, .q-card { background: #FBF8F1; border-color: #E3DAC8; }
.wallet-hero .w-balance { color: #fff; }
.wallet-hero .w-act { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.inv-card { border-radius: 28px; overflow: hidden; border: 1px solid #E3DAC8; box-shadow: 0 2px 12px rgba(70,20,20,.05); margin: 10px 0; animation: fadeUp .45s ease both; }
.inv-imgw { position: relative; height: 160px; background: linear-gradient(135deg, #F6E9DA, #F7F3EA); }
.inv-imgw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-imgw .p-badge { bottom: 12px; right: 12px; }
.inv-body { padding: 14px 16px 16px; }
.inv-title { display: block; font-size: 15.5px; font-weight: 700; color: #1C1B1A; }
.inv-loc { font-size: 12px; color: #9a8f86; display: block; margin: 2px 0 10px; }
.inv-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.inv-rows div { background: #F7F3EA; border-radius: 12px; padding: 8px 10px; }
.inv-rows span { display: block; font-size: 10px; color: #7A6F5F; text-transform: uppercase; letter-spacing: .4px; }
.inv-rows b { font-size: 12.5px; color: #1C1B1A; font-variant-numeric: tabular-nums; }
.tabbar { background: rgba(247,243,234,.95); }
.chip { color: #1C1B1A; }
.home-greet .hg-name { color: #1C1B1A; }
.sec-title::before { background: linear-gradient(180deg, #FF6A00, #FF8F3D); }

/* ---------- type badges + status chips + specs ---------- */
.b-type { top: 46px; left: 12px; background: rgba(70,20,20, .78); }
.b-new { top: 80px; left: 12px; }
.ic-xs { width: 11px; height: 11px; }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; }
.meta-chip.st-available { color: #16A34A; background: #EAF7EF; }
.meta-chip.st-funded { color: #b8860b; background: #FBF3DF; }
.meta-chip.st-exited { color: #64748B; background: #EEF1F4; }
.meta-chip.st-type { color: #fff; background: linear-gradient(135deg, #230f2b, #4a3052); }
.meta-loc { display: inline-flex; align-items: center; gap: 4px; color: #8a7f76; }
.d-specs { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 8px; }
.spec { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #555; background: #F7F2EA; border-radius: 10px; padding: 6px 10px; }
.spec img { width: 14px; height: 14px; }
.prop-loc { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.prop-loc .ic-sm { width: 13px; height: 13px; }
.calc-grid { grid-template-columns: 1fr 1fr; }

/* ---------- centered calculator (matches app screen) ---------- */
.calc-box.center { text-align: center; padding: 18px 14px; }
.calc-box.center .lbl { display: block; font-size: 11px; color: #9a8f86; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.calc-amount { display: block; font-size: 24px; font-weight: 700; color: #1C1B1A; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.calc-presets { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.cp { flex: 1; max-width: 84px; padding: 8px 0; border-radius: 999px; border: 1.5px solid #E3DAC8; background: #FBF8F1; color: #1C1B1A; font-weight: 700; font-size: 12.5px; cursor: pointer; transition: all .18s ease; font-family: 'Poppins', sans-serif; }
.cp.on { background: linear-gradient(135deg, #FF6A00, #FF8F3D); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(255,106,0,.35); }
.calc-proj { background: linear-gradient(135deg, #FAF6ED, #fff); border: 1.5px solid #F7E8D4; border-radius: 18px; padding: 14px 10px; margin-bottom: 12px; }
.calc-proj span { display: block; font-size: 10.5px; color: #9a8f86; text-transform: uppercase; letter-spacing: .6px; }
.calc-proj b { display: block; font-size: 27px; font-weight: 800; background: linear-gradient(90deg, #FF6A00, #FF8F3D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; margin: 2px 0; }
.calc-return { display: inline-block !important; padding: 3px 12px; border-radius: 999px; background: #E8F7F0; color: #0e8a5f; font-weight: 700; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.calc-mini { display: flex; gap: 10px; }
.calc-mini div { flex: 1; background: #F7F3EA; border-radius: 14px; padding: 10px 6px; }
.calc-mini span { display: block; font-size: 10px; color: #a89a8d; text-transform: uppercase; letter-spacing: .4px; }
.calc-mini b { font-size: 13.5px; color: #1C1B1A; font-variant-numeric: tabular-nums; }
.calc-box.center input[type=range] { width: 100%; accent-color: #FF6A00; margin-bottom: 10px; }

/* ---------- global icon size guards ---------- */
.ic-sm { width: 14px; height: 14px; }
.tag img, .meta-loc img, .d-tags img, .d-tags .tag img, .alloc-row img { width: 14px; height: 14px; }
.menu-list button img { width: 22px; height: 22px; }
.p-badge img { display: inline-block; vertical-align: middle; }
.b-strat img, .meta-chip img { width: 12px; height: 12px; }


/* ================= ALIGNMENT + PREMIUM REFINEMENT PASS ================= */
/* small refined badges */
.p-badge { padding: 3px 9px; font-size: 9.5px; letter-spacing: .35px; gap: 3px; border-radius: 999px; }
.b-type { top: 46px; left: 12px; padding: 2px 8px; font-size: 9px; font-weight: 700; background: rgba(70,20,20, .72); }
.b-type .ic-xs { width: 9px; height: 9px; }
.b-new { top: 74px; }
.b-strat { padding: 3px 9px; font-size: 9.5px; }
.save-btn { width: 30px; height: 30px; top: 10px; right: 10px; }
.save-ic { width: 14px; height: 14px; }

/* card alignment */
.prop-body { padding: 14px 16px 18px; }
.prop-body h3 { font-size: 15.5px; line-height: 1.35; margin: 0 0 5px; letter-spacing: -.2px; }
.prop-loc { margin: 0 0 12px; font-size: 12px; color: #8a7f76; }
.card-metrics { margin: 12px 0 10px; gap: 8px; }
.metric { padding: 10px 8px; min-height: 58px; }
.metric .m-icon { width: 32px; height: 32px; border-radius: 10px; }
.metric .m-icon img { width: 16px; height: 16px; }
.m-label { font-size: 9.5px; letter-spacing: .3px; }
.metric b { font-size: 13px; letter-spacing: -.2px; }
.prop-price { margin: 2px 0 8px; font-size: 12px; color: #8a7f76; }
.prop-price b { font-size: 18px; }
.bar { margin: 0 0 6px; }
.line-price { margin: 0 0 8px; }
.fund-row { align-items: center; gap: 8px; margin-bottom: 2px; }
.tag { gap: 4px; font-size: 11.5px; }
.inv-now { margin-top: 14px; height: 40px; }

/* detail alignment */
.d-card { padding: 20px 16px 100px; }
.d-head h2 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
#d-meta { gap: 6px; margin: 0 0 10px; font-size: 11.5px; }
.meta-chip { padding: 3px 9px; font-size: 10.5px; }
.d-price-row { margin: 4px 0 10px; }
.d-price-row b { font-size: 20px; }
.d-tags { gap: 12px; margin: 2px 0 12px; }
.d-fund { margin: 10px 0 16px; }
.d-avail-row { margin-top: 8px; font-size: 12.5px; }
.sec-title { margin: 22px 0 10px; font-size: 15px; }
.d-desc { font-size: 13px; line-height: 1.65; }
.sec-h { margin: 22px 0 10px; font-size: 16px; }
.row-link { padding: 12px 2px; font-size: 13px; }
.calc-box { padding: 16px 14px; }
.calc-proj b { font-size: 26px; }

/* tabs + filters alignment */
.chip { padding: 7px 15px; font-size: 11.5px; letter-spacing: .2px; }
.filter-bar { gap: 8px; margin: 2px 0 8px; }
.filter-bar .input { padding: 8px 8px; font-size: 12px; }

/* wallet/investments alignment */
.w-stats { gap: 9px; margin: 14px 0 4px; }
.w-stat { padding: 12px 11px; border-radius: 16px; }
.ws-txt b { font-size: 13.5px; }
.ws-txt span { font-size: 10px; }
.pnl-row { padding: 13px 14px; margin: 10px 0; }
.tx { padding: 11px 12px; gap: 10px; }
.tx-ic { width: 34px; height: 34px; }
.inv-body { padding: 14px 16px 16px; }

/* uniform borders and shadows */
.prop-card, .w-stat, .pnl-row, .tx, .w-alloc, .inv-card, .metric, .calc-box, .strat-card, .lease-card, .guarantee-card, .dev-card, .exit-card { border: 1px solid #E3DAC8; }
.btn { font-size: 13px; }
.btn.big { font-size: 14px; height: 46px; }


/* ================= WHITE HEROES + REWARDS ================= */
.hero-white { background: linear-gradient(150deg, #FBF8F1 0%, #F7F3EA 55%, #F4EDDF 100%) !important; color: #1C1B1A; box-shadow: 0 16px 36px rgba(70,20,20, .10) !important; }
.hero-white::before, .hero-white::after { opacity: .55; }
.hero-white .w-label { color: #7A6F5F; }
.hero-white .w-balance { color: #1C1B1A; background: linear-gradient(90deg, #FF6A00, #FF8F3D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-white .w-sub { color: #8a7f76; }
.hero-white .eye-btn { background: #F0EADD; color: #1C1B1A; }
.hero-white .w-act { background: #FBF8F1; border: 1.5px solid #D8CCB4; color: #1C1B1A; }
.hero-white .w-act span { color: #FF6A00; }
.hero-white .w-act:active { background: #F3EDE0; }

/* tier progress */
.tier-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
.tier-track { flex: 1; height: 8px; border-radius: 99px; background: #E9E2D2; overflow: hidden; }
.tier-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF6A00, #FF8F3D); width: 0%; transition: width .6s ease; }
.tier-progress > span { font-size: 11px; color: #8a7f76; font-weight: 600; white-space: nowrap; }

/* rewards */
.rewards-hero { border-radius: 28px; padding: 20px 18px 16px; position: relative; overflow: hidden; margin-bottom: 14px; }
.r-steps { display: flex; gap: 8px; margin-top: 14px; }
.r-step { flex: 1; background: #F7F3EA; border-radius: 12px; padding: 10px 6px; text-align: center; }
.r-step .step-n { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #FF6A00, #FF8F3D); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.r-step b { display: block; font-size: 10.5px; margin-top: 6px; color: #1C1B1A; }
#r-list .tx { animation: fadeUp .4s ease both; }


/* ================= ENHANCEMENT PASS: skeleton / stats / share / micro ================= */
/* skeleton shimmer */
.skel-card { background: #fff; border-radius: 18px; padding: 10px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(70,20,20,.05); }
.skel { border-radius: 10px; background: linear-gradient(100deg, #E6DFD0 40%, #F1EBDF 50%, #E6DFD0 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.sk-img { height: 150px; margin-bottom: 10px; }
.sk-l1 { height: 14px; width: 70%; margin-bottom: 8px; }
.sk-l2 { height: 12px; width: 90%; margin-bottom: 8px; }
.sk-l3 { height: 12px; width: 50%; }
.sk-tx .sk-img { display: none; }
.sk-tx .sk-l1 { width: 60%; }
.sk-tx .sk-l2 { width: 40%; }
.sk-tx .sk-l3 { width: 25%; }
.sk-stat { display: flex; align-items: center; gap: 10px; padding: 12px; }
.sk-stat .sk-img { width: 42px; height: 42px; margin: 0; flex: none; }
.sk-stat .sk-l1 { width: 45%; margin-bottom: 6px; }
.sk-stat .sk-l2 { width: 70%; margin-bottom: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
#r-stats .skel-card { margin-bottom: 8px; }

/* home stats strip */
.home-stats { display: flex; gap: 8px; margin: 12px 0 14px; }
.hs-item { flex: 1; background: #fff; border: 1px solid #E0D7C4; border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: 0 4px 12px rgba(70,20,20,.04); }
.hs-item b { display: block; font-size: 16px; color: #1C1B1A; font-weight: 800; }
.hs-item span { font-size: 9.5px; color: #a89a8d; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* referral actions + whatsapp */
.ref-actions { display: flex; gap: 8px; margin-top: 10px; }
.ref-actions .btn { flex: 1; }
.btn.whatsapp { background: linear-gradient(135deg, #25D366, #1DA851); color: #fff; border: none; }
.btn.whatsapp:active { transform: scale(.96); }

/* micro-interactions */
.btn { transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease; }
.btn:active { transform: scale(.96); }
.prop-card, .w-stat, .hs-item, .card-plain { transition: transform .15s ease, box-shadow .2s ease; }
.prop-card:active, .w-stat:active { transform: scale(.985); }
.hs-item:active { transform: scale(.96); }
#hdr-refresh { cursor: pointer; }
#hdr-refresh:active { transform: rotate(180deg); }
#hdr-refresh { transition: transform .3s ease; }


/* ================= SMOOTH + CLEAR PASS ================= */
/* view transitions */
.view:not(.hidden) { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: .45; transform: translateY(10px); } to { opacity: 1; transform: none; } }
* { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* long-list perf */
.prop-card { content-visibility: auto; contain-intrinsic-size: auto 470px; }

/* tx day headers */
.tx-day { font-size: 11px; font-weight: 800; color: #a89a8d; text-transform: uppercase; letter-spacing: .6px; margin: 16px 2px 6px; display: flex; align-items: center; gap: 8px; }
.tx-day::after { content: ""; flex: 1; height: 1px; background: #E3DAC8; }

/* urgency (days left) */
.tag.urg { color: #A31616 !important; font-weight: 800; }
.d-tags .tag.urg { color: #A31616 !important; font-weight: 800; }

/* property count caption */
.sec-count { font-size: 11px; color: #a89a8d; font-weight: 600; margin-left: 8px; letter-spacing: .3px; }

/* busy button */
#m-confirm:disabled { opacity: .65; }


/* ================= APPLE EXPERIENCE PASS (iOS-style glass & motion) ================= */
/* ---- frosted glass surfaces ---- */
.tabbar {
  background: rgba(253,250,244,.72) !important;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: .5px solid rgba(70,20,20,.08);
  box-shadow: 0 -10px 34px rgba(70,20,20,.07);
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}
.app-header {
  background: rgba(253,250,244,.72) !important;
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: .5px solid rgba(70,20,20,.06);
}
.hg-bell, .icon-btn { background: rgba(70,20,20,.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; }
.detail-hero .round-btn { background: rgba(255,255,255,.55); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); border: .5px solid rgba(255,255,255,.6); box-shadow: 0 4px 16px rgba(70,20,20,.18); }

/* ---- iOS segmented controls (chips) ---- */
.chips { background: rgba(70,20,20,.055); border-radius: 999px; padding: 3px; gap: 2px; border: none; }
.chip { border: none !important; background: transparent !important; border-radius: 999px !important; font-weight: 600; transition: all .3s cubic-bezier(.22,1,.36,1); }
.chip.on { color: #8A1010 !important; background: #fff !important; box-shadow: 0 2px 10px rgba(70,20,20,.14), 0 0 0 .5px rgba(70,20,20,.05); }

/* ---- iOS action sheet modal ---- */
#modal { background: rgba(70,20,20,.32); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); }
#modal:not(.hidden) .modal-card { animation: sheetUp .44s cubic-bezier(.32,.72,0,1); }
.modal-card { border-radius: 26px 26px 0 0; box-shadow: 0 -14px 50px rgba(70,20,20,.22); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }

/* ---- spring view transition ---- */
.view:not(.hidden) { animation: appleIn .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes appleIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---- spring press states ---- */
.btn, .prop-card, .w-stat, .hs-item, .chip, .tabbar-btn { transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, opacity .2s ease; }
.btn:active, .chip:active, .tabbar-btn:active { transform: scale(.95); }
.prop-card:active { transform: scale(.98); }

/* ---- softer Apple-style surfaces ---- */
.prop-card { border-radius: 22px; box-shadow: 0 1px 2px rgba(70,20,20,.04), 0 14px 36px rgba(70,20,20,.09); border: .5px solid rgba(70,20,20,.05); }
.wallet-hero, .inv-hero, .rewards-hero { border-radius: 26px; box-shadow: 0 18px 44px rgba(70,20,20,.12); }
.w-stat, .card-plain, .hs-item, .paycard { border-radius: 18px; }
.d-card { border-radius: 20px; }
.sec-title { font-weight: 800; letter-spacing: -.01em; }

/* ---- typography polish ---- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
.tabbar-btn span { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; }


/* ================= DARK MODE (iOS-style, .dark on body) ================= */
body.dark { background: #0E0A0A; }
body.dark .view { background: #0E0A0A; }
body.dark .app-header, body.dark .tabbar {
  background: rgba(11,11,18,.75) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body.dark .tabbar-btn span { color: #A99B9B; }
body.dark .tabbar-btn.on span { color: #FF8F3D; }
body.dark .prop-card, body.dark .card-plain, body.dark .w-stat, body.dark .hs-item,
body.dark .d-card, body.dark .paycard, body.dark .code-box, body.dark .r-step,
body.dark .menu-list button, body.dark .step, body.dark .skel-card {
  background: #171111 !important;
  border-color: #2E1D1D !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px rgba(0,0,0,.35) !important;
}
body.dark .prop-card h3, body.dark .metric b, body.dark .d-head h2,
body.dark .sec-title, body.dark .home-greet .hg-name, body.dark .code-box b,
body.dark .r-step b, body.dark .paycard b, body.dark .menu-list button b {
  color: #F7F3EA !important;
}
body.dark .prop-loc, body.dark .m-label, body.dark .w-stat span, body.dark .hs-item span,
body.dark .tx-mid span, body.dark .tx-day, body.dark .pnl-lbl, body.dark .r-step b,
body.dark .hint, body.dark .empty-note, body.dark .step b, body.dark .menu-list button span {
  color: #B3A8A0 !important;
}
body.dark .tx-mid b, body.dark .alloc-name, body.dark .pnl-sub b, body.dark .ws-txt b { color: #EDE7DE !important; }
body.dark .hero-white {
  background: linear-gradient(150deg, #2A1212 0%, #331616 60%, #3D1818 100%) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.4) !important;
}
body.dark .hero-white .w-label { color: #C4B4AC; }
body.dark .hero-white .w-sub, body.dark .hero-white .tier-progress > span { color: #A3907F; }
body.dark .hero-white .w-act { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #E9E7F0; }
body.dark .hero-white .eye-btn { background: rgba(255,255,255,.08); color: #E9E7F0; }
body.dark .hero-white .w-act span { color: #FF8F3D; }
body.dark .hero-white .tier-track { background: #3A1E1E; }
body.dark .input { background: #1A1313 !important; color: #F7F3EA !important; border-color: #3A2424 !important; }
body.dark .input::placeholder { color: #6E6B80; }
body.dark .chips { background: rgba(255,255,255,.06); }
body.dark .chip { color: #C4B4AC; }
body.dark .chip.on { background: #3A1616 !important; color: #F5C9B8 !important; box-shadow: none !important; }
body.dark .tag { background: rgba(255,255,255,.06); color: #D6CBC3; }
body.dark .bar { background: #332020; }
body.dark .bar-fill { background: linear-gradient(90deg, #FF6A00, #FF8F3D); }
body.dark .banner-card { background: linear-gradient(135deg, #2E1515 0%, #4A1F1F 100%); }
body.dark .banner-card h3, body.dark .banner-card p { color: #F7F3EA; }
body.dark .modal-card { background: #1A1313 !important; }
body.dark .modal-card .lbl, body.dark .modal-card .hint { color: #C9BCB4; }
body.dark .modal-card .msg { color: #D6CBC3; }
body.dark .skel { background: linear-gradient(100deg, #211818 40%, #2A1E1E 50%, #211818 60%); background-size: 200% 100%; }
body.dark .tx { border-bottom-color: #2E1D1D; }
body.dark .tx-ic { background: rgba(255,255,255,.06); }
body.dark .detail-hero .round-btn { background: rgba(20,10,10,.55); border-color: rgba(255,255,255,.18); }
body.dark .home-stats .hs-item, body.dark .r-stats .w-stat { background: #171111; }
body.dark .d-hero { background: #140C0C; }
body.dark .d-tags .tag { background: rgba(255,255,255,.06); }
body.dark .pgal-dot { background: rgba(255,255,255,.25); }
body.dark .pgal-dot.on { background: #FF8F3D; }
body.dark .r-steps .r-step { background: #171111; }
body.dark .ref-actions .btn.whatsapp { background: linear-gradient(135deg, #25D366, #1DA851); }


/* ================= ATLANTIS CLASSICAL PASS (Cinzel + editorial red/cream) ================= */
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-400.ttf"); font-weight: 400; }
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-600.ttf"); font-weight: 600; }
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-700.ttf"); font-weight: 700; }

/* display wordmark + section titles: Roman capitals */
.onb-title, .sec-title, .hg-name, .banner-card h3, .home-stats .hs-item b,
.prop-price b, .w-balance, #d-price, .m-label, .total-bar b {
  font-family: "Cinzel", "Poppins", Georgia, serif !important;
}
.onb-title, .sec-title { letter-spacing: .04em; }
.sec-title { text-transform: uppercase; }
.hg-name { letter-spacing: .02em; }
.prop-price b, .w-balance, #d-price { letter-spacing: .01em; }

/* editorial tagline accent (banking-built-for-a-new-world vibe) */
.hg-hi, .w-label, .pnl-lbl, .r-step b, .paycard span, .kpi-label {
  letter-spacing: .08em;
}
.sec-count { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* classical hairline detail under section titles */
.sec-title { position: relative; padding-bottom: 8px; }
.sec-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: linear-gradient(90deg, #FF6A00 0%, #FF6A00 46px, rgba(70,20,20,.14) 47px, rgba(70,20,20,.14) 100%);
  border-radius: 2px;
}

/* red brand moments */
.btn.primary, .btn.whatsapp { background: linear-gradient(135deg, #FF6A00, #FF8F3D) !important; }
.chip.on { border-bottom-color: #FF6A00 !important; }
.tabbar-btn.on span { color: #FF6A00 !important; }
.icon-btn { border: 1px solid rgba(70,20,20,.15); }


/* ================= ATLANTIS SYSTEM: buttons & components ================= */
/* primary — crimson gradient */
.btn.primary {
  background: linear-gradient(135deg, #FF6A00 0%, #FF8F3D 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(255,106,0,.28), inset 0 1px 0 rgba(255,255,255,.22) !important;
  border: none !important;
}
.btn.primary:active { transform: scale(.96); box-shadow: 0 4px 12px rgba(255,106,0,.35) !important; }
/* secondary / gray — cream + hairline */
.btn.gray, .btn.secondary {
  background: #F7F3EA !important;
  color: #1C1B1A !important;
  border: 1px solid #E3DAC8 !important;
  box-shadow: 0 2px 8px rgba(28,27,26,.06) !important;
}
/* ghost — outline crimson */
.btn.ghost {
  background: transparent !important;
  color: #FF6A00 !important;
  border: 1.5px solid rgba(255,106,0,.45) !important;
}
/* inputs — crimson focus */
.input:focus, select.input:focus, textarea.input:focus {
  outline: none !important;
  border-color: #FF6A00 !important;
  box-shadow: 0 0 0 3px rgba(255,106,0,.14) !important;
}
::selection { background: rgba(255,106,0,.85); color: #fff; }
/* banner — crimson statement */
.banner-card {
  background: linear-gradient(135deg, #FF6A00 0%, #FF8F3D 100%) !important;
  color: #fff !important;
}
.banner-card h3, .banner-card p { color: #fff !important; }
.banner-card .btn { background: #fff !important; color: #FF6A00 !important; box-shadow: 0 6px 16px rgba(0,0,0,.18) !important; }
/* chips */
.chip { color: #6E6860; }
.chip.on { color: #FF6A00 !important; border-bottom-color: #FF6A00 !important; }
/* toasts */
.toast { background: #1C1B1A !important; color: #F7F3EA !important; border: 1px solid rgba(255,255,255,.12); }
/* badges */
.b-fund { background: linear-gradient(135deg, #FF6A00, #FF8F3D) !important; }
.b-strat { background: linear-gradient(135deg, #1C1B1A, #4A4640) !important; }
/* dark mode: logo invert + accent consistency */
/* Do NOT invert brand logo — orange mark must stay brand-true in dark mode */
body.dark .hcchip img { filter: invert(1); }
body.dark .logo-img, body.dark .splash-logo, body.dark .divido-loader-logo { filter: none !important; }
body.dark .btn.gray, body.dark .btn.secondary { background: #171111 !important; color: #F5F1EA !important; border-color: #2E1D1D !important; }
body.dark .input { background: #1A1313 !important; }
body.dark .toast { background: #F5F1EA !important; color: #1C1B1A !important; }

.auth-top .logo-img { margin-left: 2px; height: 34px; width: auto; display: block; }
.app-header .logo-img { height: 30px; width: auto; display: block; }

/* ---------- segmented controls (funds/properties) ---------- */
.seg { display: flex; gap: 6px; background: #F4EDDF; border: 1px solid #E3DAC8; border-radius: 14px; padding: 4px; margin: 14px 0 16px; }
.seg-btn { flex: 1; border: 0; background: transparent; color: #6E6860; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; padding: 9px 6px; border-radius: 10px; cursor: pointer; transition: all .2s ease; }
.seg-btn.on { background: linear-gradient(135deg, #FF6A00, #FF8F3D); color: #fff; box-shadow: 0 4px 12px rgba(255,106,0,.28); }
body.dark .seg { background: #171111; border-color: rgba(255,255,255,.08); }
body.dark .seg-btn { color: #B9B2A6; }
/* ---------- fund cards ---------- */
.fund-card { background: #FBF8F1; border: 1px solid #E3DAC8; border-radius: 20px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); cursor: pointer; }
.fund-card .pimg img { height: 150px; width: 100%; object-fit: cover; display: block; }
.fund-foot { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
body.dark .fund-card { background: #171111; border-color: rgba(255,255,255,.08); }

/* segment icons */
.seg-btn img.seg-ic { height: 16px; width: 16px; vertical-align: -3px; margin-right: 6px; }
.seg-btn.on img.seg-ic { filter: brightness(0) invert(1); }

/* ---- About Divido: articles + videos ---- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-card { background: var(--cream, #F7F3EA); border: 1px solid var(--hairline, #E3DAC8); border-radius: 14px; overflow: hidden; cursor: pointer; }
body.dark .media-card { background: #171111; border-color: rgba(255,255,255,.08); }
.media-img { width: 100%; height: 92px; object-fit: cover; display: block; background: #E9E2D2; }
.vid-thumb { position: relative; display: block; }
.vid-thumb img { width: 100%; height: 92px; object-fit: cover; display: block; background: #0E0A0A; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,106,0,.92); color: #fff; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.media-body { padding: 9px 11px 11px; }
.media-body b { display: block; font-size: 13px; line-height: 1.35; color: var(--ink, #1C1B1A); }
body.dark .media-body b { color: #F5F1EA; }
.media-body span { font-size: 11px; color: #6E6860; text-transform: uppercase; letter-spacing: .06em; }
.art-hero { width: 100%; max-height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.art-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--ink, #1C1B1A); }
body.dark .art-body p { color: #E9E2D2; }
.vid-frame { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #000; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Net worth card ---- */
.nw-card { background: linear-gradient(135deg, #1C1B1A 0%, #2A2A2E 60%, #3A241C 100%); border-radius: 20px; padding: 16px 18px 14px; color: #F7F3EA; margin-bottom: 14px; box-shadow: 0 12px 26px rgba(20,22,25,.35); position: relative; overflow: hidden; }
.nw-card::after { content: ""; position: absolute; top: -70px; right: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,0,.5), transparent 70%); }
.nw-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.nw-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(247,243,234,.75); }
.nw-eye { background: rgba(255,255,255,.12); border: 0; border-radius: 10px; width: 34px; height: 30px; font-size: 15px; cursor: pointer; }
.nw-val { display: block; font-size: 30px; font-weight: 800; margin: 6px 0 10px; position: relative; z-index: 1; letter-spacing: .5px; }
.nw-row { display: flex; gap: 14px; position: relative; z-index: 1; }
.nw-row span { font-size: 11.5px; color: rgba(247,243,234,.7); display: flex; flex-direction: column; gap: 2px; }
.nw-row b { font-size: 14px; color: #F7F3EA; font-weight: 700; }

/* ---- Header bell (single, with badge) ---- */
.hdr-bell { position: relative; display: inline-flex; cursor: pointer; }
.hdr-bell .bell-dot { top: -6px; right: -9px; }

/* ---- Support box ---- */
.support-box { position: fixed; right: 14px; bottom: 92px; width: min(330px, calc(100vw - 28px)); background: var(--cream, #F7F3EA); border: 1px solid var(--hairline, #E3DAC8); border-radius: 18px; box-shadow: 0 18px 44px rgba(20,20,20,.35); z-index: 999; display: flex; flex-direction: column; overflow: hidden; max-height: 70vh; }
body.dark .support-box { background: #171111; border-color: rgba(255,255,255,.1); }
.sup-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg,#FF6A00,#FF8F3D); color: #fff; font-size: 14px; }
.sup-on { font-size: 10.5px; color: rgba(255,255,255,.85); }
.sup-x { margin-left: auto; background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 8px; width: 24px; height: 24px; cursor: pointer; }
.sup-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; max-height: 42vh; }
.sup-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.sup-msg.bot { align-self: flex-start; background: #E9E2D2; color: #1C1B1A; border-bottom-left-radius: 4px; }
body.dark .sup-msg.bot { background: #241B1B; color: #F5F1EA; }
.sup-msg.user { align-self: flex-end; background: linear-gradient(135deg,#FF6A00,#FF8F3D); color: #fff; border-bottom-right-radius: 4px; }
.sup-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.sup-chip { font-size: 11.5px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--hairline,#E3DAC8); background: transparent; color: var(--ink,#1C1B1A); cursor: pointer; }
body.dark .sup-chip { color: #F5F1EA; border-color: rgba(255,255,255,.15); }
.sup-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hairline,#E3DAC8); }
.sup-in input { flex: 1; border: 1px solid var(--hairline,#E3DAC8); background: #fff; color: var(--ink,#1C1B1A); border-radius: 12px; padding: 9px 12px; font-size: 13px; outline: none; }
body.dark .sup-in input { background: #0E0A0A; color: #F5F1EA; }
.sup-in button { border: 0; background: linear-gradient(135deg,#FF6A00,#FF8F3D); color: #fff; border-radius: 12px; width: 40px; cursor: pointer; }

/* ---- FAQ accordion (help) ---- */
.faq-item { border-bottom: 1px solid var(--hairline,#E3DAC8); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 13px 2px; font-size: 14px; font-weight: 600; color: var(--ink,#1C1B1A); text-align: left; cursor: pointer; gap: 10px; }
body.dark .faq-q { color: #F5F1EA; }
.faq-a { display: none; font-size: 13.5px; line-height: 1.6; color: #6E6860; padding: 0 2px 13px; }
body.dark .faq-a { color: #B9B1A3; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .faq-arrow { transform: rotate(90deg); }
.faq-arrow { color: #FF6A00; transition: transform .2s; }

/* ================= ORDER REVIEW + SWIPE-TO-CONFIRM (invest modal) ================= */
.order-summary {
  margin: 14px 0 2px;
  background: #fff;
  border: 1px solid #E3DAC8;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(255,106,0,.08);
}
.os-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px dashed #E3DAC8; }
.os-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #F6F1E7; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.os-head b { display: block; font-size: 14.5px; line-height: 1.3; color: #1C1B1A; }
.os-head span { font-size: 11px; color: #9a8f86; text-transform: uppercase; letter-spacing: .5px; }
.os-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px; font-size: 13px; }
.os-row + .os-row { border-top: 1px solid #F5EFE3; }
.os-row span { color: #8a7f76; }
.os-row b { color: #1C1B1A; font-weight: 700; font-size: 13.5px; }
.os-row b.crimson { color: #FF6A00; font-size: 15px; }

/* --- swipe-to-confirm --- */
.slider-wrap { margin: 14px 0 2px; }
.slide-track {
  position: relative; height: 58px; border-radius: 999px;
  background: linear-gradient(135deg, #2b2622, #1C1B1A);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.35), 0 8px 20px rgba(28,27,26,.18);
  overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  outline: none;
}
.slide-track:focus-visible { box-shadow: 0 0 0 3px rgba(255,106,0,.45); }
.slide-track:active { cursor: grabbing; }
.slide-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, #A31616, #FF6A00 55%, #FF8F3D);
  border-radius: 999px; pointer-events: none;
}
.slide-track.dragging .slide-fill, .slide-track.dragging .slide-thumb { transition: none; }
.slide-track:not(.dragging) .slide-fill, .slide-track:not(.dragging) .slide-thumb { transition: left .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1); }
.slide-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #F7F3EA; font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; z-index: 2;
}
.slide-thumb {
  position: absolute; top: 5px; left: 5px; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: #FF6A00; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 3; pointer-events: none;
}
.slide-track.loading { cursor: wait; opacity: .85; }
.slide-track.loading .slide-thumb { animation: thumbPulse 1s ease-in-out infinite; }
.slide-track.success { background: linear-gradient(90deg, #1d9e4b, #25D366); box-shadow: 0 8px 22px rgba(37,211,102,.35), inset 0 2px 8px rgba(0,0,0,.15); }
.slide-track.success .slide-fill { opacity: 0; }
.slide-track.success .slide-label { color: #fff; font-weight: 700; }
.slide-track.success .slide-thumb { color: #1d9e4b; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.slide-track.failed { background: linear-gradient(90deg, #FF6A00, #FF8F3D); }
.slide-track.failed .slide-label { color: #fff; }
@keyframes thumbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.9); } }
.slide-cancel {
  display: block; margin: 12px auto 0; background: none; border: 0; padding: 6px 14px;
  color: #9a8f86; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline;
}
body.dark .order-summary { background: #1A1313; border-color: #2E1D1D; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
body.dark .os-head { border-bottom-color: #2E1D1D; }
body.dark .os-head b { color: #F7F3EA; }
body.dark .os-row + .os-row { border-top-color: #2E1D1D; }
body.dark .os-row b { color: #F7F3EA; }
body.dark .os-row b.crimson { color: #FF8F3D; }
body.dark .slide-track { background: linear-gradient(135deg, #3a3028, #171111); }
body.dark .slide-cancel { color: #C9BCB4; }
/* invest payment method chips */
.pay-row { margin: 2px 0 14px; }
.pay-row .lbl { display: block; font-size: 11.5px; letter-spacing: .5px; color: #8a8578; margin-bottom: 8px; text-transform: uppercase; font-weight: 700; }
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pchip {
  flex: 1; min-width: 72px; padding: 10px 6px; border-radius: 12px;
  border: 1.5px solid #e6e1d6; background: #fff; color: #1C1B1A;
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: all .18s ease; box-shadow: none;
}
.pchip.on { border-color: #FF6A00; color: #FF6A00; background: #FDF3F1; box-shadow: 0 0 0 1px #FF6A00 inset; }
.pchip:active { transform: scale(.96); }
/* invest success receipt */
.receipt { text-align: center; padding: 18px 4px 6px; }
.rc-check {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: #16A34A; color: #fff; font-size: 34px; line-height: 64px;
  font-weight: 800; box-shadow: 0 8px 24px rgba(22,163,74,.35);
}
.receipt h3 { margin: 0 0 6px; font-family: 'Cinzel', serif; color: #1C1B1A; font-weight: 700; }
.rc-ref { font-size: 13px; color: #6b675c; margin: 6px 0 2px; }
.rc-ref b { color: #FF6A00; letter-spacing: .5px; }
.rc-meta { font-size: 12.5px; color: #8a8578; margin: 0 0 14px; }
.receipt .btn { width: 100%; margin-top: 8px; }
.retry-btn { margin-top: 10px; width: 100%; }
.err-txt { color: #E05C5C; font-weight: 600; }
body.dark .pchip { background: #241717; border-color: #3a2424; color: #F7F3EA; }
body.dark .pchip.on { border-color: #FF8F3D; color: #FF8F3D; background: #2A1A1A; box-shadow: 0 0 0 1px #FF8F3D inset; }
body.dark .receipt h3 { color: #F7F3EA; }
body.dark .rc-ref { color: #C9BCB4; }
body.dark .rc-meta { color: #A99B9B; }
body.dark .pay-row .lbl { color: #A99B9B; }
