*{box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:#f6f7fb;color:#111827;overflow-x:hidden}.site-shell{min-height:100vh;padding-bottom:96px;overflow-x:hidden}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:14px 18px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid #edf0f5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#111827;min-width:0}.brand-mark{width:40px;height:40px;flex:0 0 40px;border-radius:14px;background:linear-gradient(135deg,#0f172a,#334155);color:#ffd76a;display:flex;align-items:center;justify-content:center;font-weight:900}.brand b{display:block;font-size:19px;white-space:nowrap}.brand small{display:block;color:#7b8190;font-size:12px;margin-top:2px;white-space:nowrap}.content{max-width:1120px;margin:0 auto;padding:18px;width:100%}.alert{padding:12px 14px;border-radius:14px;margin:12px auto;max-width:960px}.alert.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}.alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.home-head{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e8ecf3;border-radius:22px;padding:22px;margin:10px auto 18px;box-shadow:0 12px 28px rgba(15,23,42,.05);max-width:960px}.home-head h1{margin:0 0 6px;font-size:30px;color:#111827}.home-head p{margin:0;color:#6b7280;line-height:1.7}.search-form{display:flex;gap:8px;width:min(380px,100%);flex:0 0 auto}.category-tabs{max-width:960px;margin:0 auto 16px;display:flex;gap:10px;overflow:auto;padding-bottom:2px}.category-tabs a{display:inline-flex;align-items:center;min-height:38px;border:1px solid #d9dee8;background:#fff;color:#1f2937;text-decoration:none;border-radius:999px;padding:8px 14px;white-space:nowrap;font-size:14px}.category-tabs a.active{background:linear-gradient(135deg,#f6d365,#d4af37);border-color:#d4af37;color:#181200;font-weight:800}.btn,.btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:none;border-radius:14px;min-height:44px;padding:11px 16px;font-size:14px;text-decoration:none;cursor:pointer;line-height:1.2}.btn{background:linear-gradient(135deg,#111827,#2f3748);color:#fff}.btn.gold{background:linear-gradient(135deg,#a66d00,#f3cf4d);color:#191100;font-weight:800}.btn.danger{background:#b91c1c;color:#fff}.btn-outline{background:#fff;border:1px solid #d9dee8;color:#1f2937}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px auto 14px;max-width:960px}.section-title h2{margin:0;font-size:22px}.muted{color:#747b88}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:960px;margin:0 auto}.product-card{background:#fff;border:1px solid #e9edf4;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.06);display:flex;flex-direction:column;min-width:0}.product-img{height:230px;background:linear-gradient(135deg,#f8fafc,#e2e8f0);display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:700;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-body{padding:14px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}.product-title{font-size:16px;font-weight:800;min-height:42px;color:#111827}.category-badge{display:inline-flex;align-self:flex-start;background:#fff7cc;border:1px solid #f1d675;color:#7c5300;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.price-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.price{font-size:20px;color:#b45309;font-weight:900}.sales{font-size:12px;color:#737b89;white-space:nowrap}.product-desc{min-height:42px;margin:0;line-height:1.5}.product-actions{display:flex;gap:8px;margin-top:auto}.product-actions .btn,.product-actions .btn-outline{flex:1;padding:10px 12px}.card{background:#fff;border:1px solid #e9edf4;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.05);margin:0 auto 16px;max-width:960px}.empty-state{text-align:center;max-width:680px;margin:20px auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.field label{font-weight:700;font-size:14px;color:#111827}input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,.input{display:block;width:100%!important;height:50px!important;min-height:50px!important;border:1px solid #d8dee9!important;border-radius:16px!important;padding:0 15px!important;font-size:15px!important;background:#fff!important;color:#111827!important;outline:none!important;line-height:50px!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important}input[type="number"]{appearance:textfield;-moz-appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}select{background-image:linear-gradient(45deg,transparent 50%,#4b5563 50%),linear-gradient(135deg,#4b5563 50%,transparent 50%);background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:36px!important}input:focus,textarea:focus,select:focus{border-color:#d4af37!important;box-shadow:0 0 0 3px rgba(212,175,55,.16)!important}input[type=file]{width:100%;border:1px solid #d8dee9;border-radius:16px;padding:12px 14px;min-height:50px;background:#fff}textarea{display:block;width:100%;border:1px solid #d8dee9;border-radius:16px;background:#fff;color:#111827;min-height:92px;resize:vertical;padding:12px 14px;line-height:1.55;font-size:15px;outline:none;-webkit-appearance:none;appearance:none}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:640px}.table th,.table td{padding:12px;border-bottom:1px solid #eef1f6;text-align:left;vertical-align:middle}.cart-item{display:grid;grid-template-columns:minmax(0,1fr) 140px 130px;gap:12px;align-items:end;padding:14px 0;border-bottom:1px solid #eef1f6}.cart-item:last-child{border-bottom:0}.cart-subtotal span,.buy-total span{display:block;color:#747b88;font-size:13px}.cart-subtotal b,.buy-total b{font-size:18px;color:#b45309}.cart-total-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-detail-card{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.detail-img{height:390px;border-radius:18px}.buy-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;align-items:end}.bottom-nav{position:fixed;left:50%;bottom:12px;z-index:50;transform:translateX(-50%);width:min(760px,calc(100% - 24px));height:76px;background:#1f2937;border-radius:24px;padding:8px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;box-shadow:0 16px 40px rgba(15,23,42,.18);overflow:hidden}.bottom-nav a{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-decoration:none;color:#d1d5db;border-radius:18px;font-size:12px;white-space:nowrap}.bottom-nav a span{font-size:17px}.bottom-nav a.active{background:linear-gradient(135deg,#f6d365,#d4af37);color:#111827;font-weight:800}.bottom-nav em{position:absolute;top:6px;right:18%;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-style:normal;display:flex;align-items:center;justify-content:center;padding:0 5px}.badge-dot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:99px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;padding:0 5px}.chat-card{max-width:760px}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef1f6;padding-bottom:12px;margin-bottom:12px}.chat-head b{display:block;font-size:18px}.chat-window{display:flex;flex-direction:column;gap:10px;min-height:150px;max-height:300px;overflow:auto;padding:12px;background:#fafbfe;border:1px solid #eef1f6;border-radius:16px}.bubble{width:auto;max-width:70%;padding:10px 12px;border-radius:16px;line-height:1.5;font-size:14px}.bubble.me{align-self:flex-end;background:#fff7cc;border:1px solid #e7c75b}.bubble.admin{align-self:flex-start;background:#eef2ff;border:1px solid #c7d2fe}.bubble b{display:block;margin-bottom:3px}.bubble small{display:block;margin-top:4px}.bubble img,.chat-img{max-width:160px;border-radius:10px;display:block;margin-top:6px}.chat-form{border-top:1px solid #eef1f6;margin-top:12px;padding-top:12px}.chat-form textarea{min-height:76px;max-height:110px}.chat-actions{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:10px;align-items:center}.status{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;background:#f1f5f9;white-space:nowrap}.status.ok{background:#dcfce7;color:#166534}.status.warn{background:#fef3c7;color:#92400e}.status.bad{background:#fee2e2;color:#991b1b}.merchant-dashboard{max-width:960px;margin:0 auto}.merchant-profile-card{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#111827,#2f3748);color:#fff;border-radius:24px;padding:20px;margin-bottom:16px;box-shadow:0 18px 44px rgba(15,23,42,.16)}.merchant-avatar{width:76px;height:76px;border-radius:24px;background:linear-gradient(135deg,#f6d365,#d4af37);color:#111827;font-weight:900;font-size:28px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 76px}.merchant-avatar img{width:100%;height:100%;object-fit:cover}.merchant-profile-info h1{margin:0 0 6px;font-size:24px}.merchant-profile-info p{margin:0 0 8px;color:#d1d5db}.merchant-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat{background:#fff;border:1px solid #e9edf4;border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.04)}.stat span{display:block;color:#747b88;font-size:13px}.stat b{display:block;margin-top:8px;font-size:24px;color:#111827}.merchant-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.merchant-action-tile{background:#fff;border:1px solid #e9edf4;border-radius:20px;padding:18px;text-decoration:none;color:#111827;box-shadow:0 12px 30px rgba(15,23,42,.05)}.merchant-action-tile b{display:block;font-size:18px;margin-bottom:8px}.merchant-action-tile span{color:#747b88}.merchant-action-tile.gold-tile{background:linear-gradient(135deg,#fff4b8,#e7bd2b)}.select-product-row{display:grid;grid-template-columns:28px 1fr 120px;gap:12px;align-items:center;border-bottom:1px solid #eef1f6;padding:12px 0}.select-product-row:last-child{border-bottom:0}.summary-box{position:sticky;bottom:96px;z-index:12;background:#111827;color:#fff;border-radius:18px;padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 120px;gap:10px;align-items:center;box-shadow:0 12px 30px rgba(15,23,42,.18)}.summary-box span{display:block;color:#d1d5db;font-size:12px}.summary-box b{display:block;font-size:18px}.avatar-preview{width:72px;height:72px;border-radius:20px;object-fit:cover;background:#eef2ff;border:1px solid #d8dee9}.auth-card{max-width:840px}.auth-hero{max-width:960px;margin:0 auto 16px;background:linear-gradient(135deg,#3b2700,#d4a019,#fff0a3);border-radius:26px;padding:32px;color:#1c1300}.auth-hero h1{margin:0 0 12px;font-size:32px}.auth-hero p{margin:0;line-height:1.7}.thumb{width:68px;height:68px;object-fit:cover;border-radius:12px;background:#f8fafc}@media(max-width:760px){.content{padding:14px 12px}.home-head{display:block;text-align:left;padding:18px}.home-head h1{font-size:24px}.search-form{margin-top:14px;width:100%}.grid{gap:12px}.product-img{height:170px}.product-body{padding:12px}.product-title{font-size:14px;min-height:38px}.price{font-size:18px}.product-desc{font-size:13px;min-height:38px}.product-actions{flex-direction:column}.product-actions .btn,.product-actions .btn-outline{width:100%;min-height:40px}.form-grid,.product-detail-card,.merchant-stats,.merchant-action-grid{grid-template-columns:1fr}.cart-item{grid-template-columns:1fr;gap:8px}.cart-total-card{display:block}.buy-row{grid-template-columns:1fr}.detail-img{height:260px}.bottom-nav{bottom:8px;width:calc(100% - 16px);height:72px;border-radius:22px}.bottom-nav a{font-size:11px}.chat-card{padding:14px}.chat-head{align-items:flex-start}.chat-window{min-height:140px;max-height:260px}.bubble{max-width:86%;font-size:13px}.chat-actions{grid-template-columns:1fr}.chat-actions .btn{width:100%}.merchant-profile-card{align-items:flex-start;border-radius:20px;padding:16px}.merchant-avatar{width:64px;height:64px;flex-basis:64px;border-radius:20px}.summary-box{grid-template-columns:1fr 1fr;bottom:90px}.select-product-row{grid-template-columns:28px 1fr}.select-product-row .field{grid-column:2}.section-title{align-items:flex-start}.auth-hero{border-radius:22px;padding:22px}.auth-hero h1{font-size:26px}}@media(max-width:420px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-img{height:140px}.product-card{border-radius:18px}.product-actions .btn,.product-actions .btn-outline{font-size:12px;padding:9px 8px}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px;gap:3px}.bottom-nav a span{font-size:15px}.brand b{font-size:17px}.brand small{font-size:11px}}

/* v6 USDT payment page */
.payment-page{max-width:980px;margin:0 auto 40px;}
.payment-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;margin-bottom:16px;border-radius:24px;background:linear-gradient(135deg,#121d2d,#d5a21b 58%,#fff2a2);box-shadow:0 18px 45px rgba(13,24,38,.12);}
.payment-hero h2{margin:6px 0;color:#fff;font-size:28px;}
.payment-hero .muted{color:rgba(255,255,255,.8);}
.payment-kicker{display:inline-flex;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-weight:800;}
.payment-grid{display:grid;grid-template-columns:1.5fr .75fr;gap:16px;align-items:stretch;}
.payment-main-card,.payment-side-card,.payment-proof-card{border-radius:22px;}
.amount-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-radius:18px;background:#fff7d8;border:1px solid #efd067;margin-bottom:16px;}
.amount-box span{color:#637083;font-weight:700;}
.amount-box strong{font-size:34px;color:#9b5a00;}
.pay-lines{display:grid;gap:10px;}
.pay-lines>div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #eef1f6;}
.pay-lines span{color:#697587;font-weight:700;min-width:130px;}
.pay-lines b{word-break:break-all;text-align:right;}
.payment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}
.payment-qr{width:100%;max-width:240px;border-radius:16px;border:1px solid #e4e9f2;background:#fff;display:block;margin:12px auto 0;}
.empty-qr{height:220px;border-radius:18px;border:1px dashed #ccd4df;display:grid;place-items:center;text-align:center;color:#778397;background:#f8fafc;padding:16px;}
.small-note{font-size:13px;margin-top:12px;}
.proof-form{display:grid;gap:12px;}
.proof-form .btn,.proof-form .btn-outline{width:max-content;}
@media (max-width:760px){.payment-hero{align-items:flex-start;flex-direction:column;padding:18px;border-radius:20px}.payment-hero h2{font-size:23px}.payment-grid{grid-template-columns:1fr}.amount-box strong{font-size:28px}.pay-lines>div{display:block}.pay-lines b{display:block;text-align:left;margin-top:6px}.payment-actions .btn,.payment-actions .btn-outline{width:100%;text-align:center}.proof-form .btn,.proof-form .btn-outline{width:100%;}}

/* v7 mobile fixed navigation and clean home header */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;overscroll-behavior-x:none;}
.site-shell{width:100%;max-width:100vw;overflow-x:clip;padding-bottom:calc(104px + env(safe-area-inset-bottom));}
.content,.home-head,.category-tabs,.section-title,.grid,.card{max-width:min(960px,calc(100vw - 24px));}
.topbar{min-height:64px;}
.simple-brand{justify-content:center;text-align:center;}
.simple-brand b{font-size:21px;letter-spacing:.2px;}
.compact-home-head{align-items:center;min-height:132px;}
.compact-home-head h1{margin:0;font-size:34px;}
.section-title .muted,.brand small{display:none!important;}
.bottom-nav{position:fixed!important;left:50vw!important;right:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;transform:translate3d(-50%,0,0)!important;width:min(760px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;will-change:transform;contain:layout paint;}
.product-img{background:#eaf1f6;}
.product-img img{display:block;width:100%;height:100%;object-fit:cover;}
.chat-window{min-height:120px!important;max-height:220px!important;}
.chat-form textarea{min-height:62px!important;max-height:92px!important;}
@media(max-width:760px){
  .content{padding:14px 12px;width:100%;max-width:100vw;}
  .home-head,.category-tabs,.section-title,.grid,.card{max-width:calc(100vw - 24px);}
  .compact-home-head{min-height:auto;padding:18px;text-align:left;}
  .compact-home-head h1{font-size:25px;}
  .search-form{max-width:100%;}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bottom-nav{bottom:calc(8px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;height:72px!important;}
}
@media(max-width:420px){
  .simple-brand b{font-size:18px;}
  .topbar{min-height:56px;padding:10px 12px;}
  .grid{gap:10px;}
  .product-img{height:138px;}
  .bottom-nav{left:50vw!important;}
}

/* v8 mobile comfort fixes: fixed bottom nav, smaller chat input, balanced cards */
:root{--mobile-nav-bottom:10px;--bottom-nav-height:72px;}
html,body{margin:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;}
body{touch-action:pan-y;background:#f6f7fb;}
.site-shell{width:100%!important;min-height:100dvh!important;max-width:100vw!important;overflow-x:hidden!important;padding-bottom:calc(var(--bottom-nav-height) + 34px + env(safe-area-inset-bottom))!important;}
.clean-topbar{position:sticky!important;top:0!important;left:0!important;right:0!important;z-index:60!important;}
.content{width:100%!important;margin-left:auto!important;margin-right:auto!important;overflow-x:hidden!important;}
.home-head{width:100%;}
.search-form input{min-width:0;}
.category-tabs{scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.category-tabs::-webkit-scrollbar{display:none;}
.bottom-nav,.bottom-nav-five{position:fixed!important;left:50%!important;right:auto!important;bottom:calc(var(--mobile-nav-bottom) + env(safe-area-inset-bottom))!important;transform:translate3d(-50%,0,0)!important;width:min(760px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:var(--bottom-nav-height)!important;z-index:9999!important;margin:0!important;backface-visibility:hidden!important;-webkit-transform:translate3d(-50%,0,0)!important;contain:layout paint!important;}
.bottom-nav a{-webkit-tap-highlight-color:transparent;}
.chat-card{max-width:680px!important;padding:14px!important;}
.chat-head{padding-bottom:10px!important;margin-bottom:10px!important;}
.chat-window{min-height:112px!important;max-height:190px!important;padding:10px!important;gap:8px!important;border-radius:14px!important;}
.bubble{max-width:74%!important;padding:8px 10px!important;border-radius:14px!important;font-size:13px!important;line-height:1.45!important;}
.bubble b{font-size:13px!important;margin-bottom:2px!important;}
.bubble small{font-size:11px!important;margin-top:3px!important;}
.bubble img,.chat-img{max-width:130px!important;}
.chat-form{margin-top:10px!important;padding-top:10px!important;}
.chat-form textarea{height:48px!important;min-height:48px!important;max-height:72px!important;padding:10px 12px!important;font-size:14px!important;line-height:1.35!important;border-radius:14px!important;resize:none!important;}
.chat-actions{grid-template-columns:minmax(0,1fr) 84px!important;gap:8px!important;}
.chat-actions input[type=file]{height:46px!important;min-height:46px!important;padding:10px 12px!important;border-radius:14px!important;}
.chat-actions .btn{min-height:46px!important;border-radius:14px!important;}
@media(max-width:760px){
  :root{--bottom-nav-height:72px;--mobile-nav-bottom:8px;}
  .topbar{min-height:54px!important;padding:10px 12px!important;}
  .simple-brand b{font-size:18px!important;line-height:1.2!important;}
  .content{padding:12px!important;max-width:100vw!important;}
  .home-head,.category-tabs,.section-title,.grid,.card{max-width:calc(100vw - 24px)!important;}
  .compact-home-head{display:block!important;padding:18px!important;border-radius:22px!important;margin:10px auto 16px!important;}
  .compact-home-head h1{font-size:26px!important;line-height:1.18!important;margin-bottom:14px!important;}
  .search-form{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;gap:8px!important;margin-top:0!important;}
  .search-form input{height:48px!important;min-height:48px!important;line-height:48px!important;border-radius:16px!important;font-size:15px!important;}
  .search-form .btn{height:48px!important;min-height:48px!important;border-radius:16px!important;font-size:15px!important;padding:0 12px!important;}
  .category-tabs{max-width:calc(100vw - 24px)!important;margin:0 auto 18px!important;gap:8px!important;overflow-x:auto!important;padding:0 0 2px!important;}
  .category-tabs a{min-height:38px!important;padding:7px 13px!important;font-size:14px!important;}
  .section-title{margin:18px auto 12px!important;}
  .section-title h2{font-size:22px!important;}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0 auto!important;}
  .product-card{border-radius:18px!important;min-width:0!important;}
  .product-img{height:clamp(132px,32vw,170px)!important;}
  .product-body{padding:10px!important;gap:8px!important;}
  .category-badge{font-size:11px!important;padding:4px 8px!important;max-width:100%;white-space:normal;line-height:1.2;}
  .product-title{font-size:14px!important;line-height:1.25!important;min-height:36px!important;}
  .price-row{align-items:flex-start!important;flex-direction:column!important;gap:2px!important;}
  .price{font-size:18px!important;}
  .sales{font-size:12px!important;}
  .product-desc{font-size:12px!important;line-height:1.35!important;min-height:34px!important;}
  .product-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;}
  .product-actions .btn,.product-actions .btn-outline{width:100%!important;min-height:38px!important;border-radius:13px!important;font-size:12px!important;padding:8px 6px!important;}
  .bottom-nav,.bottom-nav-five{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;height:72px!important;border-radius:24px!important;padding:7px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;}
  .bottom-nav a{font-size:11px!important;gap:2px!important;border-radius:17px!important;}
  .bottom-nav a span{font-size:15px!important;}
  .bottom-nav em{top:6px!important;right:16%!important;}
  .chat-card{max-width:calc(100vw - 24px)!important;padding:12px!important;border-radius:20px!important;}
  .chat-head{align-items:flex-start!important;gap:8px!important;}
  .chat-head b{font-size:16px!important;}
  .chat-head .muted{font-size:12px!important;display:block!important;}
  .chat-window{min-height:105px!important;max-height:168px!important;padding:9px!important;}
  .bubble{max-width:82%!important;padding:8px 9px!important;font-size:13px!important;}
  .chat-form textarea{height:44px!important;min-height:44px!important;max-height:64px!important;font-size:13px!important;padding:9px 10px!important;}
  .chat-actions{grid-template-columns:minmax(0,1fr) 76px!important;gap:7px!important;}
  .chat-actions input[type=file]{height:42px!important;min-height:42px!important;padding:8px 10px!important;font-size:12px!important;}
  .chat-actions .btn{height:42px!important;min-height:42px!important;padding:0 10px!important;}
}
@media(max-width:380px){
  .simple-brand b{font-size:17px!important;}
  .compact-home-head h1{font-size:24px!important;}
  .search-form{grid-template-columns:minmax(0,1fr) 84px!important;}
  .grid{gap:8px!important;}
  .product-img{height:126px!important;}
  .product-body{padding:9px!important;}
  .bottom-nav,.bottom-nav-five{width:calc(100vw - 14px)!important;}
  .bottom-nav a{font-size:10px!important;}
}

/* v9 merchant onboarding / store distribution */
.profile-entry-card,.shop-rule-card{max-width:960px;margin:0 auto 16px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.store-hero{max-width:960px;margin:8px auto 18px;display:flex;align-items:center;gap:16px}.store-hero h1{margin:6px 0 4px}.store-avatar{width:72px;height:72px;flex:0 0 72px}.mini-product-img{width:58px;height:58px;border-radius:14px;object-fit:cover;border:1px solid #e9edf4;background:#fff}.distribution-row{grid-template-columns:auto 58px minmax(0,1fr)!important;cursor:pointer}.distribution-row input{align-self:center}.summary-box #distributedCount{font-size:20px}.merchant-action-tile span{line-height:1.45}.merchant-stats .stat b{word-break:break-word}@media(max-width:560px){.profile-actions{display:grid;grid-template-columns:1fr}.profile-actions .btn,.profile-actions .btn-outline{width:100%}.store-hero{align-items:flex-start}.store-avatar{width:58px;height:58px;flex-basis:58px}.distribution-row{grid-template-columns:auto 50px minmax(0,1fr)!important}.mini-product-img{width:50px;height:50px}}

/* v10 merchant recruitment / store info / product inquiry */
.store-banner{max-width:960px;margin:8px auto 12px;border-radius:24px;overflow:hidden;border:1px solid #eadfae;box-shadow:0 12px 30px rgba(76,53,5,.08);background:#fff}.store-banner img{display:block;width:100%;height:clamp(120px,28vw,240px);object-fit:cover}.enhanced-store-hero{align-items:flex-start}.store-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.store-meta-row span{display:inline-flex;border:1px solid #eadfae;background:#fffaf0;border-radius:999px;padding:6px 10px;color:#75540c;font-size:13px}.store-notice{max-width:960px;margin:0 auto 16px;line-height:1.7}.stacked-actions{display:grid;grid-template-columns:1fr;gap:8px}.inquiry-product-card{display:flex;align-items:center;gap:12px}.inquiry-product-card .mini-product-img{width:64px;height:64px;flex:0 0 64px}.store-message-panel{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px}.merchant-product-list{max-width:960px;margin:0 auto;display:grid;gap:14px}.merchant-product-edit{margin-bottom:0}.merchant-product-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tile-badge{display:inline-flex;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;align-items:center;justify-content:center;margin-left:6px;padding:0 6px;font-style:normal}.wide-thumb{width:96px!important;height:58px!important}.chat-window .bubble img{max-width:150px;border-radius:10px;margin-top:6px}.bottom-nav a em{z-index:2}@media(max-width:760px){.store-banner,.store-notice,.store-message-panel,.merchant-product-list{max-width:calc(100vw - 24px)!important}.store-meta-row span{font-size:12px}.inquiry-product-card{align-items:flex-start}.store-message-panel{grid-template-columns:1fr}.merchant-product-head{align-items:flex-start}.wide-thumb{width:88px!important;height:52px!important}}

/* v11 direct product consultation: no customer info fields, chat-first entry */
.direct-chat-card{max-width:760px!important;}
.chat-direct-tip{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #f0d46a;background:#fff8dc;border-radius:16px;margin-bottom:12px;line-height:1.6;}
.chat-direct-tip b{white-space:nowrap;color:#7c5300;}
.chat-direct-tip span{color:#6b7280;}
.empty-chat-window{min-height:96px!important;}
.direct-chat-form textarea{min-height:68px!important;}
.chat-actions.single-send{display:flex!important;justify-content:flex-end!important;align-items:center!important;grid-template-columns:none!important;}
.chat-actions.single-send .btn{min-width:126px;}
@media(max-width:760px){.chat-direct-tip{display:block}.chat-direct-tip b{display:block;margin-bottom:4px}.chat-actions.single-send .btn{width:100%;}}

/* v18 Bluville branding, homepage search, galleries, and merchant returns */
.bluville-topbar{justify-content:space-between;gap:16px;max-width:none}.brand-logo-img{width:44px;height:44px;border-radius:14px;object-fit:cover;box-shadow:0 8px 18px rgba(2,132,199,.18);background:#0ea5e9}.top-search{display:flex;align-items:center;gap:8px;width:min(460px,48vw)}.top-search input{height:44px!important;min-height:44px!important;line-height:44px!important;border-radius:999px!important;background:#f8fafc!important}.top-search .btn{min-height:44px;border-radius:999px}.home-hero{max-width:960px;margin:12px auto 18px;background:radial-gradient(circle at 12% 20%,#e0f2fe 0,#fff 42%,#f8fbff 100%);border:1px solid #dbeafe;border-radius:30px;padding:28px;display:grid;grid-template-columns:minmax(0,1.25fr) 260px;gap:24px;align-items:center;box-shadow:0 18px 46px rgba(14,165,233,.12)}.hero-copy h1{font-size:42px;line-height:1.08;margin:10px 0 12px;color:#0f172a;letter-spacing:-.03em}.hero-copy p{font-size:16px;line-height:1.75;margin:0 0 16px}.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#075985;font-weight:800}.hero-kicker img{width:24px;height:24px;border-radius:8px;object-fit:cover}.hero-search{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px;margin:16px 0}.hero-search input{height:56px!important;min-height:56px!important;line-height:56px!important;border-radius:18px!important;font-size:16px!important}.hero-search .btn{height:56px;border-radius:18px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-logo-card{background:linear-gradient(180deg,#0ea5e9,#0284c7);color:#fff;border-radius:28px;padding:22px;text-align:center;box-shadow:0 20px 50px rgba(2,132,199,.25)}.hero-logo-card img{width:150px;height:150px;object-fit:cover;border-radius:34px;background:#0ea5e9;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.hero-logo-card b{display:block;font-size:28px;margin-top:12px}.hero-logo-card span{display:block;color:#e0f2fe;font-size:13px;margin-top:6px}.product-gallery-block{min-width:0}.gallery-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.gallery-thumbs button{padding:0;border:2px solid #e5e7eb;background:#fff;border-radius:14px;overflow:hidden;cursor:pointer;height:72px}.gallery-thumbs button:hover{border-color:#0ea5e9}.gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}.merchant-stats-wide{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.principal-commission-row{display:grid;grid-template-columns:repeat(3,auto 1fr);gap:8px 12px;align-items:center;margin-top:12px;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #e5e7eb}.principal-commission-row span{color:#64748b}.principal-commission-row b{color:#b45309}.small-note{font-size:13px}.brand .brand-logo-img+span small{font-size:11px}.home-head.compact-home-head{display:none}@media(max-width:820px){.home-hero{grid-template-columns:1fr;padding:22px}.hero-logo-card{display:none}.hero-copy h1{font-size:34px}.top-search{width:100%;order:2;flex-basis:100%}.bluville-topbar{flex-wrap:wrap}.product-detail-card{grid-template-columns:1fr}.detail-img{height:320px}.principal-commission-row{grid-template-columns:1fr 1fr}}@media(max-width:560px){.brand-logo-img{width:38px;height:38px}.brand b{font-size:18px}.brand small{display:none}.top-search{gap:6px}.top-search input{height:42px!important;min-height:42px!important;line-height:42px!important}.top-search .btn{min-height:42px;padding:9px 12px}.home-hero{border-radius:22px;padding:18px}.hero-copy h1{font-size:28px}.hero-search{grid-template-columns:1fr}.hero-search .btn{width:100%}.gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}.merchant-stats-wide{grid-template-columns:1fr}.principal-commission-row{grid-template-columns:1fr}.content{padding-top:12px}}
.product-variant-field{margin:8px 0}.product-variant-field label{font-size:12px;color:#777}.product-variant-field select{width:100%;padding:9px 10px;border:1px solid #d8c075;border-radius:10px;background:#fff;color:#111}
.store-link-card{max-width:960px;margin:0 auto 16px}.store-link-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.store-link-head h3{margin:0 0 5px}.copy-link-row{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:10px;align-items:center}.copy-link-input{font-weight:700;color:#111827;background:#fffdf7!important}.admin-store-link-input{min-width:220px!important;height:38px!important;min-height:38px!important;line-height:38px!important;border-radius:10px!important;font-size:12px!important;padding:0 10px!important}.admin-store-link-actions{display:flex;gap:6px;margin-top:6px}.small-btn{min-height:32px!important;padding:7px 10px!important;border-radius:10px!important;font-size:12px!important}@media(max-width:640px){.store-link-head{align-items:flex-start;flex-direction:column}.copy-link-row{grid-template-columns:1fr}.copy-link-row .btn{width:100%}}
