:root{
 --bg:#090a0e;--panel:#11131a;--panel2:#171a23;--text:#f6f7fb;--muted:#8b91a3;
 --line:#252936;--violet:#8b6cff;--blue:#5f8cff;--green:#47db8a;--shadow:0 22px 80px rgba(0,0,0,.42)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:
radial-gradient(circle at 50% -10%,rgba(101,72,238,.20),transparent 35%),var(--bg);
color:var(--text);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}.shell{width:min(1180px,calc(100% - 36px));margin:auto}
.topbar{position:sticky;top:0;z-index:50;background:rgba(9,10,14,.76);border-bottom:1px solid rgba(255,255,255,.06);backdrop-filter:blur(20px)}
.nav{height:70px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.brandmark{width:34px;height:34px;border-radius:10px;display:inline-grid;place-items:center;background:linear-gradient(145deg,var(--violet),var(--blue));font-weight:950;box-shadow:0 8px 26px rgba(103,91,255,.28)}
.brandmark.big{width:48px;height:48px;border-radius:14px;font-size:22px}.brandword{font-size:19px;font-weight:950;letter-spacing:1.7px}
.desktop-nav{display:flex;gap:5px}.navlink,.soft,.back{border:1px solid transparent;background:transparent;color:#c5cad6;border-radius:11px;padding:9px 12px;cursor:pointer}
.navlink:hover,.soft:hover{background:#fff08}.nav-actions{margin-left:auto;display:flex;gap:9px}.soft{border-color:var(--line);background:#11141b}
.avatar-btn,.primary{border:0;color:white;background:linear-gradient(135deg,var(--violet),var(--blue));font-weight:800;border-radius:11px;padding:10px 15px;cursor:pointer}
.hero{padding:88px 0 62px;text-align:center}.hero-copy{max-width:830px;margin:auto}.tag{font-size:11px;font-weight:900;letter-spacing:1.35px;border:1px solid rgba(139,108,255,.35);background:rgba(139,108,255,.09);color:#b9a9ff;padding:7px 10px;border-radius:99px}
.hero h1{font-size:clamp(45px,7.2vw,82px);line-height:.94;letter-spacing:-4.5px;margin:22px 0 18px}.hero h1 span{background:linear-gradient(110deg,#fff,#a796ff 58%,#76a1ff);-webkit-background-clip:text;color:transparent}
.hero-copy p{max-width:620px;margin:auto;color:var(--muted);font-size:18px}
.searchbox{width:min(820px,100%);margin:34px auto 0;background:#f5f7fb;border-radius:18px;padding:7px;display:flex;align-items:center;box-shadow:var(--shadow)}
.searchicon{color:#676d7a;font-size:25px;padding-left:12px}.searchbox input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#111622;padding:14px 11px;font-size:17px}
.searchbox button{border:0;background:#111522;color:white;border-radius:12px;padding:14px 20px;font-weight:850;cursor:pointer}
.quick{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}.quick button{border:1px solid var(--line);background:#ffffff06;color:#aeb4c2;border-radius:99px;padding:7px 11px;cursor:pointer}
.block,.search-results{padding:28px 0 45px}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.section-title small{color:#797f91;letter-spacing:1.5px;font-size:10px;font-weight:900}.section-title h2{font-size:27px;letter-spacing:-.7px;margin:3px 0 0}.muted{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{position:relative;border:1px solid var(--line);background:linear-gradient(180deg,#141720,#0f1117);border-radius:20px;overflow:hidden;transition:.2s transform,.2s border-color}
.card:hover{transform:translateY(-2px);border-color:#3b4151}.visual{height:210px;display:grid;place-items:center;background:#f5f6f8;overflow:hidden}.visual img{width:100%;height:100%;object-fit:contain;padding:14px;}.visual.image-error{position:relative}.visual.image-error:after{content:'Фото недоступно';position:absolute;color:#8b91a3;font-size:13px}.visual.image-error img{opacity:0}
.card-body{padding:16px}.category{font-size:10px;color:#777e8f;letter-spacing:1px;text-transform:uppercase;font-weight:800}.card h3{font-size:17px;margin:7px 0 4px}.from{color:var(--muted);font-size:12px}.price{font-size:24px;font-weight:950;letter-spacing:-.7px;margin-top:13px}.save{color:var(--green);font-size:12px;font-weight:800}
.card-actions{display:flex;gap:8px;margin-top:14px}.card-actions button{flex:1}.heart{position:absolute;right:12px;top:12px;z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.13);background:rgba(8,10,14,.78);color:white;font-size:18px;cursor:pointer}
.heart.on{color:#ff638a}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:24px 0 82px}.benefits article{border-top:1px solid var(--line);padding:24px 6px}
.benefits span{color:#6e7486;font-weight:900}.benefits h3{font-size:19px;margin:12px 0 7px}.benefits p{margin:0;color:var(--muted)}
.page{padding:48px 0 80px;min-height:72vh}.empty{border:1px dashed #303544;border-radius:24px;text-align:center;padding:70px 20px;color:var(--muted)}.empty>div{font-size:48px}.empty h3{color:white;margin-bottom:5px}
.product-head{display:grid;grid-template-columns:.8fr 1.2fr;gap:25px;align-items:stretch}.product-big-visual{min-height:390px;border:1px solid var(--line);border-radius:26px;display:grid;place-items:center;background:#f5f6f8;overflow:hidden}.product-big-visual img{width:100%;height:390px;object-fit:contain;padding:24px}
.product-info{padding:18px 4px}.product-info h1{font-size:clamp(34px,5vw,56px);line-height:1;margin:8px 0 15px;letter-spacing:-2px}.bestline{display:flex;align-items:end;gap:12px;margin:28px 0}.bestline strong{font-size:34px}.bestline span{color:var(--green);font-weight:800}
.offers{margin-top:28px;border:1px solid var(--line);border-radius:22px;overflow:hidden}.offer{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line);background:#10131a}.offer:last-child{border:0}.offer b{font-size:16px}.offer-meta{color:var(--muted);font-size:12px}.offer-price{font-size:19px;font-weight:900}.offer.best .offer-price{color:var(--green)}
footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between}.footer-inner div{display:flex;gap:9px}.footer-inner b{color:white}
.sheet-wrap{position:fixed;inset:0;z-index:100;display:none}.sheet-wrap.open{display:block}.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}
.sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(450px,calc(100% - 28px));background:#12151d;border:1px solid var(--line);border-radius:25px;padding:27px;box-shadow:var(--shadow)}
.sheet-close{position:absolute;right:17px;top:14px;border:0;background:none;color:#8e95a7;font-size:27px;cursor:pointer}.sheet h2{font-size:27px;margin:17px 0 5px}.sheet p{color:var(--muted);margin-top:0}
.provider{width:100%;border:1px solid #d9dde5;background:white;color:#11151f;border-radius:13px;padding:13px;margin:5px 0;font-weight:850;cursor:pointer}.dark-provider{background:#050506;color:white;border-color:#292b31}
.divider{display:flex;align-items:center;gap:10px;color:#72798b;margin:10px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.phone-row{display:flex;gap:8px;margin-top:8px}.phone-row input{min-width:0;flex:1;background:#0b0e14;border:1px solid var(--line);border-radius:12px;padding:13px;color:white;outline:0}
.sheet small{display:block;color:#737a8d;margin-top:10px}.back{border-color:var(--line);background:#11141b;margin-bottom:22px}
#toast{position:fixed;right:18px;bottom:18px;z-index:150;display:grid;gap:8px}.toast{background:#f5f7fb;color:#11151d;border-radius:12px;padding:11px 14px;box-shadow:var(--shadow);font-weight:750}
@media(max-width:850px){.cards{grid-template-columns:repeat(2,1fr)}.benefits{grid-template-columns:1fr}.product-head{grid-template-columns:1fr}.product-big-visual{min-height:280px}.desktop-nav{display:none}}
@media(max-width:560px){
 .shell{width:min(100% - 24px,1180px)}.nav{height:62px}.brandword{font-size:17px}.install{display:none}.hero{padding:55px 0 38px}.hero h1{letter-spacing:-2.6px}.hero-copy p{font-size:15px}
 .searchbox{border-radius:15px}.searchicon{display:none}.searchbox input{font-size:15px;padding-left:10px}.searchbox button{padding:13px 14px}.cards{grid-template-columns:1fr 1fr;gap:9px}
 .visual{height:145px}.visual img{padding:9px}.card-body{padding:12px}.card h3{font-size:14px;min-height:40px}.price{font-size:19px}.card-actions{display:block}.card-actions .soft{display:none}
 .section-title h2{font-size:23px}.benefits{padding-bottom:50px}.product-big-visual{min-height:240px;font-size:94px}.product-info h1{font-size:36px}
 .offer{grid-template-columns:1fr auto;gap:8px 14px}.offer .primary{grid-column:1/-1}.footer-inner{display:block}.phone-row{display:block}.phone-row input,.phone-row button{width:100%;margin:4px 0}
}


.search-wrap{position:relative;width:min(820px,100%);margin:34px auto 0}
.search-wrap .searchbox{width:100%;margin:0}
.suggestions{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:40;background:#11141b;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);text-align:left}
.suggestion{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:#11141b;color:white;cursor:pointer;text-align:left}
.suggestion:last-child{border-bottom:0}.suggestion:hover{background:#181c26}
.suggestion img{width:48px;height:48px;border-radius:9px;object-fit:contain;background:#f5f6f8}
.suggestion span{display:flex;flex-direction:column;min-width:0}.suggestion b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.suggestion small{color:var(--muted);margin-top:2px}

.card .from{min-height:18px}.card .from:first-letter{color:var(--green)}

.categories-block{padding:0 0 8px}
.category-chips{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.category-chip{border:1px solid var(--line);background:#10131a;color:#aeb4c2;border-radius:999px;padding:9px 14px;cursor:pointer;transition:.18s}
.category-chip:hover{background:#171b24;color:white}
.category-chip.active{color:white;border-color:#6e63ff;background:linear-gradient(135deg,rgba(139,108,255,.22),rgba(95,140,255,.15))}
.catalog-loading{grid-column:1/-1;border:1px dashed var(--line);border-radius:20px;padding:55px;text-align:center;color:var(--muted)}
.catalog-error{min-height:230px}
@media(max-width:560px){
  .categories-block{padding-top:10px}
  .category-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .category-chips::-webkit-scrollbar{display:none}
  .category-chip{white-space:nowrap}
}

.visual img{display:block;opacity:1;transition:opacity .18s}
.product-big-visual.image-error:after{content:'Фото временно недоступно';color:#8b91a3;font-size:14px}

.visual img,.product-big-visual img{background:white}

.visual{background:#fff}.product-big-visual{background:#fff}

.offer a.primary{white-space:nowrap}
@media(max-width:560px){.offer a.primary{width:100%}}

.catalog-filters{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 8px;align-items:end}
.catalog-filters label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}
.catalog-filters select{background:#10131a;color:white;border:1px solid var(--line);border-radius:11px;padding:10px 12px;min-width:180px}
.check-filter{flex-direction:row!important;align-items:center!important;padding:10px 0}
.check-filter input{accent-color:#7c5cff}
@media(max-width:560px){.catalog-filters{display:grid;grid-template-columns:1fr 1fr}.catalog-filters select{min-width:0;width:100%}.check-filter{grid-column:1/-1}}

.no-photo{display:grid;place-items:center;width:100%;height:100%;min-height:140px;background:#fff;color:#8b91a3;font-size:13px;text-align:center;padding:18px}

/* v38 audit fixes */
button,a,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #8b6cff;outline-offset:2px}
.card{min-width:0}.card h3{overflow-wrap:anywhere}.visual.image-error:after,.product-big-visual.image-error:after{content:'Фото временно недоступно'}
.save{color:var(--muted)}.save.verified{color:var(--green)}
.full{grid-column:1/-1}.suggestion-thumb{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:9px;overflow:hidden;background:#fff}.suggestion-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}.suggestion-thumb .no-photo{font-size:0;min-height:0;padding:0}.suggestion-thumb .no-photo:after{content:'—';font-size:16px;color:#8b91a3}
.offer a.primary{display:inline-block;text-decoration:none;text-align:center}.offer-price{min-width:120px;text-align:right}
.install.ready{border-color:#655cff;box-shadow:0 0 0 1px rgba(139,108,255,.2)}
@media(max-width:560px){.hero h1{font-size:clamp(40px,13vw,58px)}.hero{padding-top:44px}.card-actions .primary{width:100%}.offer-price{text-align:left;min-width:0}.product-info h1{overflow-wrap:anywhere}.bestline{align-items:flex-start;flex-direction:column;gap:4px}.bestline strong{font-size:30px}}
@media(max-width:380px){.cards{grid-template-columns:1fr}.visual{height:190px}.card h3{min-height:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.auth-sheet{max-height:min(760px,92vh);overflow:auto}
.security-note{display:grid;gap:5px;margin:15px 0;padding:12px 13px;border:1px solid rgba(69,210,134,.22);background:rgba(69,210,134,.07);border-radius:13px;font-size:12px;line-height:1.45}
.security-note span{color:#9ca5b9}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:14px 0;background:#0b0e14;border-radius:12px}
.auth-tab{border:0;background:transparent;color:#7e8799;padding:10px;border-radius:9px;font-weight:800;cursor:pointer}
.auth-tab.active{background:#202536;color:#fff}
.email-auth{display:grid;gap:8px}
.email-auth input{width:100%;background:#0b0e14;border:1px solid var(--line);border-radius:12px;padding:13px;color:white;outline:0}
.email-auth input:focus{border-color:#705cff}
.auth-policy{display:block;line-height:1.45;margin-top:14px!important;color:#737a8d!important}
.provider-disabled{opacity:.65}

.spotlight-section{margin:34px auto}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px}.section-heading h2,.submit-shop h2{margin:3px 0 0;font-size:clamp(24px,3vw,36px)}.section-sub{margin:6px 0 0;color:#8e97aa;font-size:14px}.deal-of-day{display:grid;grid-template-columns:minmax(240px,.9fr) 1.1fr;min-height:330px;border:1px solid var(--line);border-radius:26px;overflow:hidden;background:linear-gradient(135deg,#111626,#0b0e15)}.deal-visual{min-height:330px;background:#fff;display:grid;place-items:center;padding:26px}.deal-visual img{width:100%;height:100%;max-height:290px;object-fit:contain}.deal-copy{padding:34px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.deal-copy h3{font-size:clamp(28px,4vw,44px);line-height:1.05;margin:8px 0 12px}.deal-copy p{color:#949daf}.deal-pill,.home-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(111,86,255,.14);border:1px solid rgba(111,86,255,.25);font-size:12px;font-weight:800}.deal-price{font-size:30px;font-weight:900;margin:0 0 8px}.spotlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-product-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#0e121b}.home-badge{position:absolute;left:12px;top:12px;z-index:2;background:#11182a}.home-product-image{height:180px;background:white;display:grid;place-items:center;padding:18px}.home-product-image img{width:100%;height:100%;object-fit:contain}.home-product-body{padding:16px}.home-product-body h3{font-size:18px;line-height:1.15;margin:6px 0 10px}.home-price{font-size:22px;font-weight:900}.home-meta{font-size:12px;color:#8d96a8;margin:4px 0 12px}.home-product-body .primary{width:100%}.mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mini-product{display:grid;gap:4px;text-align:left;border:1px solid var(--line);background:#0c1018;color:#fff;padding:15px;border-radius:15px;cursor:pointer}.mini-product span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#7885a3}.mini-product b{font-size:15px}.mini-product small{color:#9da5b8}.submit-shop{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:36px auto;padding:26px;border:1px solid rgba(108,84,255,.28);background:linear-gradient(135deg,rgba(104,80,255,.12),rgba(47,76,150,.08));border-radius:22px}.submit-shop p{max-width:680px;color:#9da5b8;margin-bottom:0}.submit-shop-btn{white-space:nowrap;text-decoration:none}@media(max-width:950px){.spotlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.deal-of-day{grid-template-columns:1fr}.deal-visual{min-height:250px}.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.spotlight-grid,.mini-grid{grid-template-columns:1fr}.submit-shop{align-items:flex-start;flex-direction:column}.submit-shop-btn{width:100%;text-align:center}.deal-copy{padding:22px}.home-product-image{height:210px}}


/* v47 — larger premium home */
.spotlight-section{margin:64px auto}
.section-heading{margin-bottom:22px}
.section-heading small,.submit-shop small{font-size:11px;letter-spacing:.16em;color:#8793b3;font-weight:900}
.section-heading h2,.submit-shop h2{font-size:clamp(30px,3vw,44px);letter-spacing:-1.2px}
.section-sub{font-size:15px;max-width:680px;line-height:1.6}

.deal-of-day{
  min-height:430px;
  grid-template-columns:minmax(380px,1fr) 1.15fr;
  border-radius:30px;
  background:
    radial-gradient(circle at 82% 20%,rgba(111,86,255,.20),transparent 30%),
    linear-gradient(135deg,#121726,#0c1018);
  box-shadow:0 30px 90px rgba(0,0,0,.28)
}
.deal-visual{min-height:430px;padding:44px}
.deal-visual img{max-height:350px}
.deal-copy{padding:54px}
.deal-copy h3{font-size:clamp(38px,4.5vw,60px);margin:12px 0 18px;letter-spacing:-2px}
.deal-price{font-size:clamp(34px,4vw,48px);letter-spacing:-1.5px;margin-bottom:10px}
.deal-copy p{font-size:15px;margin:0 0 22px}
.deal-copy .primary{padding:14px 20px;font-size:15px}
.deal-pill{padding:8px 12px}

.spotlight-grid,.mini-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.home-product-card{
  border-radius:24px;
  background:linear-gradient(180deg,#141923,#0d1017);
  box-shadow:0 14px 40px rgba(0,0,0,.16);
  transition:transform .18s,border-color .18s
}
.home-product-card:hover{transform:translateY(-3px);border-color:#3b4255}
.home-product-image{height:270px;padding:28px}
.home-product-body{padding:20px}
.home-product-body h3{font-size:21px;min-height:50px;margin:8px 0 14px}
.home-price{font-size:28px;letter-spacing:-.7px}
.home-meta{font-size:13px;margin:6px 0 16px}
.home-badge{left:14px;top:14px;padding:8px 11px}

.submit-shop{
  margin:64px auto 72px;
  padding:34px 38px;
  border-radius:26px;
  background:
    radial-gradient(circle at 90% 30%,rgba(111,86,255,.18),transparent 26%),
    linear-gradient(135deg,rgba(104,80,255,.12),rgba(25,31,51,.68))
}
.submit-shop h2{margin-top:7px}
.submit-shop p{font-size:15px;line-height:1.6}
.submit-shop-btn{padding:14px 20px}

@media(max-width:950px){
  .deal-of-day{grid-template-columns:1fr;min-height:0}
  .deal-visual{min-height:340px}
  .deal-copy{padding:34px}
  .spotlight-grid,.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .spotlight-section{margin:42px auto}
  .spotlight-grid,.mini-grid{grid-template-columns:1fr}
  .deal-visual{min-height:280px;padding:26px}
  .deal-copy{padding:24px}
  .deal-copy h3{font-size:36px}
  .home-product-image{height:240px}
  .submit-shop{margin:46px auto 56px;padding:24px}
}


/* ==== Merci Tools v48 HARD REDESIGN ==== */
body .spotlight-section{
  margin:80px auto !important;
}
body .section-heading{
  margin-bottom:26px !important;
}
body .section-heading h2,
body .submit-shop h2{
  font-size:clamp(34px,4vw,52px) !important;
  line-height:1.02 !important;
  letter-spacing:-1.6px !important;
}
body #dealOfDay.deal-of-day{
  min-height:520px !important;
  grid-template-columns:1.05fr 1fr !important;
  border-radius:34px !important;
  border:1px solid rgba(128,104,255,.28) !important;
  background:
    radial-gradient(circle at 82% 20%,rgba(111,86,255,.30),transparent 32%),
    radial-gradient(circle at 10% 80%,rgba(58,126,255,.16),transparent 28%),
    linear-gradient(135deg,#151a2a,#0a0d14) !important;
  box-shadow:0 36px 100px rgba(0,0,0,.38) !important;
}
body #dealOfDay .deal-visual{
  min-height:520px !important;
  padding:56px !important;
}
body #dealOfDay .deal-visual img{
  max-height:410px !important;
}
body #dealOfDay .deal-copy{
  padding:64px !important;
}
body #dealOfDay .deal-copy h3{
  font-size:clamp(44px,5vw,72px) !important;
  letter-spacing:-2.4px !important;
}
body #dealOfDay .deal-price{
  font-size:clamp(38px,4vw,56px) !important;
}

body #bestDealsGrid.spotlight-grid,
body #newProductsGrid.mini-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:24px !important;
}
body #bestDealsGrid .home-product-card,
body #newProductsGrid .home-product-card{
  min-height:470px !important;
  border-radius:28px !important;
  overflow:hidden !important;
  background:linear-gradient(180deg,#161c29,#0d1017) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 20px 55px rgba(0,0,0,.22) !important;
}
body #bestDealsGrid .home-product-image,
body #newProductsGrid .home-product-image{
  height:300px !important;
  padding:34px !important;
}
body #bestDealsGrid .home-product-body,
body #newProductsGrid .home-product-body{
  padding:24px !important;
}
body #bestDealsGrid .home-product-body h3,
body #newProductsGrid .home-product-body h3{
  font-size:23px !important;
  line-height:1.15 !important;
  min-height:54px !important;
}
body #bestDealsGrid .home-price,
body #newProductsGrid .home-price{
  font-size:31px !important;
  margin-top:8px !important;
}

body .submit-shop{
  margin:80px auto 90px !important;
  padding:42px 46px !important;
  min-height:190px !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at 90% 20%,rgba(116,86,255,.28),transparent 32%),
    linear-gradient(135deg,#17152b,#0e1320) !important;
  border:1px solid rgba(120,98,255,.35) !important;
}
body .submit-shop-btn{
  padding:16px 24px !important;
  font-size:16px !important;
}

@media(max-width:1000px){
  body #dealOfDay.deal-of-day{grid-template-columns:1fr !important}
  body #dealOfDay .deal-visual{min-height:360px !important}
  body #bestDealsGrid.spotlight-grid,
  body #newProductsGrid.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:650px){
  body #bestDealsGrid.spotlight-grid,
  body #newProductsGrid.mini-grid{grid-template-columns:1fr !important}
  body #dealOfDay .deal-copy{padding:28px !important}
  body #dealOfDay .deal-visual{min-height:280px !important;padding:28px !important}
}


/* ==== Merci Tools v49: card overflow/layout fix ==== */
body #bestDealsGrid.spotlight-grid,
body #newProductsGrid.mini-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  gap:20px !important;
  align-items:stretch !important;
}

body #bestDealsGrid .home-product-card,
body #newProductsGrid .home-product-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:520px !important;
  overflow:hidden !important;
  border-radius:24px !important;
  position:relative !important;
}

body #bestDealsGrid .home-product-image,
body #newProductsGrid .home-product-image{
  position:relative !important;
  flex:0 0 300px !important;
  width:100% !important;
  height:300px !important;
  min-height:300px !important;
  max-height:300px !important;
  overflow:hidden !important;
  background:#fff !important;
  padding:28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

body #bestDealsGrid .home-product-image img,
body #newProductsGrid .home-product-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  overflow:hidden !important;
}

body #bestDealsGrid .home-product-body,
body #newProductsGrid .home-product-body{
  position:relative !important;
  z-index:3 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  padding:20px !important;
  display:flex !important;
  flex-direction:column !important;
  background:#0e121b !important;
  overflow:hidden !important;
}

body #bestDealsGrid .home-product-body .category,
body #newProductsGrid .home-product-body .category{
  display:block !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  margin:0 0 7px !important;
}

body #bestDealsGrid .home-product-body h3,
body #newProductsGrid .home-product-body h3{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  margin:0 0 12px !important;
  min-height:52px !important;
  max-height:52px !important;
  font-size:21px !important;
  line-height:1.24 !important;
}

body #bestDealsGrid .home-price,
body #newProductsGrid .home-price{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  margin:0 !important;
  font-size:27px !important;
  line-height:1.2 !important;
}

body #bestDealsGrid .home-meta,
body #newProductsGrid .home-meta{
  flex:0 0 auto !important;
  min-height:18px !important;
  margin:6px 0 16px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

body #bestDealsGrid .home-product-body .primary,
body #newProductsGrid .home-product-body .primary{
  margin-top:auto !important;
  width:100% !important;
  min-height:44px !important;
  flex:0 0 auto !important;
}

body #bestDealsGrid .home-badge,
body #newProductsGrid .home-badge{
  position:absolute !important;
  z-index:10 !important;
  top:12px !important;
  left:12px !important;
  right:auto !important;
  max-width:calc(100% - 24px) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* deal-of-day also gets strict containment */
body #dealOfDay{
  overflow:hidden !important;
}
body #dealOfDay .deal-visual{
  overflow:hidden !important;
}
body #dealOfDay .deal-visual img{
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
}
body #dealOfDay .deal-copy{
  min-width:0 !important;
  overflow:hidden !important;
}
body #dealOfDay .deal-copy h3{
  overflow-wrap:anywhere !important;
}

/* Safer responsive behavior */
@media(max-width:1100px){
  body #bestDealsGrid.spotlight-grid,
  body #newProductsGrid.mini-grid{
    grid-template-columns:repeat(2,minmax(260px,1fr)) !important;
  }
}
@media(max-width:640px){
  body #bestDealsGrid.spotlight-grid,
  body #newProductsGrid.mini-grid{
    grid-template-columns:1fr !important;
  }
  body #bestDealsGrid .home-product-image,
  body #newProductsGrid .home-product-image{
    flex-basis:260px !important;
    height:260px !important;
    min-height:260px !important;
    max-height:260px !important;
  }
  body #bestDealsGrid .home-product-card,
  body #newProductsGrid .home-product-card{
    min-height:480px !important;
  }
}


/* ==== Merci Tools v50: photos behind the card ==== */
body #bestDealsGrid .home-product-card.bg-card,
body #newProductsGrid .home-product-card.bg-card{
  position:relative !important;
  min-height:500px !important;
  overflow:hidden !important;
  background:#0d1118 !important;
  isolation:isolate !important;
}

body .bg-card .card-bg-image{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  transform:scale(1.03) !important;
  filter:saturate(.9) contrast(1.02) !important;
}

body .bg-card .card-bg-image.empty-bg{
  background:
    radial-gradient(circle at 40% 25%,rgba(100,88,255,.18),transparent 34%),
    linear-gradient(135deg,#1a2030,#0d1118) !important;
}

body .bg-card .card-bg-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:
    linear-gradient(180deg,rgba(7,10,16,.08) 0%,rgba(7,10,16,.25) 34%,rgba(7,10,16,.92) 68%,#0b0e14 100%) !important;
}

body .bg-card .home-badge{
  z-index:3 !important;
}

body .bg-card .home-product-body{
  position:relative !important;
  z-index:2 !important;
  margin-top:auto !important;
  min-height:225px !important;
  background:transparent !important;
  padding:250px 22px 22px !important;
  display:flex !important;
  flex-direction:column !important;
}

body .bg-card .home-product-body .category{
  color:#aeb8cf !important;
  text-shadow:0 1px 6px rgba(0,0,0,.65) !important;
}

body .bg-card .home-product-body h3,
body .bg-card .home-price,
body .bg-card .home-meta{
  text-shadow:0 2px 10px rgba(0,0,0,.72) !important;
}

body .bg-card .home-product-body h3{
  color:#fff !important;
}

body .bg-card .home-price{
  color:#fff !important;
}

body .bg-card .home-meta{
  color:#bbc3d6 !important;
}

/* Deal of day: photo is also behind the content */
body #dealOfDay.deal-of-day{
  position:relative !important;
  display:flex !important;
  min-height:520px !important;
  overflow:hidden !important;
  background:#0d1118 !important;
  isolation:isolate !important;
}

body #dealOfDay .deal-bg-image{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  transform:scale(1.02) !important;
}

body #dealOfDay .deal-bg-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:
    linear-gradient(90deg,rgba(7,10,16,.96) 0%,rgba(7,10,16,.82) 44%,rgba(7,10,16,.45) 72%,rgba(7,10,16,.18) 100%) !important;
}

body #dealOfDay .deal-copy{
  position:relative !important;
  z-index:2 !important;
  width:min(700px,72%) !important;
  min-height:520px !important;
  padding:60px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  background:transparent !important;
}

body #dealOfDay .deal-copy h3,
body #dealOfDay .deal-price,
body #dealOfDay .deal-copy p,
body #dealOfDay .category{
  text-shadow:0 3px 14px rgba(0,0,0,.72) !important;
}

@media(max-width:900px){
  body #dealOfDay .deal-bg-overlay{
    background:
      linear-gradient(180deg,rgba(7,10,16,.2) 0%,rgba(7,10,16,.48) 40%,rgba(7,10,16,.94) 72%,#0b0e14 100%) !important;
  }
  body #dealOfDay .deal-copy{
    width:100% !important;
    min-height:520px !important;
    padding:240px 28px 30px !important;
    justify-content:flex-end !important;
  }
}

@media(max-width:640px){
  body .bg-card .home-product-body{
    padding:220px 18px 18px !important;
  }
  body #dealOfDay .deal-copy{
    padding:220px 22px 24px !important;
  }
}


/* ==== v51: actual IMG behind card content ==== */
body .bg-card .card-bg-img{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center 28% !important;
  background:#f5f5f5 !important;
  transform:none !important;
  filter:none !important;
}

body .bg-card .card-bg-overlay{
  z-index:1 !important;
  background:
    linear-gradient(
      180deg,
      rgba(8,11,17,.08) 0%,
      rgba(8,11,17,.12) 33%,
      rgba(8,11,17,.62) 58%,
      rgba(8,11,17,.96) 74%,
      #0b0e14 100%
    ) !important;
}

body .bg-card .home-product-body{
  z-index:2 !important;
}

body .bg-card .home-badge{
  z-index:4 !important;
}

/* Deal of day real img layer */
body #dealOfDay .deal-bg-img{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:75% center !important;
  background:#f5f5f5 !important;
}

body #dealOfDay .deal-bg-overlay{
  z-index:1 !important;
  background:
    linear-gradient(
      90deg,
      #0b0e14 0%,
      rgba(11,14,20,.96) 36%,
      rgba(11,14,20,.72) 60%,
      rgba(11,14,20,.28) 100%
    ) !important;
}

body #dealOfDay .deal-copy{
  z-index:2 !important;
}

@media(max-width:900px){
  body #dealOfDay .deal-bg-img{
    object-position:center top !important;
  }
  body #dealOfDay .deal-bg-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(11,14,20,.08) 0%,
        rgba(11,14,20,.38) 45%,
        rgba(11,14,20,.94) 72%,
        #0b0e14 100%
      ) !important;
  }
}


/* ==== v52 stable photo cards ==== */
body #bestDealsGrid .home-product-card.stable-card,
body #newProductsGrid .home-product-card.stable-card{
  display:flex !important;
  flex-direction:column !important;
  min-height:500px !important;
  overflow:hidden !important;
  background:#0d1118 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:24px !important;
}

body .stable-card-media{
  position:relative !important;
  flex:0 0 270px !important;
  height:270px !important;
  min-height:270px !important;
  max-height:270px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#f7f7f7,#e9e9e9) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

body .stable-card-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:20px !important;
  position:relative !important;
  z-index:1 !important;
}

body .stable-card-media.media-failed::after{
  content:"Фото загружается";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#7e8799;
  font-size:13px;
  z-index:1;
}

body .stable-media-shade{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:40% !important;
  z-index:2 !important;
  pointer-events:none !important;
  background:linear-gradient(180deg,transparent,rgba(13,17,24,.72)) !important;
}

body .stable-card-media .home-badge{
  position:absolute !important;
  z-index:3 !important;
  top:12px !important;
  left:12px !important;
  max-width:calc(100% - 24px) !important;
}

body .stable-card .home-product-body{
  flex:1 1 auto !important;
  display:flex !important;
  flex-direction:column !important;
  padding:20px !important;
  background:#0d1118 !important;
}

body .stable-card .home-product-body .primary{
  margin-top:auto !important;
}

/* product of the day */
body #dealOfDay.deal-of-day{
  display:grid !important;
  grid-template-columns:1.05fr 1fr !important;
  min-height:430px !important;
  overflow:hidden !important;
  background:#0d1118 !important;
}

body #dealOfDay .stable-deal-media{
  position:relative !important;
  min-height:430px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#f7f7f7,#e9e9e9) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

body #dealOfDay .stable-deal-media img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:36px !important;
}

body #dealOfDay .stable-deal-media.media-failed::after{
  content:"Фото загружается";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#7e8799;
  font-size:14px;
}

