:root{--bg:#0b1020;--panel:#111a2f;--panel2:#17223c;--line:#273657;--text:#f8fafc;--muted:#94a3b8;--purple:#7c3aed;--gold:#fbbf24;--green:#22c55e;--red:#ef4444}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#07101f,#110b22);color:var(--text);font-family:"Times New Roman",SolaimanLipi,serif}a{color:inherit}.shell{min-height:100vh}.top{position:sticky;top:0;z-index:10;height:64px;display:flex;align-items:center;gap:12px;padding:0 22px;background:#0d1528;border-bottom:1px solid var(--line)}.logo{width:40px;height:40px;display:block;border-radius:12px;object-fit:cover;background:linear-gradient(135deg,#8b5cf6,#4f46e5);box-shadow:0 4px 14px rgba(124,58,237,.28)}.brand b{display:block;font-size:20px}.brand small{color:var(--gold)}.spacer{flex:1}.btn,.input,select,textarea{border:1px solid var(--line);background:#0c1426;color:var(--text);border-radius:9px;font-family:inherit}.btn{height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;cursor:pointer;font-weight:700}.primary{background:linear-gradient(135deg,#7c3aed,#5b21b6);border-color:#8b5cf6}.green{background:#063d2c;border-color:#127a58;color:#a7f3d0}.danger{background:#3a1018;border-color:#8b1d35;color:#fecdd3}.wrap{max-width:1320px;margin:auto;padding:22px}.hero{display:flex;gap:18px;align-items:center;padding:22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#121c32,#18122b)}.hero h1{margin:0 0 7px;font-size:30px}.hero p{margin:0;color:var(--muted)}.tools{display:flex;gap:8px;margin:16px 0}.input{height:38px;padding:0 11px;min-width:260px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}.thumb{height:150px;background:#09111f;display:grid;place-items:center;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.ph{font-size:44px}.body{padding:13px}.body h3{margin:0 0 5px}.muted{color:var(--muted)}.meta{font-size:13px;color:#cbd5e1}.price{font-size:24px;color:var(--gold);font-weight:900;margin:9px 0}.row{display:flex;gap:8px;flex-wrap:wrap}.tag{display:inline-block;padding:3px 7px;border-radius:999px;background:#101d35;border:1px solid #263b62;font-size:12px}.detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px}.preview{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#08101e;min-height:360px;display:grid;place-items:center}.preview img{max-width:100%;max-height:650px;object-fit:contain}.panel{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:18px}.kv{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;margin-top:14px}.kv div:nth-child(odd){color:var(--muted)}.admin{display:grid;grid-template-columns:360px 1fr;gap:16px}.form{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:16px}.field{margin:10px 0}.field label{display:block;font-size:13px;color:#cbd5e1;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;padding:9px}.field input,.field select{height:38px}.field textarea{min-height:90px;resize:vertical}.table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--line)}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;font-size:13px;vertical-align:top}.table th{color:#cbd5e1;background:#0c1527}.notice{padding:10px 12px;border-radius:9px;background:#102640;border:1px solid #1d4f7c;margin:10px 0}.err{background:#38121a;border-color:#7f1d1d;color:#fecaca}.login{width:min(430px,92vw);margin:12vh auto}.copy{font-size:12px}.footer{text-align:center;color:var(--muted);padding:30px}@media(max-width:850px){.detail,.admin{grid-template-columns:1fr}.wrap{padding:12px}.top{padding:0 12px}.hero{align-items:flex-start}.kv{grid-template-columns:110px 1fr}.input{min-width:0;flex:1}}

/* V1.2 — compact structured product cards */
.market-grid{grid-template-columns:repeat(auto-fill,minmax(260px,285px));justify-content:start;align-items:start;gap:11px}
.market-card{min-width:0;border-radius:12px}
.market-thumb{height:128px}
.market-body{display:flex;flex-direction:column;gap:6px;padding:10px}
.market-title{font-size:16.5px;line-height:1.22;margin:0!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.market-specs{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.market-specs>div{min-width:0;padding:5px 6px;border:1px solid var(--line);border-radius:7px;background:#0c1426}
.market-specs span{display:block;font-size:8.5px;line-height:1.1;color:var(--muted);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-specs b{display:block;font-size:10.5px;line-height:1.18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-desc{font-size:10.5px;line-height:1.35;color:#dbeafe;padding:6px 7px;border-left:2px solid #7c3aed;background:#0d162a;border-radius:6px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:34px}
.market-price{margin:0;font-size:20px;line-height:1.05}
.market-actions{margin-top:1px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.market-actions .btn{min-width:0;height:30px;padding:0 7px;font-size:10.5px;border-radius:7px;white-space:nowrap}
.payment-btn{background:linear-gradient(135deg,#f59e0b,#16a34a);border-color:#fbbf24;color:#fff;box-shadow:0 4px 12px rgba(22,163,74,.22)}
.payment-settings{margin:0 0 10px;padding:10px 14px}.payment-settings summary{cursor:pointer;font-weight:800;color:#fbbf24}.payment-settings-form{display:grid;grid-template-columns:180px minmax(220px,1fr) minmax(180px,.7fr) auto;gap:10px;align-items:end;margin-top:10px}.payment-settings-form .field{margin:0}.payment-settings-form .btn{margin-bottom:0}.payment-settings p{margin:8px 0 0;font-size:12px}
@media(max-width:820px){.payment-settings-form{grid-template-columns:1fr}.payment-settings-form .btn{width:100%}}
.market-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.market-actions .btn{width:100%;white-space:normal;line-height:1.15;text-align:center}.market-actions .copy{grid-column:auto!important}
@media(max-width:640px){.market-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));}.market-thumb{height:145px}.market-actions{grid-template-columns:1fr 1fr}.market-actions .copy{grid-column:1/-1}}
@media(max-width:420px){.market-grid{grid-template-columns:1fr}.market-thumb{height:150px}.market-title{font-size:17px}}

/* V1.5 — full platform text without truncation */
.market-specs>div.platform-wide{grid-column:1/-1;padding:5px 7px}
.market-specs>div.platform-wide b{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;font-size:10.2px;word-break:normal;overflow-wrap:normal}
.market-specs>div.platform-wide span{white-space:nowrap}

/* V1.6 icon + preview */
.market-thumb{position:relative}.market-app-icon{position:absolute;left:9px;bottom:9px;width:38px;height:38px;border-radius:10px;background:#111827;border:2px solid rgba(255,255,255,.92);box-shadow:0 5px 14px rgba(0,0,0,.35);overflow:hidden;display:block}.market-app-icon img{width:100%!important;height:100%!important;object-fit:cover!important}.detail-app-name{display:flex;align-items:center;gap:10px}.detail-app-name h1{margin:0}.detail-app-icon{width:52px;height:52px;border-radius:13px;object-fit:cover;border:1px solid rgba(255,255,255,.15);background:#111827}

/* V1.6.3 — equal cards and dashboard preview zoom */
.market-grid{align-items:stretch;grid-auto-rows:1fr}
.market-card{height:100%;display:flex;flex-direction:column}
.market-card .market-thumb{flex:0 0 128px;cursor:zoom-in}
.market-card .market-body{flex:1;display:flex;flex-direction:column}
.market-card .market-desc{height:46px;min-height:46px;-webkit-line-clamp:2}
.market-card .market-price{margin-top:auto}
.market-card .market-actions{margin-top:4px}
.market-thumb>img{transition:transform .35s ease,filter .35s ease;transform-origin:center}
.market-thumb:hover>img{transform:scale(1.14);filter:brightness(1.08)}
.market-thumb:hover .market-app-icon img{transform:none;filter:none}
@media(max-width:640px){.market-card .market-thumb{flex-basis:145px}}
@media(max-width:420px){.market-card .market-thumb{flex-basis:150px}}
@media(prefers-reduced-motion:reduce){.market-thumb>img{transition:none}}

/* V1.6.4 — floating 16:9 landscape image preview */
.market-card .market-thumb:hover>img{transform:none;filter:none}
.market-hover-preview{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:rgba(2,6,16,.5);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease;backdrop-filter:blur(3px)}
.market-hover-preview.is-visible{opacity:1;visibility:visible}
.market-hover-frame{position:relative;width:min(820px,78vw);aspect-ratio:16/9;padding:8px;border:1px solid rgba(148,163,255,.55);border-radius:17px;background:#07101f;box-shadow:0 30px 90px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.06);overflow:hidden;transform:translateY(10px) scale(.97);transition:transform .2s ease}
.market-hover-preview.is-visible .market-hover-frame{transform:translateY(0) scale(1)}
.market-hover-frame img{width:100%;height:100%;display:block;border-radius:11px;object-fit:contain;background:#050b16}
.market-hover-frame span{position:absolute;z-index:2;top:18px;left:18px;padding:5px 9px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(4,9,20,.78);color:#dbeafe;font:700 10px/1.2 "Segoe UI",sans-serif;letter-spacing:.11em;backdrop-filter:blur(7px)}
@media(max-width:800px),(hover:none),(pointer:coarse){.market-hover-preview{display:none}}
@media(prefers-reduced-motion:reduce){.market-hover-preview,.market-hover-frame{transition:none}}

/* V1.6.5 — fullscreen preview with explicit close control */
body.market-preview-open{overflow:hidden}
.market-hover-preview.is-visible{pointer-events:auto}
.market-hover-frame{width:max-content;height:max-content;max-width:calc(100vw - 36px);max-height:calc(100vh - 36px);padding:0;border:none;background:transparent;border-radius:11px;aspect-ratio:auto}
.market-hover-frame img{width:auto;height:auto;max-width:calc(100vw - 36px);max-height:calc(100vh - 36px);object-fit:contain;border-radius:11px;display:block}
.market-preview-close{position:absolute;z-index:3;top:18px;right:18px;min-width:92px;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(180,24,55,.92);color:#fff;font:800 14px/1 "Segoe UI",sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.4);backdrop-filter:blur(7px)}
.market-preview-close:hover,.market-preview-close:focus-visible{background:#e11d48;border-color:#fecdd3;outline:2px solid #fff;outline-offset:2px}
@media(max-width:800px),(hover:none),(pointer:coarse){body.market-preview-open{overflow:auto}}

/* V1.6.6 — explicit click-to-preview button */
.market-card .market-thumb{cursor:default}
.market-preview-launch{position:absolute;z-index:3;right:10px;bottom:10px;min-height:34px;padding:6px 11px;border:1px solid rgba(255,255,255,.42);border-radius:8px;background:linear-gradient(135deg, #8b5cf6, #d946ef); animation: btn-pulse 2s infinite;color:#fff;font-family:"Noto Sans Bengali",SolaimanLipi,"Segoe UI",sans-serif;font-size:12px;font-weight:800;line-height:1.25;cursor:pointer;box-shadow:0 5px 15px rgba(217, 70, 239, 0.5);backdrop-filter:blur(7px)}
.market-preview-launch:hover,.market-preview-launch:focus-visible{background:linear-gradient(135deg,#7c3aed,#5b21b6);border-color:#c4b5fd;outline:2px solid #fff;outline-offset:2px}
@media(max-width:800px),(hover:none),(pointer:coarse){body.market-preview-open{overflow:hidden}.market-hover-preview{display:grid}.market-hover-frame{width:max-content;height:max-content;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.market-preview-launch{right:9px;bottom:9px;max-width:calc(100% - 74px);font-size:11px}.market-preview-close{top:14px;right:14px}}

/* V1.6.7 — compact responsive admin and persistent-login presentation */
.admin{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.admin>.form{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:14px;padding:20px}
.admin>.form>h3{grid-column:1/-1;margin:0 0 2px;font-size:23px}
.admin>.form>.field{min-width:0;margin:0}
.admin>.form>.field:nth-of-type(11),.admin>.form>.field:nth-of-type(12){grid-column:span 2}
.admin>.form>.field:nth-of-type(14),.admin>.form>.field:nth-of-type(15){grid-column:span 2}
.admin>.form>.field textarea{min-height:78px}
.admin>.form>.field input:not([type=checkbox]):not([type=file]),.admin>.form>.field select,.admin>.form>.field textarea,.login .field input{border:1px solid var(--line);background:#0c1426;color:var(--text);border-radius:9px;font-family:inherit}
.admin>.form>.field input[readonly]{color:#aebbd5;background:#0a1120}
.admin>.form>.field input[type=file]{min-height:42px;padding:7px;border:1px dashed #3b4d72;border-radius:9px;background:#0b1426;color:#cbd5e1}
.admin>.form>.btn{align-self:end;min-height:42px}
.admin>div{min-width:0;overflow:auto;border-radius:12px}
.admin .table{min-width:880px;border-radius:12px;overflow:hidden}
.admin .table th{position:sticky;top:64px;z-index:2}
.admin .table td{font-size:14px}
.admin .table .row{flex-wrap:nowrap}
.login.panel{padding:24px}.login.panel h2{margin-top:0}.login.panel .field input{height:44px}
@media(max-width:1150px){.admin>.form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.admin>.form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin>.form>.field:nth-of-type(11),.admin>.form>.field:nth-of-type(12),.admin>.form>.field:nth-of-type(14),.admin>.form>.field:nth-of-type(15){grid-column:1/-1}}
@media(max-width:560px){.admin>.form{grid-template-columns:1fr;padding:15px}.admin>.form>.field{grid-column:1!important}.admin .table{min-width:760px}.top .brand small{display:none}}

/* V1.6.8 — fixed admin viewport; scrolling only inside the app table */
body:has(.admin){height:100vh;overflow:hidden}
body:has(.admin) .top{position:relative;flex:0 0 64px}
body:has(.admin) .wrap{height:calc(100vh - 64px);max-width:100%;padding:10px 16px;overflow:hidden;display:flex;flex-direction:column}
body:has(.admin) .notice{flex:0 0 auto;margin:0 0 8px;padding:7px 10px}
body:has(.admin) .admin{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr);gap:10px}
body:has(.admin) .admin>.form{padding:12px 16px;gap:7px 12px;overflow:visible}
body:has(.admin) .admin>.form>h3{font-size:20px;line-height:1.15;margin:0}
body:has(.admin) .admin>.form>.field label{margin-bottom:2px;font-size:12px;line-height:1.2}
body:has(.admin) .admin>.form>.field input:not([type=checkbox]):not([type=file]),body:has(.admin) .admin>.form>.field select{height:34px;padding:6px 9px}
body:has(.admin) .admin>.form>.field textarea{min-height:58px;height:58px;padding:7px 9px}
body:has(.admin) .admin>.form>.field input[type=file]{min-height:36px;height:36px;padding:4px 7px;font-size:12px}
body:has(.admin) .admin>.form>.btn{min-height:36px;height:36px}
body:has(.admin) .admin>div{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);background:var(--panel)}
body:has(.admin) .admin .table{min-width:880px;border:0}
body:has(.admin) .admin .table th{position:sticky;top:0;z-index:4}
@media(max-width:820px){body:has(.admin) .wrap{padding:8px}body:has(.admin) .admin{grid-template-rows:minmax(260px,58%) minmax(150px,42%)}body:has(.admin) .admin>.form{overflow:auto;overscroll-behavior:contain}}

/* V1.6.9 — clickable demo links in admin */
.admin-demo-link{min-width:104px;white-space:nowrap}
.field-link{display:inline-flex;align-items:center;margin-top:4px;color:#86efac;font-size:12px;font-weight:700;text-decoration:none}
.field-link:hover,.field-link:focus-visible{color:#bbf7d0;text-decoration:underline}
body:has(.admin) .admin .table{min-width:1010px}

/* V1.7.0 — admin search and icon refinements */
.admin>.admin-list,body:has(.admin) .admin>.admin-list{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.admin-search{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line);background:#0c1527}
.admin-search label{height:38px;min-width:240px;flex:1;display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:#091224}
.admin-search label:focus-within{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.admin-search label span{padding-left:12px;color:#a78bfa;font-size:20px}
.admin-search input{width:100%;height:100%;padding:0 11px;border:0;outline:0;background:transparent;color:var(--text);font-family:inherit;font-size:14px}
.admin-search small{padding:0 5px;color:var(--muted);white-space:nowrap}
.admin-table-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.admin-table-scroll .table{margin:0;border:0}
.admin-table-scroll .table th{position:sticky;top:0;z-index:5}
.admin-empty{padding:36px;text-align:center;color:var(--muted)}
@media(max-width:700px){.admin-search{flex-wrap:wrap}.admin-search label{flex-basis:100%;min-width:0}.admin-search .btn{flex:1}}

/* V1.7.1 — instant type-to-search */
.admin-search #adminSearchCount{min-width:76px;text-align:right;color:#aebbd5}
.admin-table-scroll tr[hidden]{display:none!important}

/* V1.7.5 — clearer Bengali support label */
.market-specs span{font-size:9.5px;font-family:"Noto Sans Bengali",SolaimanLipi,"Segoe UI",sans-serif}

/* V1.7.6 — responsive platform text everywhere */
.platform-text,.admin-platform-display,.admin-platform-summary{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;line-height:1.45}
.market-specs>div.platform-wide{min-width:0}
.market-specs>div.platform-wide .platform-text{font-size:10.5px}
.admin-platform-display{min-height:34px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#0a1120;color:#dbe5fb;font-size:13px}
.admin-platform-summary{display:inline;color:#b9c6e2}
.kv{grid-template-columns:140px minmax(0,1fr)}
.kv .platform-text{display:block;color:#eef2ff}
@media(max-width:640px){.market-specs>div.platform-wide .platform-text{font-size:10px}.admin-platform-display{font-size:12px}.kv{grid-template-columns:92px minmax(0,1fr)}}

/* V1.7.7 — responsive hero contact links */
.hero-intro{min-width:0;flex:1}
.hero-contact{min-width:290px;margin-left:auto;padding:7px 0 7px 24px;border-left:1px solid rgba(148,163,184,.3);display:grid;justify-items:end;gap:7px;text-align:right}
.hero-contact strong{font-family:"Segoe UI",Arial,sans-serif;font-size:18px;line-height:1.2;letter-spacing:.04em;color:#fff}
.hero-contact a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-family:"Segoe UI",Arial,sans-serif;font-size:14px;font-weight:700;line-height:1.35;transition:color .18s ease,transform .18s ease}
.hero-contact a:hover,.hero-contact a:focus-visible{color:#fff;text-decoration:underline;transform:translateX(-2px);outline:none}
.hero-contact .whatsapp-link{color:#86efac}
.hero-contact .whatsapp-link img{width:21px;height:21px;display:block;flex:0 0 21px}
.hero-contact .website-link{color:var(--gold)}
@media(max-width:700px){.hero{flex-direction:column}.hero-contact{width:100%;min-width:0;margin-left:0;padding:14px 0 0;border-left:0;border-top:1px solid rgba(148,163,184,.3);justify-items:start;text-align:left}.hero-contact a:hover,.hero-contact a:focus-visible{transform:translateX(2px)}}

/* Desktop Mode Styles */
body.desktop-mode-active {

    background-color: #228b22 !important;
    overflow: hidden !important;
}

#os-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#os-window {
    position: absolute;
    z-index: 9999;
    background: var(--bg);
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 60px 10px rgba(255, 255, 255, 0.3), 0 25px 80px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: hidden;
    min-width: 280px;
    max-width: 100vw;
    min-height: 300px;
}

#os-titlebar {
    height: 40px;
    background: linear-gradient(to bottom, #1a233a, #111a2f);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

#os-titlebar:active {
    cursor: grabbing;
}

.os-title {
    font-weight: bold;
    color: var(--text);
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.os-size {
    color: var(--gold);
    font-size: 13px;
    font-family: monospace;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

#os-content {
    flex: 1;
    overflow: auto;
    position: relative;
    background: linear-gradient(135deg, #07101f, #110b22);
}

.desktop-mode-active .shell {
    min-height: 100% !important;
}

.top-contact { display: flex; align-items: center; gap: 14px; margin-right: 14px; padding-right: 18px; border-right: 1px solid var(--line); }
.top-contact strong { font-size: 15px; color: #fff; font-family: "Segoe UI", Arial, sans-serif; }
.top-contact a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: bold; text-decoration: none; font-family: "Segoe UI", Arial, sans-serif; transition: transform 0.2s; }
.top-contact a:hover { transform: translateY(-2px); text-decoration: underline; }
.top-contact .whatsapp-link { color: #86efac; }
.top-contact .whatsapp-link img { width: 18px; height: 18px; }
.top-contact .website-link { color: var(--gold); }
@media(max-width:850px){
    .top-contact { display: none; /* Hide on very small screens to save header space */ }
}

/* Window Control Buttons */
.win-controls { display: flex; align-items: center; gap: 14px; margin-left: 14px; margin-right: 4px; }
.win-btn { width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.win-btn::before { content: ''; opacity: 0; transition: opacity 0.2s; position: absolute; }
.win-btn:hover::before { opacity: 1; }
.btn-close { background-color: #ff5f56; }
.btn-close::before { content: '×'; color: #5c0002; font-size: 20px; font-weight: bold; line-height: 1; }
.btn-min { background-color: #ffbd2e; }
.btn-min::before { content: '-'; color: #6b3d00; font-size: 24px; font-weight: bold; line-height: 1; margin-top: -2px; }
.btn-max { background-color: #27c93f; }
.btn-max::before { content: '+'; color: #004d00; font-size: 20px; font-weight: bold; line-height: 1; }

.os-title-area { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }

/* Pagination & 4-Item Grid adjustments */
.market-grid { gap: 18px !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
@media (max-width: 1000px) { .market-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .market-grid { grid-template-columns: 1fr !important; } }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px 10px;
    margin-top: auto;
}
.pagination .btn {
    min-width: 130px;
    height: 42px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: bold;
}
.pagination .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #2a3447;
    border-color: #3b4d72;
    color: #94a3b8;
}
.pagination .page-info {
    font-size: 16px;
    font-weight: bold;
    color: var(--gold);
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* Interactive Expandable Description */
.market-card { overflow: visible !important; }
.market-thumb { border-top-left-radius: 14px; border-top-right-radius: 14px; overflow: hidden; }
.market-desc-interactive {
    font-size: 10.5px;
    line-height: 1.35;
    color: #dbeafe;
    padding: 6px 7px;
    border-left: 2px solid #7c3aed;
    background: #0d162a;
    border-radius: 6px;
    position: absolute;
    top: 0; left: 0; width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.market-desc-interactive .desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}
.market-desc-interactive .expand-btn {
    text-align: center;
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 5px;
    font-weight: bold;
    background: #101d35;
    border: 1px dashed #263b62;
    border-radius: 5px;
    padding: 4px;
    transition: background 0.2s;
}
.market-desc-interactive:hover .expand-btn {
    background: #17223c;
    color: #fff;
}
.market-desc-interactive .expand-btn::before { content: '▼ বিস্তারিত পড়ুন'; }
.market-desc-interactive.expanded {
    z-index: 999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 0 1px #8b5cf6;
}
.market-desc-interactive.expanded .desc-text {
    display: block;
    -webkit-line-clamp: unset;
}
.market-desc-interactive.expanded .expand-btn {
    background: #7c3aed;
    color: #fff;
    border: 1px solid #5b21b6;
}
.market-desc-interactive.expanded .expand-btn::before { content: '▲ বন্ধ করুন'; }

/* Description Modal */
.desc-modal {
    border: 1px solid #7c3aed;
    border-radius: 12px;
    background: #0d162a;
    color: var(--text);
    padding: 0;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.desc-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.desc-modal-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.desc-modal-box h3 { margin: 0; color: #fff; font-size: 22px; border-bottom: 1px solid #1e293b; padding-bottom: 10px; }
.desc-modal-box #descModalContent {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap; /* Preserves line breaks perfectly */
}

/* Button for Popup (No inline text) */
.btn-read-more-only {
    display: block;
    width: 100%;
    background: #0d162a;
    border: 1px dashed #3b4d72;
    color: #a78bfa;
    font-size: 13px;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    text-align: center;
}
.btn-read-more-only:hover {
    background: #7c3aed;
    border-color: #5b21b6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Taskbar Styles */
#os-taskbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 54px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.taskbar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f8fafc;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.taskbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.taskbar-btn.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
    transform: translateY(0);
}
.taskbar-btn img {
    width: 22px;
    height: 22px;
}



@media (min-width: 1200px) {
    body.desktop-mode-active .market-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 16px !important; }
    body.desktop-mode-active.is-maximized .market-grid { grid-template-columns: repeat(8, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 1199px) and (min-width: 800px) {
    body.desktop-mode-active .market-grid, body.desktop-mode-active.is-maximized .market-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 799px) and (min-width: 500px) {
    body.desktop-mode-active .market-grid, body.desktop-mode-active.is-maximized .market-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 499px) {
    body.desktop-mode-active .market-grid, body.desktop-mode-active.is-maximized .market-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}
body.desktop-mode-active .market-card { min-height: 480px !important; }
body.desktop-mode-active .market-thumb { height: 220px !important; flex: 0 0 220px !important; }
body.desktop-mode-active.is-maximized .market-card { min-height: 400px !important; }
body.desktop-mode-active.is-maximized .market-thumb { height: 160px !important; flex: 0 0 160px !important; }
body.desktop-mode-active .wrap { max-width: 98% !important; padding: 22px 1% !important; }






#os-content::-webkit-scrollbar { display: none; }
#os-content { scrollbar-width: none; }

/* V1.9.0 — unified smartphone layout. This final layer intentionally wins
   over the older incremental mobile rules above. */
html{min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;overflow-wrap:anywhere}
img,svg{max-width:100%}
button,input,select,textarea{max-width:100%}

@media (max-width:900px), (hover:none) and (pointer:coarse){
    html,body{width:100%;max-width:100%;min-height:100%;overflow-x:hidden!important}
    body:not(.desktop-mode-active){height:auto!important;overflow-y:auto!important}
    body:not(.desktop-mode-active) .shell{width:100%;min-width:0;min-height:100svh}

    body:not(.desktop-mode-active) .top{position:sticky;top:0;height:auto;min-height:60px;width:100%;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))!important;gap:8px!important;flex-wrap:nowrap}
    body:not(.desktop-mode-active) .logo{width:38px;height:38px;flex:0 0 38px;border-radius:10px}
    body:not(.desktop-mode-active) .brand{min-width:0;flex:1}
    body:not(.desktop-mode-active) .brand b{font-size:clamp(14px,4.2vw,18px)!important;line-height:1.18;white-space:normal!important}
    body:not(.desktop-mode-active) .brand small{display:block;font-size:10px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    body:not(.desktop-mode-active) .top .spacer{display:none}
    body:not(.desktop-mode-active) .top-contact{display:none!important}
    body:not(.desktop-mode-active) .top>.btn{min-height:40px;height:40px;flex:0 0 auto;padding:0 11px!important;font-size:12px!important;white-space:nowrap}

    body:not(.desktop-mode-active) .wrap{width:100%;max-width:100%;padding:12px max(10px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important}
    body:not(.desktop-mode-active) .tools{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px!important;margin:10px 0 14px!important}
    body:not(.desktop-mode-active) .tools>.input{width:100%!important;min-width:0!important;height:44px;margin:0!important;text-align:left!important;font-size:16px}
    body:not(.desktop-mode-active) .tools>.btn{width:100%!important;min-height:44px;height:44px;margin:0!important;font-size:14px!important}
    body:not(.desktop-mode-active) .tools>div{grid-column:1/-1;width:100%!important;margin:0!important;padding:9px 13px!important;border-radius:12px!important;font-size:13px!important;line-height:1.45;text-align:center!important}

    body:not(.desktop-mode-active) .market-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
    body:not(.desktop-mode-active) .market-card{width:100%;min-width:0;height:100%;overflow:hidden!important}
    body:not(.desktop-mode-active) .market-card .market-thumb{height:auto!important;flex:0 0 auto!important;aspect-ratio:16/9}
    body:not(.desktop-mode-active) .market-body{min-width:0;padding:11px}
    body:not(.desktop-mode-active) .market-title{min-height:0;font-size:16px;line-height:1.3}
    body:not(.desktop-mode-active) .market-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
    body:not(.desktop-mode-active) .market-specs>div{min-width:0;padding:6px}
    body:not(.desktop-mode-active) .market-specs b{font-size:11px;white-space:normal;overflow-wrap:anywhere}
    body:not(.desktop-mode-active) .market-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
    body:not(.desktop-mode-active) .market-actions .btn{width:100%;min-width:0;min-height:40px;height:auto;padding:7px 5px!important;font-size:12px!important;white-space:normal}
    body:not(.desktop-mode-active) .market-actions .copy{grid-column:1/-1}

    body:not(.desktop-mode-active) .pagination{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;padding:22px 0 6px}
    body:not(.desktop-mode-active) .pagination .btn{width:100%;min-width:0;min-height:44px;height:auto;padding:7px!important;font-size:12px!important;text-align:center}
    body:not(.desktop-mode-active) .pagination .page-info{padding:8px 10px;font-size:13px;white-space:nowrap;text-align:center}

    body:not(.desktop-mode-active) .detail{width:100%;grid-template-columns:minmax(0,1fr);gap:12px}
    body:not(.desktop-mode-active) .preview{min-height:0;aspect-ratio:16/9;border-radius:12px}
    body:not(.desktop-mode-active) .preview img{width:100%;height:100%;max-height:none;object-fit:contain}
    body:not(.desktop-mode-active) .panel{min-width:0;padding:15px;border-radius:12px}
    body:not(.desktop-mode-active) .panel h1{font-size:clamp(22px,7vw,30px);overflow-wrap:anywhere}
    body:not(.desktop-mode-active) .detail-app-name{align-items:flex-start}
    body:not(.desktop-mode-active) .detail-app-icon{flex:0 0 48px;width:48px;height:48px}
    body:not(.desktop-mode-active) .kv{grid-template-columns:minmax(76px,30%) minmax(0,1fr);gap:9px 10px}
    body:not(.desktop-mode-active) .detail .row .btn{min-height:44px;height:auto;padding:7px 12px!important}

    .desc-modal{width:calc(100% - 20px);max-width:600px;max-height:calc(100dvh - 20px);margin:auto}
    .desc-modal-box{padding:17px;gap:13px}
    .desc-modal-box h3{font-size:19px}
    .desc-modal-box #descModalContent{max-height:calc(100dvh - 155px);font-size:14px}

    body.admin-page:not(.desktop-mode-active){height:auto!important;min-height:100svh;overflow-y:auto!important}
    body.admin-page:not(.desktop-mode-active) .top{position:sticky;min-height:64px}
    body.admin-page:not(.desktop-mode-active) .top .brand small{display:none}
    body.admin-page:not(.desktop-mode-active) .top>.btn{padding:0 8px!important;font-size:11px!important}
    body.admin-page:not(.desktop-mode-active) .wrap{height:auto;overflow:visible;display:block}
    body.admin-page:not(.desktop-mode-active) .admin{display:block;min-height:0}
    body.admin-page:not(.desktop-mode-active) .admin>.form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;overflow:visible}
    body.admin-page:not(.desktop-mode-active) .admin>.form>.field{grid-column:1!important}
    body.admin-page:not(.desktop-mode-active) .admin>.form>.field input:not([type=checkbox]):not([type=file]),body.admin-page:not(.desktop-mode-active) .admin>.form>.field select{height:44px;font-size:16px}
    body.admin-page:not(.desktop-mode-active) .admin>.form>.field textarea{height:auto;min-height:100px;font-size:16px}
    body.admin-page:not(.desktop-mode-active) .admin>.form>.field input[type=file]{height:auto;min-height:48px;font-size:13px}
    body.admin-page:not(.desktop-mode-active) .admin>.form>.btn{min-height:44px;height:auto}
    body.admin-page:not(.desktop-mode-active) .admin>.admin-list{height:auto;min-height:360px;margin-top:12px;overflow:hidden}
    body.admin-page:not(.desktop-mode-active) .admin-search{align-items:stretch}
    body.admin-page:not(.desktop-mode-active) .admin-search label{height:44px}
    body.admin-page:not(.desktop-mode-active) .admin-table-scroll{max-height:70svh;overflow:auto;-webkit-overflow-scrolling:touch}
    body.admin-page:not(.desktop-mode-active) .admin .table{min-width:760px}

    .login.panel{width:calc(100% - 24px);margin:max(24px,8svh) auto;padding:20px}
    .login.panel form>.btn{min-height:44px;height:auto;margin-top:5px;padding:7px 13px!important}
}

@media (max-width:560px){
    body:not(.desktop-mode-active) .tools{grid-template-columns:minmax(0,1fr)}
    body:not(.desktop-mode-active) .tools>div{grid-column:auto}
    body:not(.desktop-mode-active) .market-grid{grid-template-columns:minmax(0,1fr)!important}
    body:not(.desktop-mode-active) .market-card .market-thumb{aspect-ratio:16/9}
}

/* V1.10.0 — Bengali / English / Arabic language controls */
.language-switcher{width:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 12px;padding:7px;border:1px solid var(--line);border-radius:12px;background:rgba(12,20,38,.88);box-shadow:0 5px 18px rgba(0,0,0,.16)}
.language-btn{min-width:82px;min-height:40px;padding:7px 13px;border:1px solid #3b4d72;border-radius:9px;background:#101a30;color:#dbeafe;font:800 14px/1.15 "Noto Sans Bengali","Segoe UI",Arial,sans-serif;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.language-btn:hover,.language-btn:focus-visible{border-color:#a78bfa;background:#1a2850;outline:2px solid rgba(167,139,250,.45);outline-offset:1px}
.language-btn.active{border-color:#c4b5fd;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;box-shadow:0 4px 13px rgba(124,58,237,.35)}
.language-btn:disabled{opacity:.72;cursor:wait;transform:none}
.language-btn.is-loading{opacity:.8}
.language-btn.is-loading::before{content:none!important;display:none!important}
@keyframes language-spin{to{transform:rotate(360deg)}}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .language-switcher{direction:ltr;justify-content:flex-start}
html[dir="rtl"] .top,html[dir="rtl"] .row,html[dir="rtl"] .tools{direction:rtl}
html[dir="rtl"] .market-specs,html[dir="rtl"] .kv{direction:rtl}
html[dir="rtl"] .market-app-icon{left:auto;right:9px}
html[dir="rtl"] .market-preview-launch{right:auto;left:10px}
html[dir="rtl"] .table th,html[dir="rtl"] .table td{text-align:right}
.goog-te-banner-frame.skiptranslate,.goog-te-banner-frame,iframe.goog-te-banner-frame,.VIpgJd-ZVi9od-ORHb-OEVmcd,iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,#goog-gt-tt,.goog-te-balloon-frame{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;border:0!important}
html{margin-top:0!important}
body{top:0!important;position:static!important}
@media(max-width:560px){
    .language-switcher{justify-content:center;gap:6px;padding:6px;margin-bottom:10px}
    .language-btn{flex:1 1 calc(33.333% - 6px);min-width:0;min-height:42px;padding:7px 5px;font-size:13px}
    html[dir="rtl"] .language-switcher{justify-content:center}
}

/* V1.11.6 — five-language mobile layout */
@media(max-width:560px){
    .language-switcher{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%}
    .language-btn{grid-column:span 2;width:100%;min-width:0}
    .language-btn:nth-child(n+4){grid-column:span 3}
}
@media(max-width:340px){
    .language-btn{font-size:11.5px;padding-inline:2px}
}

/* V1.11.9 — transparent BaharSoft BS mark */
.logo{background:transparent!important;box-shadow:none!important;object-fit:contain!important}

/* V1.12.1 — language controls live inside the top header */
.top>.language-switcher{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:auto;margin:0;padding:0;border:0;border-radius:0;
    background:transparent;box-shadow:none;flex-wrap:nowrap;z-index:2
}
.top>.language-switcher .language-btn{min-width:74px;min-height:38px;padding:6px 11px}
@media(max-width:1300px){
    .top{height:auto;min-height:64px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
    .top>.language-switcher{
        position:static;transform:none;order:20;flex:1 0 100%;
        display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px
    }
    .top>.language-switcher .language-btn{grid-column:span 2;width:100%;min-width:0}
    .top>.language-switcher .language-btn:nth-child(n+4){grid-column:span 3}
}

/* V1.12.4 — visible desktop resize grip and narrow-window/mobile header */
.os-resize-handle{position:absolute;right:0;bottom:0;width:24px;height:24px;z-index:20;cursor:nwse-resize;border-radius:0 0 10px 0;background:linear-gradient(135deg,transparent 0 42%,#a78bfa 43% 52%,transparent 53% 62%,#7c3aed 63% 72%,transparent 73%)}
body.is-maximized .os-resize-handle{display:none}
@media(max-width:1024px){
    .top{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;height:auto!important;min-height:0!important;padding:8px 10px!important;gap:7px 8px!important}
    .top>.logo{grid-column:1;grid-row:1;width:38px!important;height:38px!important;min-width:38px!important}
    .top>.brand{grid-column:2;grid-row:1;min-width:0!important;width:auto!important;overflow:hidden!important}
    .top>.brand b{display:block!important;font-size:15px!important;line-height:1.15!important;white-space:nowrap!important;word-break:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .top>.brand small{display:block;font-size:9px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .top>.spacer,.top>.top-contact{display:none!important}
    .top>.btn{grid-column:3;grid-row:1;min-width:0!important;padding:0 8px!important;font-size:11px!important}
    .top>.language-switcher{grid-column:1/-1!important;grid-row:2!important;position:static!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}
    .top>.language-switcher .language-btn{grid-column:span 2!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:5px 3px!important;font-size:12px!important}
    .top>.language-switcher .language-btn:nth-child(n+4){grid-column:span 3!important}
}
body.window-narrow .top{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;height:auto!important;min-height:0!important;padding:8px 10px!important;gap:7px 8px!important}
body.window-narrow .top>.logo{grid-column:1;grid-row:1;width:38px!important;height:38px!important}
body.window-narrow .top>.brand{grid-column:2;grid-row:1;min-width:0!important;overflow:hidden!important}
body.window-narrow .top>.brand b{font-size:15px!important;line-height:1.15!important;white-space:nowrap!important;word-break:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.window-narrow .top>.brand small{display:none!important}
body.window-narrow .top>.spacer,body.window-narrow .top>.top-contact{display:none!important}
body.window-narrow .top>.btn{grid-column:3;grid-row:1;padding:0 7px!important;font-size:10px!important}
body.window-narrow .top>.language-switcher{grid-column:1/-1!important;grid-row:2!important;position:static!important;transform:none!important;width:100%!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
body.window-narrow .top>.language-switcher .language-btn{grid-column:auto!important;width:100%!important;min-width:0!important;font-size:11px!important;padding:5px 2px!important}
body.window-narrow .top>.language-switcher .language-btn:last-child{grid-column:1/-1!important}
body.window-narrow .wrap{padding:8px!important}
body.window-narrow .tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:8px 0!important}
body.window-narrow .tools>*{width:100%!important;min-width:0!important;margin:0!important}
body.window-narrow .market-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
body.window-narrow .pagination{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding:12px 0 5px!important;gap:7px!important}
body.window-narrow .pagination .page-info{grid-column:1/-1!important;grid-row:1!important}
@media(max-width:560px){
    .top>.language-switcher{margin:2px 0 0!important;padding:0!important}
    .top>.language-switcher .language-btn{min-height:40px;padding:6px 3px;font-size:12px}
}

/* V1.12.2 — compact vertical spacing so pagination stays clearly visible */
@media(min-width:1301px){
    body.desktop-mode-active .top{height:58px;min-height:58px;padding-inline:16px}
    body.desktop-mode-active .wrap{padding:10px 1%!important}
    body.desktop-mode-active .tools{margin:8px 0!important}
    body.desktop-mode-active .market-card{min-height:440px!important}
    body.desktop-mode-active .market-thumb{height:190px!important;flex-basis:190px!important}
    body.desktop-mode-active .pagination{padding:12px 20px 4px;gap:12px}
}
@media(max-width:1300px){
    .top{row-gap:6px!important}
    .wrap{padding-top:8px!important}
    .tools{margin-top:7px!important;margin-bottom:9px!important}
    .pagination{padding-top:12px!important}
}

@media (max-width:380px){
    body:not(.desktop-mode-active) .logo{width:34px;height:34px;flex-basis:34px}
    body:not(.desktop-mode-active) .brand small{display:none}
    body:not(.desktop-mode-active) .top>.btn{padding:0 8px!important;font-size:11px!important}
    body:not(.desktop-mode-active) .pagination{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    body:not(.desktop-mode-active) .pagination .page-info{grid-column:1/-1;grid-row:1}
}

@media (max-height:500px) and (orientation:landscape){
    body:not(.desktop-mode-active) .top{position:relative}
    body:not(.desktop-mode-active) .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body:not(.desktop-mode-active) .preview{max-height:70svh}
}

/* V1.9.1 — cached-script safety net for ordinary Android phones.
   Even if an older desktop.js creates the simulated window, turn it back into
   a normal document before layout so no content can be cropped. */
@media (max-width:1024px), (hover:none) and (pointer:coarse){
    body.desktop-mode-active{width:100%!important;height:auto!important;min-height:100svh!important;margin:0!important;padding:0!important;background:linear-gradient(135deg,#07101f,#110b22)!important;overflow-x:hidden!important;overflow-y:auto!important}
    body.desktop-mode-active #os-bg,
    body.desktop-mode-active #os-titlebar,
    body.desktop-mode-active #os-taskbar{display:none!important}
    body.desktop-mode-active #os-window{position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-width:0!important;min-height:100svh!important;max-width:100%!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;resize:none!important;overflow:visible!important;display:block!important;transform:none!important}
    body.desktop-mode-active #os-content{width:100%!important;height:auto!important;min-height:100svh!important;overflow:visible!important}
    body.desktop-mode-active .shell{width:100%!important;min-width:0!important;min-height:100svh!important}
    body.desktop-mode-active .wrap{width:100%!important;max-width:100%!important;padding:12px max(10px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important}
}

@media (max-width:560px){
    body.desktop-mode-active .tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
    body.desktop-mode-active .tools>*{width:100%!important;min-width:0!important;margin:0!important}
    body.desktop-mode-active .market-grid{grid-template-columns:minmax(0,1fr)!important}
    body.desktop-mode-active .market-card{width:100%!important;min-width:0!important;overflow:hidden!important}
    body.desktop-mode-active .market-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
    body.desktop-mode-active .market-actions .btn{width:100%!important;min-width:0!important}
    body.desktop-mode-active .market-actions .copy{grid-column:1/-1!important}
    body.desktop-mode-active .pagination{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding-left:0!important;padding-right:0!important}
    body.desktop-mode-active .pagination .page-info{grid-column:1/-1!important;grid-row:1!important;text-align:center!important}
}


@keyframes btn-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(217, 70, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0); } }






@media (max-width: 799px) {
    body.desktop-mode-active .market-card, body.desktop-mode-active.is-maximized .market-card { min-height: auto !important; height: 100% !important; }
    body.desktop-mode-active .market-thumb, body.desktop-mode-active.is-maximized .market-thumb { height: 160px !important; flex: 0 0 160px !important; }
    #os-titlebar { padding: 0 8px; }
    .os-size { display: none; }
}


/* Mobile Specific Fixes for Overflow */
@media (max-width: 650px) {
    .tools { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .tools > * { width: 100% !important; margin: 0 !important; box-sizing: border-box !important; text-align: center; }
    .top { padding: 0 10px !important; gap: 8px !important; }
    .brand b { font-size: 15px !important; white-space: normal !important; line-height: 1.2; }
    .brand small { font-size: 10px !important; }
    .btn { padding: 0 10px !important; font-size: 12px !important; white-space: normal; }
    body.desktop-mode-active .wrap { padding: 12px 10px !important; }
    #os-content { overflow-x: hidden !important; }
    .market-actions { display: flex; flex-wrap: wrap; }
    .market-actions .btn { flex: 1 1 45%; }
}


#os-window { box-sizing: border-box !important; max-width: 100% !important; }


/* Bulletproof Mobile Width Fix */
@media (max-width: 800px) {
    #os-window {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    body {
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #os-content {
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .os-size {
        display: none !important;
    }
    #os-titlebar {
        padding: 0 10px !important;
    }
    .win-controls {
        gap: 8px !important;
        margin-left: 5px !important;
    }
}





/* V1.13.2 — custom app order notice */
.custom-order-link{min-height:38px;max-width:245px;padding:7px 14px;display:inline-flex;align-items:center;justify-content:center;text-align:center;border:1px solid #22c55e;border-radius:11px;background:linear-gradient(135deg,#075985,#047857);color:#fff;text-decoration:none;font:800 13px/1.25 "Noto Sans Bengali","Segoe UI",Arial,sans-serif;box-shadow:0 4px 14px rgba(34,197,94,.25)}
.custom-order-link:hover,.custom-order-link:focus-visible{border-color:#86efac;filter:brightness(1.08);outline:2px solid rgba(134,239,172,.35);outline-offset:1px}
@media(max-width:850px){.custom-order-link{order:4;max-width:none;width:100%}}

/* V1.13.4 — compact desktop search row so pagination remains visible */
@media(min-width:1000px){
    .tools{flex-wrap:nowrap!important;gap:8px!important}
    .tools>.input{width:190px!important;min-width:190px!important;max-width:190px!important;flex:0 0 190px!important}
    .tools>.custom-order-link{width:235px!important;max-width:235px!important;flex:0 0 235px!important;padding:6px 9px!important;font-size:12px!important}
    .tools>div:last-child{max-width:390px!important;margin-left:auto!important;padding:6px 12px!important;font-size:13px!important;line-height:1.15!important;text-align:center!important}
}

/* V1.13.5 — compact cards in the normal desktop window so pagination stays visible */
@media(min-width:1000px){
    body.desktop-mode-active:not(.is-maximized) .wrap{padding-top:8px!important;padding-bottom:4px!important}
    body.desktop-mode-active:not(.is-maximized) .market-grid{gap:10px!important;grid-auto-rows:auto!important}
    body.desktop-mode-active:not(.is-maximized) .market-card{min-height:0!important;height:auto!important}
    body.desktop-mode-active:not(.is-maximized) .market-card .market-thumb{height:130px!important;flex:0 0 130px!important}
    body.desktop-mode-active:not(.is-maximized) .market-card .market-body{padding:7px 9px!important;gap:3px!important}
    body.desktop-mode-active:not(.is-maximized) .market-title{min-height:26px!important;font-size:15px!important;line-height:1.15!important;-webkit-line-clamp:1!important}
    body.desktop-mode-active:not(.is-maximized) .market-specs{gap:3px!important}
    body.desktop-mode-active:not(.is-maximized) .market-specs>div{padding:3px 5px!important}
    body.desktop-mode-active:not(.is-maximized) .market-specs>div.platform-wide{padding:3px 5px!important}
    body.desktop-mode-active:not(.is-maximized) .market-specs span{margin-bottom:1px!important;font-size:8px!important}
    body.desktop-mode-active:not(.is-maximized) .market-specs b,
    body.desktop-mode-active:not(.is-maximized) .market-specs>div.platform-wide .platform-text{font-size:9.5px!important;line-height:1.08!important}
    body.desktop-mode-active:not(.is-maximized) .btn-read-more-only{min-height:28px!important;padding:3px 6px!important;font-size:12px!important}
    body.desktop-mode-active:not(.is-maximized) .market-body>div:has(.btn-read-more-only){margin-bottom:2px!important}
    body.desktop-mode-active:not(.is-maximized) .market-price{margin:2px 0!important;font-size:18px!important}
    body.desktop-mode-active:not(.is-maximized) .market-actions{margin-top:1px!important;gap:4px!important}
    body.desktop-mode-active:not(.is-maximized) .market-actions .btn{height:27px!important;padding:0 5px!important;font-size:9.5px!important}
    body.desktop-mode-active:not(.is-maximized) .pagination{padding-top:7px!important;padding-bottom:2px!important}
}

/* V1.13.6 — five-product normal window and stable phone layout */
@media(min-width:1200px){
    body.desktop-mode-active:not(.is-maximized) .market-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
}
@media(max-width:560px){
    html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
    body:not(.desktop-mode-active) .top{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;height:auto!important;align-items:center!important;padding:8px 10px!important}
    body:not(.desktop-mode-active) .top>.logo{grid-column:1;grid-row:1;width:38px!important;height:38px!important}
    body:not(.desktop-mode-active) .top>.brand{grid-column:2;grid-row:1;min-width:0!important}
    body:not(.desktop-mode-active) .top>.btn{grid-column:3;grid-row:1;min-width:0!important}
    body:not(.desktop-mode-active) .top>.language-switcher{grid-column:1/-1;grid-row:2;width:100%!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;margin:4px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
    body:not(.desktop-mode-active) .top>.language-switcher .language-btn{grid-column:span 2!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:5px 2px!important;font-size:11px!important}
    body:not(.desktop-mode-active) .top>.language-switcher .language-btn:nth-child(n+4){grid-column:span 3!important}
    body:not(.desktop-mode-active) .wrap{padding:10px!important}
    body:not(.desktop-mode-active) .tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:10px 0 12px!important}
    body:not(.desktop-mode-active) .tools>*{width:100%!important;min-width:0!important;margin:0!important}
    body:not(.desktop-mode-active) .tools>.input,
    body:not(.desktop-mode-active) .tools>.btn{height:42px!important;min-height:42px!important}
    body:not(.desktop-mode-active) .tools>.custom-order-link{order:5;max-width:none!important;min-height:48px!important}
    body:not(.desktop-mode-active) .tools>div:last-child{order:4;padding:8px 10px!important;font-size:12px!important;line-height:1.35!important}
    body:not(.desktop-mode-active) .market-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
    body:not(.desktop-mode-active) .market-card{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important}
    body:not(.desktop-mode-active) .market-card .market-thumb{width:100%!important;height:auto!important;aspect-ratio:16/9!important;flex:0 0 auto!important}
    body:not(.desktop-mode-active) .market-body{padding:10px!important;gap:6px!important}
    body:not(.desktop-mode-active) .market-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
    body:not(.desktop-mode-active) .market-actions .btn{width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important}
    body:not(.desktop-mode-active) .market-actions .copy{grid-column:1/-1!important}
    body:not(.desktop-mode-active) .pagination{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:14px 0 6px!important}
    body:not(.desktop-mode-active) .pagination .page-info{grid-column:1/-1!important;grid-row:1!important;text-align:center!important}
}

