.market-layout{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(295px,.96fr);gap:21px;margin-top:20px;align-items:start}.market-primary{min-width:0}.market-sidebar{display:flex;flex-direction:column;gap:18px}.hero{position:relative;overflow:hidden;min-height:208px;background:linear-gradient(115deg,#fff 10%,#f4f7fb 66%,#dfe8f2 100%);border:1px solid #dce5ee;border-radius:14px;padding:31px 34px}.hero:before{content:"";position:absolute;inset:0 0 0 42%;background:url('/assets/assets/hero-lines.svg') center/cover no-repeat;opacity:.85;pointer-events:none}.hero:after{content:"";position:absolute;right:-23px;top:-35px;width:7px;height:190px;background:var(--gold);transform:rotate(42deg);opacity:.8}.hero-content{position:relative;z-index:2}.hero h1{font:italic 700 clamp(30px,3.4vw,44px)/1.13 Georgia,serif;color:#112d52;margin:0 0 7px;letter-spacing:-.8px}.hero h1 strong{color:#c79440}.hero p{color:#4a5e75;font-size:15px;margin:0 0 25px}.hero-features{display:flex;align-items:center;gap:23px;flex-wrap:wrap;font-weight:650;color:#254462;font-size:13px}.hero-features span:before{content:'✓';display:inline-grid;place-items:center;color:#a97d31;border:1px solid #c99c54;border-radius:50%;width:19px;height:19px;margin-right:7px}.hero-chart{position:absolute;bottom:15px;right:25px;width:275px;height:130px;transform:perspective(700px) rotateY(-14deg) rotateX(5deg);border:6px solid #253b53;border-bottom:10px solid #8195a9;border-radius:9px;background:#0a1929;box-shadow:12px 10px 24px #08233d40;overflow:hidden}.hero-chart svg{width:100%;height:100%}body[data-theme="dark"] .hero{background:linear-gradient(115deg,#132c43 10%,#102b43 65%,#0c263c);border-color:#2d465c}body[data-theme="dark"] .hero h1{color:#f0f5fa}body[data-theme="dark"] .hero p,body[data-theme="dark"] .hero-features{color:#b6c6d5}body[data-theme="dark"] .hero:before{opacity:.12}.filters{display:flex;align-items:center;justify-content:space-between;margin:14px 0 12px;gap:10px;flex-wrap:wrap}.tabset{display:flex;align-items:center;gap:1px;flex-wrap:wrap}.tab{border:0;background:transparent;padding:11px 15px;border-bottom:3px solid transparent;color:var(--muted);font-size:13px;font-weight:650}.tab:hover{color:var(--ink)}.tab.selected{color:#0e4a84;border-color:#c79b4e}body[data-theme="dark"] .tab.selected{color:#f4d18e}.filter-tools{display:flex;gap:10px}.filter-tools input,.filter-tools select{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);font-size:12px}.filter-tools input{width:212px}.product-list{display:flex;flex-direction:column;gap:9px}.product-row{display:flex;gap:15px;align-items:center;padding:11px 14px;min-height:118px}.heart{flex:none;border:0;background:transparent;color:#8fa0b6;font-size:23px;line-height:1;padding:8px}.heart.active{color:#c99e50}.product-thumb{width:106px;height:91px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;position:relative;overflow:hidden;background:linear-gradient(155deg,#0a1d34,#1a385a);color:#fff;box-shadow:inset 0 0 0 1px #fff2;text-align:center}.product-thumb:after{content:"";position:absolute;right:-13px;bottom:-25px;width:85px;height:65px;border-radius:50%;background:var(--gold);opacity:.12;filter:blur(14px)}.product-thumb .thumb-icon{font-size:25px;line-height:1;color:#dcb369}.product-thumb .thumb-name{font-size:11px;font-weight:800;line-height:1.2;max-width:84px}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-info{min-width:0;flex:1}.product-name{font-weight:800;font-size:17px;color:var(--ink);border:0;background:transparent;padding:0;text-align:left}.product-name:hover{color:#1a6eab}.product-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.product-desc{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0 0;max-width:800px}.product-action{text-align:right;min-width:128px;margin-left:auto}.product-price{display:block;font-size:18px;color:var(--accent);font-weight:850;line-height:1.35;margin-bottom:10px}.seller-card{padding:19px}.seller-head{display:flex;gap:13px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px}.seller-avatar{background:#092843;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;color:#fff;font:italic 800 23px Georgia,serif;position:relative;flex-shrink:0}.seller-avatar:after{content:'';position:absolute;bottom:11px;width:33px;height:2px;background:var(--gold);transform:rotate(-9deg)}.seller-head h2{margin:0;font-size:21px;line-height:1.3}.seller-head p{margin:0;color:var(--muted);font-size:13px}.seller-info{display:grid;grid-template-columns:1fr auto;gap:11px;margin-top:17px;color:var(--muted)}.seller-info b{color:var(--ink)}.side-panel{padding:16px}.side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.side-head h3{margin:0;font-size:17px}.side-signal{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:10px}.signal-symbol{width:61px;height:61px;border-radius:8px;background:#112b44;color:#edc879;flex-shrink:0;display:grid;place-items:center;font:italic 800 16px Georgia,serif;text-align:center}.side-signal p{margin:3px 0;color:var(--muted);font-size:12px}.signal-list{display:grid;gap:12px}.signal-large{display:flex;gap:17px;align-items:start;padding:20px}.signal-large .signal-symbol{width:80px;height:80px;font-size:20px}.stats{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px}.detail-split{display:grid;grid-template-columns:220px 1fr;gap:23px}.detail-split .product-thumb{width:210px;height:180px}.detail-split .thumb-name{font-size:20px;max-width:180px}.details-description{white-space:pre-wrap;line-height:1.7;color:var(--muted)}.forum-topic{padding:18px 21px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.forum-topic h3{font-size:16px;margin:0 0 5px}.forum-topic p{margin:0;color:var(--muted)}.thread-post{padding:17px;border-bottom:1px solid var(--line)}.thread-post p{white-space:pre-wrap;margin:9px 0}.account-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.account-menu{display:flex;flex-direction:column;gap:6px;padding:12px}.account-menu button{border:0;text-align:left;color:var(--ink);padding:11px 13px;border-radius:8px;background:transparent;font-weight:600}.account-menu button:hover,.account-menu button.selected{background:var(--shade)}.data-table{border-collapse:collapse;width:100%;min-width:540px}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--line);padding:12px 9px;font-size:12px;vertical-align:middle}.data-table th{color:var(--muted);text-transform:uppercase;font-size:10px;letter-spacing:.5px}.table-scroll{width:100%;overflow:auto}.mini-card{padding:16px}.section-headline{font-size:20px;font-weight:800;letter-spacing:-.4px;margin:0 0 15px}
@media(max-width:1100px){.market-layout{grid-template-columns:minmax(0,1fr) 290px;gap:13px}.hero-chart{width:200px;height:109px;right:8px;bottom:14px;opacity:.8}.hero{padding:27px}.hero-features{gap:10px}.product-row{gap:10px}.product-thumb{width:83px;height:79px}.product-action{min-width:105px}.product-name{font-size:15px}}
@media(max-width:860px){.market-layout{grid-template-columns:1fr}.market-sidebar{display:grid;grid-template-columns:1fr 1fr}.hero-chart{width:260px;height:130px;opacity:.73}.account-layout{grid-template-columns:1fr}.account-menu{flex-direction:row;flex-wrap:wrap}}
@media(max-width:600px){.market-layout{margin-top:12px}.hero{padding:22px 18px;min-height:185px}.hero h1{font-size:30px}.hero p{font-size:12px;max-width:260px}.hero-features{font-size:10px;max-width:260px;gap:9px}.hero-chart{width:155px;height:100px;bottom:4px;right:-10px;opacity:.45}.market-sidebar{grid-template-columns:1fr}.filters{align-items:stretch}.filter-tools{width:100%}.filter-tools input{flex:1;width:130px}.product-row{padding:12px 9px;gap:8px;flex-wrap:wrap}.heart{font-size:18px;padding:2px}.product-thumb{width:65px;height:68px}.product-thumb .thumb-name{font-size:10px}.product-name{font-size:14px}.product-desc{font-size:11px}.product-action{display:flex;align-items:center;justify-content:flex-end;width:100%;gap:12px;padding-top:3px}.product-price{margin:0;font-size:15px}.detail-split{grid-template-columns:1fr}.detail-split .product-thumb{width:100%;height:135px}}

.hero.custom-hero{background-image:linear-gradient(90deg,rgba(245,248,252,.92),rgba(245,248,252,.55)),url('/api/branding/hero');background-position:center;background-size:cover}.hero.custom-hero:before{display:none}body[data-theme="dark"] .hero.custom-hero{background-image:linear-gradient(90deg,rgba(12,31,49,.91),rgba(12,31,49,.58)),url('/api/branding/hero')}
.hero.custom-hero > svg{display:none}

/* v0.6 — calm, professional two-column marketplace */
.product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.product-row{position:relative;display:grid;grid-template-columns:136px minmax(0,1fr);grid-template-rows:minmax(88px,1fr) auto;gap:11px 14px;align-items:start;padding:17px 17px 15px;min-height:206px;border-radius:13px}
.product-row:hover{box-shadow:0 7px 24px rgba(22,55,89,.095);border-color:#c9d8e7}
.product-row .product-thumb{grid-row:1 / 3;width:136px;height:146px;border-radius:10px}
.product-row .heart{position:absolute;top:11px;right:13px;font-size:24px;line-height:1;z-index:1;opacity:.84}
.product-row .product-info{padding-right:16px;min-width:0}
.product-row .product-name{font-size:17px;line-height:1.25;font-weight:750;padding-right:10px}
.product-row .product-desc{font-size:12px;line-height:1.55;min-height:38px;max-height:58px;overflow:hidden;margin:6px 0}
.product-row .product-meta{gap:5px;margin-top:6px}
.product-row .product-action{grid-column:2;display:flex;align-items:center;gap:7px;justify-content:space-between;flex-wrap:wrap;width:100%;margin:0;min-width:0;text-align:start}
.product-row .product-price{font-size:19px;margin:0;white-space:nowrap}
.product-row .price-note{display:none}
.product-row .button{font-size:12px;padding:8px 12px}
.rating-line{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;min-height:24px;color:var(--ink);font-size:12px;cursor:pointer}
.star-gold{color:#eaa21c;letter-spacing:1px;font-size:16px;white-space:nowrap}
.product-row .rating-line .star-gold{letter-spacing:0;font-size:15px}
.product-reviews{margin-top:18px}.review-item{border-top:1px solid var(--line);padding:15px 0}.review-item p{line-height:1.65;margin:7px 0 4px;white-space:pre-wrap}.review-item .muted{font-size:12px}.review-editor{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.review-editor h3{margin-top:0}.review-editor form{max-width:530px}
.hero{box-shadow:var(--shadow)}.seller-card,.side-panel{box-shadow:var(--shadow)}
html[dir="rtl"] .product-row .heart{left:13px;right:auto}
html[dir="rtl"] .product-row .product-info{padding-right:0;padding-left:16px}
html[dir="rtl"] .product-row .product-name{text-align:right;padding:0 0 0 10px}
html[dir="rtl"] .market-layout,html[dir="rtl"] .market-sidebar{text-align:right}
html[dir="rtl"] .product-row .product-action{text-align:right}
html[dir="rtl"] .hero-content,html[dir="rtl"] .product-desc{text-align:right}
html[dir="rtl"] .footer-wrap{text-align:right}
html[dir="rtl"] .data-table th,html[dir="rtl"] .data-table td{text-align:right}
html[dir="rtl"] .account-menu button{text-align:right}
html[dir="rtl"] .hero-features span:before{margin-left:7px;margin-right:0}
html[dir="rtl"] .modal-header,html[dir="rtl"] .modal-body{text-align:right}
html[dir="rtl"] .review-item .badge{white-space:nowrap}
@media(max-width:1250px){.product-list{grid-template-columns:1fr}.product-row{min-height:132px;grid-template-columns:115px minmax(0,1fr)}.product-row .product-thumb{width:115px;height:115px}.product-row .product-desc{min-height:0}}
@media(min-width:861px) and (max-width:1100px){.product-list{grid-template-columns:1fr}}
@media(max-width:860px){.product-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){.product-list{grid-template-columns:1fr}.product-row{grid-template-columns:100px minmax(0,1fr);padding:13px;min-height:135px}.product-row .product-thumb{width:100px;height:112px}.product-row .product-desc{font-size:12px}.product-row .heart{top:8px}.product-row .product-name{font-size:15px}.product-row .product-action{justify-content:flex-start}.product-row .product-price{font-size:17px}}
/* QFX brand: navy + restrained emerald, no neon or oversized visual effects. */
:root{--accent:#188246}
.brand span{color:#22ca88}.brand:after{background:#25c88b}
.nav-button.selected:after{background:#23c88b}.tab.selected{border-color:#20a979}
.hero{background:linear-gradient(112deg,#0c2a48 0%,#133e5b 64%,#0a304c 100%);border-color:#315773;min-height:208px}
.hero h1{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-style:normal;font-weight:780;color:#fff;letter-spacing:-1px}
.hero p{color:#d5e4f2}
.hero-features{color:#e6f1fa}.hero-features span:before{color:#48df9e;border-color:#48df9e}
.hero-chart{right:26px}.hero:after{background:#23b884;opacity:.55}
.hero:before{opacity:.12}.seller-avatar:after{background:#22c889}
.header-right .button.gold{background:#188246;border-color:#188246;color:#fff}
.product-thumb .thumb-icon{color:#55d3a7}
html[dir="rtl"] .hero-chart{left:25px;right:auto}
html[dir="rtl"] .hero-content{max-width:66%}
html[dir="rtl"] .hero:before{inset:0 40% 0 0;transform:scaleX(-1)}
html[dir="rtl"] .hero:after{left:-23px;right:auto}
@media(max-width:700px){.hero h1{font-size:29px}.hero-chart{opacity:.35}html[dir="rtl"] .hero-content{max-width:88%}html[dir="rtl"] .hero-chart{left:-20px}}

/* QFX v0.7 rental offers: deliberately restrained to preserve minimal storefront. */
.offer-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; margin:12px 0; }
.offer-summary strong { color:var(--accent); font-size:1.45rem; }
.product-action .price-note { max-width:210px; text-align:right; font-size:.78rem; line-height:1.4; }
.rental-pricing { border:1px solid var(--border); border-radius:12px; padding:14px; }
.rental-pricing h3 {margin:0 0 12px; font-size:1rem;}
[dir="rtl"] .product-action .price-note { text-align:left; }