body #dealOfDay .stable-deal-shade{
  position:absolute !important;
  inset:auto 0 0 0 !important;
  height:30% !important;
  background:linear-gradient(180deg,transparent,rgba(13,17,24,.35)) !important;
  pointer-events:none !important;
}

@media(max-width:900px){
  body #dealOfDay.deal-of-day{
    grid-template-columns:1fr !important;
  }
  body #dealOfDay .stable-deal-media{
    min-height:300px !important;
  }
}


/* ===== v53 premium storefront redesign ===== */
:root{
  --page-bg:#0a0b12;
  --panel:#10131d;
  --panel-2:#121827;
  --soft:#171c2b;
  --line-2:rgba(255,255,255,.08);
  --text-soft:#a7b0c4;
  --white-card:#f4f5f7;
  --teal:#15c0d6;
  --purple:#7b6dff;
}

body{
  background:
    radial-gradient(circle at 0% 15%, rgba(33,20,110,.35), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(31,112,255,.15), transparent 22%),
    linear-gradient(180deg,#090a10,#0d0f17 50%,#0a0b12);
}

.shell{max-width:1320px !important}

.premium-hero{margin:28px auto 28px}
.hero-grid{
  display:grid;
  grid-template-columns:1.65fr .85fr;
  gap:22px;
  align-items:stretch;
}
.hero-main{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line-2);
  border-radius:34px;
  padding:34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(123,109,255,.22), transparent 30%),
    linear-gradient(135deg,#101523 0%,#131827 55%,#101319 100%);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
.hero-main::before{
  content:"";
  position:absolute; inset:auto -80px -80px auto;
  width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle, rgba(21,192,214,.18), transparent 65%);
  pointer-events:none;
}
.hero-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  color:#d8ddff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.hero-main h1{
  margin:18px 0 10px;
  font-size:clamp(42px,6vw,86px);
  line-height:.95;
  letter-spacing:-3px;
}
.hero-main h1 span{
  color:#92a7ff;
}
.hero-main p{
  max-width:700px;
  margin:0 0 22px;
  color:var(--text-soft);
  font-size:17px;
  line-height:1.65;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.hero-cta{padding:14px 20px;font-size:15px}
.hero-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:26px;
}
.hero-pills span{
  display:inline-flex;
  padding:10px 14px;
  border-radius:14px;
  font-size:13px;
  color:#dde4ff;
  background:#0c111c;
  border:1px solid rgba(255,255,255,.06);
}
.hero-showcase{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.hero-side{
  border:1px solid var(--line-2);
  border-radius:34px;
  padding:22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(21,192,214,.16), transparent 30%),
    linear-gradient(180deg,#10131d,#0d1018);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
.side-label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  color:#b7c0d8;
  margin-bottom:12px;
}

.hero-deal-card > .premium-card{
  height:100%;
  min-height:100%;
}

.premium-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  color:#0e1220;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 34px rgba(0,0,0,.15);
  cursor:pointer;
}
.premium-card.compact{
  border-radius:20px;
}
.premium-card-media{
  position:relative;
  height:205px;
  min-height:205px;
  background:linear-gradient(180deg,#ffffff,#f0f2f6);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.premium-card.compact .premium-card-media{
  height:155px;
  min-height:155px;
}
.premium-card-media.noimg::after{
  content:"Фото загружается";
  color:#8f98ab;
  font-size:13px;
}
.premium-card-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:16px;
}
.premium-card-badge{
  position:absolute;
  left:12px;
  top:12px;
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}
.premium-card-body{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
}
.premium-card.compact .premium-card-body{
  padding:14px;
}
.premium-card-body h3{
  margin:0;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.5px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:46px;
}
.premium-card.compact .premium-card-body h3{
  font-size:16px;
  min-height:38px;
}
.premium-card-meta{
  color:#5c6479;
  font-size:13px;
}
.premium-price{
  margin-top:2px;
  font-size:32px;
  font-weight:900;
  letter-spacing:-1px;
}
.premium-card.compact .premium-price{
  font-size:22px;
}
.premium-card-actions{
  margin-top:auto;
  padding-top:8px;
}
.premium-card .primary{
  width:100%;
}

.section-heading-lg h2{
  font-size:clamp(30px,4vw,46px) !important;
  letter-spacing:-1.4px;
}

.category-showcase{
  margin:10px auto 42px;
}
.category-tiles{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.category-tile{
  display:flex;
  gap:14px;
  align-items:flex-start;
  text-align:left;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,#121727,#0f1420);
  border:1px solid var(--line-2);
  color:#fff;
  cursor:pointer;
  box-shadow:0 12px 34px rgba(0,0,0,.14);
}
.category-icon{
  width:58px;height:58px;border-radius:18px;
  display:grid;place-items:center;
  font-size:28px;
  background:linear-gradient(135deg,#ffffff,#e5ebff);
  color:#10131d;
  flex:0 0 58px;
}
.category-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.category-copy b{
  font-size:18px;
  line-height:1.15;
}
.category-copy small{
  color:#a7b0c4;
  line-height:1.45;
  font-size:13px;
}
.category-copy span{
  color:#d7e1ff;
  font-size:12px;
  font-weight:700;
  margin-top:3px;
}

/* refresh old sections to fit new style */
.spotlight-section{
  margin:52px auto !important;
}
#dealSection{
  display:none !important; /* old duplicate section hidden because hero has product of day */
}
#bestDealsGrid.spotlight-grid,
#newProductsGrid.mini-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
}
#bestDealsGrid .home-product-card,
#newProductsGrid .home-product-card{
  background:#fff !important;
  color:#111827 !important;
  border-radius:24px !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.15) !important;
}
#bestDealsGrid .stable-card-media,
#newProductsGrid .stable-card-media{
  background:linear-gradient(180deg,#ffffff,#f0f2f6) !important;
}
#bestDealsGrid .home-product-body,
#newProductsGrid .home-product-body{
  background:#fff !important;
}
#bestDealsGrid .home-product-body h3,
#newProductsGrid .home-product-body h3{
  color:#111827 !important;
}
#bestDealsGrid .home-price,
#newProductsGrid .home-price{
  color:#111827 !important;
}
#bestDealsGrid .home-meta,
#newProductsGrid .home-meta{
  color:#687083 !important;
}
#bestDealsGrid .home-product-body .category,
#newProductsGrid .home-product-body .category{
  color:#52607a !important;
  text-shadow:none !important;
}
#bestDealsGrid .home-badge,
#newProductsGrid .home-badge{
  background:#111827 !important;
  border-color:#111827 !important;
  color:#fff !important;
}

.submit-shop{
  background:linear-gradient(135deg,#121727,#0f1420) !important;
  border:1px solid var(--line-2) !important;
  border-radius:28px !important;
}
.submit-shop p{color:#a7b0c4 !important}

@media (max-width: 1100px){
  .hero-grid{grid-template-columns:1fr}
  .hero-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  #bestDealsGrid.spotlight-grid,
  #newProductsGrid.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width: 700px){
  .premium-hero{margin-top:18px}
  .hero-main,.hero-side{padding:20px;border-radius:26px}
  .hero-main h1{letter-spacing:-2px}
  .hero-showcase{grid-template-columns:1fr}
  .category-tiles{grid-template-columns:1fr}
  #bestDealsGrid.spotlight-grid,
  #newProductsGrid.mini-grid{grid-template-columns:1fr !important}
}


/* ===== v54 FINAL AD-READY STOREFRONT ===== */
.topbar{position:sticky;top:0;z-index:500;background:rgba(8,10,16,.78)!important;backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}
.nav{min-height:72px}.brandmark{box-shadow:0 0 0 1px rgba(255,255,255,.08),0 8px 30px rgba(112,88,255,.22)}
.premium-hero{margin-top:36px!important}.hero-main{padding:clamp(28px,4vw,52px)!important}.hero-main h1{font-size:clamp(48px,6.5vw,94px)!important;max-width:900px}.hero-main p{font-size:18px!important;max-width:760px!important}
.premium-search-wrap{position:relative;max-width:850px;margin:28px 0 12px}.premium-searchbox{background:#fff!important;border-radius:18px!important;padding:7px!important;box-shadow:0 18px 50px rgba(0,0,0,.28)}.premium-searchbox input{color:#111827!important;background:transparent!important;font-size:16px!important}.premium-searchbox input::placeholder{color:#8a93a7!important}.premium-searchbox #searchBtn{min-width:160px;border-radius:13px!important;background:linear-gradient(135deg,#745cff,#4e7cff)!important}
.hero-quick{justify-content:flex-start!important;margin:0 0 24px!important}.hero-quick button{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.08)!important}.hero-trust-row{display:flex;gap:10px;flex-wrap:wrap}.hero-trust-row span{font-size:12px;color:#bac5dc;background:#0d1220;border:1px solid rgba(255,255,255,.06);padding:9px 11px;border-radius:12px}
.hero-side{display:flex!important;flex-direction:column!important}.hero-deal-card{flex:1}.hero-deal-card .premium-card{height:100%!important}.hero-deal-card .premium-card-media{height:280px!important;min-height:280px!important}
.category-showcase{margin:54px auto!important}.category-tiles{gap:14px!important}.category-tile{position:relative;min-height:132px;transition:transform .18s ease,border-color .18s ease,background .18s ease}.category-tile:hover{transform:translateY(-3px);border-color:rgba(125,103,255,.42)}.category-tile.active{background:linear-gradient(135deg,rgba(117,91,255,.22),rgba(22,31,54,.94));border-color:#765dff;box-shadow:0 0 0 1px rgba(118,93,255,.2),0 18px 45px rgba(60,40,150,.18)}.category-arrow{margin-left:auto;font-size:22px;color:#818ba2;align-self:center}.category-tile.active .category-arrow{color:#fff}
.catalog-controls{margin:62px auto 18px!important;padding:24px;border-radius:24px;background:linear-gradient(180deg,rgba(18,23,39,.92),rgba(13,17,27,.92));border:1px solid rgba(255,255,255,.07)}.catalog-heading{margin-bottom:18px!important}.catalog-heading h2{font-size:36px!important}.premium-filters{display:flex!important;align-items:end!important;gap:12px!important;flex-wrap:wrap!important}.premium-filters label{min-width:210px}.premium-filters .check-filter{min-width:auto;padding-bottom:10px}
#popularGrid.cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:16px!important}.card{border-radius:22px!important;overflow:hidden!important;transition:transform .18s ease,border-color .18s ease}.card:hover{transform:translateY(-3px);border-color:rgba(116,92,255,.35)}
.partner-ready{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:70px auto 26px;padding:36px 40px;border-radius:28px;border:1px solid rgba(103,78,255,.32);background:radial-gradient(circle at 85% 15%,rgba(104,76,255,.25),transparent 30%),linear-gradient(135deg,#15142a,#0d1320)}.partner-copy{max-width:800px}.partner-copy small,.sponsored-head small{letter-spacing:.15em;color:#9ba8c4;font-weight:900}.partner-copy h2{font-size:clamp(30px,4vw,48px);margin:7px 0 10px}.partner-copy p{color:#aab4c8;line-height:1.65;margin:0}.partner-cta{white-space:nowrap;text-decoration:none;padding:15px 22px}
.sponsored-zone{margin:28px auto!important;padding:18px;border:1px solid rgba(255,255,255,.07);border-radius:22px;background:#0e121b}.sponsored-head{display:flex;justify-content:space-between;margin-bottom:12px}.sponsored-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sponsored-card{position:relative;display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#fff;background:#141925;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:16px}.sponsored-card small{color:#9ca7ba}.ad-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#ffc86b}.sponsored-offer{outline:1px solid rgba(255,190,80,.4)}
.submit-shop{margin-top:22px!important}.benefits article{border-radius:22px!important}
.auth-sheet{box-shadow:0 30px 90px rgba(0,0,0,.55)}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr!important}.partner-ready{align-items:flex-start;flex-direction:column}.partner-cta{width:100%;text-align:center}.sponsored-grid{grid-template-columns:1fr}.premium-filters label{min-width:160px;flex:1}.hero-deal-card .premium-card-media{height:240px!important;min-height:240px!important}}
@media(max-width:640px){.nav{min-height:62px}.brandword{font-size:16px}.install{display:none}.hero-main{padding:24px!important}.premium-searchbox{display:grid!important;grid-template-columns:30px 1fr!important}.premium-searchbox #searchBtn{grid-column:1/-1;width:100%;min-height:48px}.category-tile{min-height:110px}.catalog-controls{padding:18px}.premium-filters{display:grid!important}.premium-filters label{min-width:0;width:100%}.partner-ready{padding:24px}.hero-trust-row span{width:100%}}

.partner-ready{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr) auto!important}.partner-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.partner-stats span{display:flex;flex-direction:column;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.05);color:#9ba7bb;font-size:12px}.partner-stats b{color:#fff;font-size:20px}.premium-card-media img,.stable-card-media img,.visual img{max-width:100%;max-height:100%}.premium-card{min-width:0}.premium-card-body{min-width:0}.premium-card-body h3{overflow-wrap:anywhere}.search-results{scroll-margin-top:90px}.catalog-controls{scroll-margin-top:90px}
@media(max-width:1050px){.partner-ready{grid-template-columns:1fr!important}.partner-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.partner-cta{width:100%;text-align:center}}
@media(max-width:640px){.partner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v54 category product visuals */
.category-tile{overflow:hidden!important;align-items:center!important}.category-visual{position:relative;width:76px;height:76px;flex:0 0 76px;border-radius:20px;background:linear-gradient(145deg,#fff,#e9edf7);overflow:hidden;display:grid;place-items:center}.category-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;z-index:2}.category-visual span{font-size:30px;z-index:1}.category-visual:not(.fallback) span{opacity:.12}.category-visual.fallback span{opacity:1}.category-tile.active .category-visual{box-shadow:0 0 0 2px rgba(126,103,255,.28)}
@media(max-width:640px){.category-visual{width:64px;height:64px;flex-basis:64px}}


/* v55 working partner/store forms */
.form-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:10000;
}
.form-modal.open{display:block}
.form-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,7,12,.78);
  backdrop-filter:blur(12px);
}
.form-modal-card{
  position:relative;
  z-index:2;
  width:min(92vw,720px);
  margin:5vh auto 0;
  max-height:90vh;
  overflow:auto;
  padding:30px;
  border-radius:28px;
  background:
    radial-gradient(circle at 100% 0%,rgba(111,86,255,.18),transparent 26%),
    linear-gradient(180deg,#121726,#0d1119);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 40px 120px rgba(0,0,0,.5);
}
.form-modal-card.compact{width:min(92vw,560px)}
.form-modal-close{
  position:absolute;
  top:16px;
  right:18px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:30px;
  cursor:pointer;
}
.form-kicker{
  color:#9cafff;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:900;
  margin-bottom:8px;
}
.form-modal-card h2{
  margin:0 0 8px;
  font-size:clamp(30px,4vw,46px);
  letter-spacing:-1.4px;
}
.form-subtitle{
  color:#9fa9bf;
  line-height:1.55;
  margin:0 0 22px;
}
.site-form{display:grid;gap:14px}
.site-form label{display:grid;gap:7px}
.site-form label span{
  color:#cbd3e8;
  font-size:13px;
  font-weight:700;
}
.site-form input,
.site-form textarea,
.site-form select{
  width:100%;
  border:1px solid rgba(255,255,255,.09);
  background:#0a0e16;
  color:#fff;
  border-radius:14px;
  padding:13px 14px;
  outline:none;
  font:inherit;
}
.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus{
  border-color:#7565ff;
  box-shadow:0 0 0 3px rgba(117,101,255,.12);
}
.site-form textarea{resize:vertical;min-height:90px}
.form-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-submit{min-height:48px;font-size:15px}
.form-note{
  margin:0;
  color:#737f96;
  font-size:12px;
  line-height:1.45;
}
.form-status{
  min-height:18px;
  font-size:13px;
}
.form-status.error{
  color:#ff8f98;
  background:rgba(255,72,92,.08);
  border:1px solid rgba(255,72,92,.15);
  border-radius:12px;
  padding:10px 12px;
}
.form-status.success{
  display:grid;
  gap:6px;
  color:#dfffee;
  background:rgba(60,205,127,.08);
  border:1px solid rgba(60,205,127,.18);
  border-radius:14px;
  padding:14px;
}
.form-status.success span{color:#9fcbb3}
.form-success-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.form-success-actions button{flex:1}
body.modal-open{overflow:hidden}
@media(max-width:650px){
  .form-modal-card{padding:22px;margin-top:3vh;border-radius:22px}
  .form-grid-2{grid-template-columns:1fr}
  .form-success-actions{flex-direction:column}
}

/* v56 profile */
.profile-view{padding:34px 0 80px}
.profile-shell{max-width:1180px}
.profile-hero{display:flex;align-items:center;gap:20px;padding:28px;border:1px solid rgba(255,255,255,.08);border-radius:28px;background:linear-gradient(135deg,#121728,#0e121c);margin-bottom:20px}
.profile-avatar{width:82px;height:82px;flex:0 0 82px;display:grid;place-items:center;border-radius:24px;font-size:34px;font-weight:900;color:#fff;background:linear-gradient(135deg,#7c67ff,#5e8cff);box-shadow:0 18px 42px rgba(83,73,255,.28)}
.profile-hero h1{margin:4px 0 4px;font-size:clamp(30px,4vw,48px);letter-spacing:-1.6px}
.profile-hero p{margin:0;color:#9fa9bd}
.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.profile-card{min-height:180px;display:flex;flex-direction:column;gap:9px;padding:22px;border-radius:22px;background:#111621;border:1px solid rgba(255,255,255,.08)}
.profile-card span{font-size:13px;color:#93a0b8}.profile-card strong{font-size:28px;letter-spacing:-.8px}.profile-card small{color:#727e94}.profile-card button{margin-top:auto}
.danger-soft{border:1px solid rgba(255,95,112,.18);background:rgba(255,95,112,.08);color:#ff9aa7;border-radius:12px;padding:11px 14px;cursor:pointer;font-weight:800}
.profile-info-panel{margin-top:16px;padding:24px;border-radius:22px;background:linear-gradient(135deg,rgba(111,86,255,.10),rgba(33,44,74,.14));border:1px solid rgba(111,86,255,.16)}
.profile-info-panel h2{margin:0 0 6px}.profile-info-panel p{margin:0;color:#9ea8bb;line-height:1.55}
@media(max-width:800px){.profile-grid{grid-template-columns:1fr}.profile-hero{align-items:flex-start}}

/* v57 profile applications */
.profile-applications{
  margin-top:18px;
  padding:24px;
  border-radius:24px;
  background:#101520;
  border:1px solid rgba(255,255,255,.08);
}
.profile-section-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:18px;
}
.profile-section-head h2{
  margin:4px 0 5px;
  font-size:30px;
  letter-spacing:-.8px;
}
.profile-section-head p{
  margin:0;
  color:#8e99ae;
  font-size:13px;
}
.telegram-contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,#229ED9,#1688c7);
  font-weight:800;
  white-space:nowrap;
}
.applications-list{
  display:grid;
  gap:12px;
}
.application-card{
  padding:18px;
  border-radius:18px;
  background:#0b1018;
  border:1px solid rgba(255,255,255,.07);
}
.application-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.application-type{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(112,88,255,.13);
  border:1px solid rgba(112,88,255,.2);
  color:#c9c2ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.application-top h3{
  margin:8px 0 0;
  font-size:20px;
}
.application-top time{
  color:#788399;
  font-size:12px;
  white-space:nowrap;
}
.application-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.app-detail{
  display:grid;
  gap:3px;
  min-width:0;
  padding:10px 12px;
  border-radius:12px;
  background:#111722;
}
.app-detail span{
  color:#788399;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.app-detail b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.application-comment{
  margin:12px 0 0;
  color:#a5aec0;
  font-size:13px;
  line-height:1.5;
}
.application-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.application-actions a{
  text-decoration:none;
}
.applications-empty{
  padding:26px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:16px;
  color:#7f8a9e;
  text-align:center;
}
@media(max-width:760px){
  .profile-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .telegram-contact{
    width:100%;
  }
  .application-details{
    grid-template-columns:1fr;
  }
  .application-top{
    flex-direction:column;
  }
}

/* v59: Telegram removed from profile UI */
.profile-applications .telegram-contact{display:none !important}

/* v62 contact warning */
.contact-warning{
  display:block;
  margin-top:6px;
  color:#ffb36b;
  font-size:11px;
  line-height:1.4;
}
