:root{
  --bg:#0b1220;
  --bg2:#0f172a;
  --card:#0f1a2f;
  --card2:#111c33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --muted2:#6b7280;
  --line:rgba(255,255,255,.10);
  --brand:#f59e0b; /* safety amber */
  --brand2:#f59e0b; /* accent */
  --danger:#ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);
  --radius: 18px;
  --radius2: 24px;
  --max: 1240px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 800px at 22% 0%, rgba(245,158,11,.11), transparent 55%),
              radial-gradient(900px 600px at 78% 18%, rgba(245,158,11,.06), transparent 60%),
              linear-gradient(180deg, var(--bg), #070b14 70%);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
select{color-scheme: dark}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,.62);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{display:flex; align-items:center; justify-content:flex-start; gap:12px; padding:12px 0; flex-wrap:nowrap}
.brand{
  display:flex; gap:10px; align-items:center;
}
.logo{
  width:38px; height:38px; border-radius:12px;
  position:relative;
  display:grid; place-items:center;
  background:
    radial-gradient(12px 12px at 28% 32%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(145deg, rgba(245,158,11,.95), rgba(245,158,11,.35));
  box-shadow: 0 12px 30px rgba(245,158,11,.25);
}
.logo::after{
  content:"E";
  font-weight:900;
  font-size:18px;
  color: rgba(11,18,32,.92);
  text-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.brand-title{display:flex; flex-direction:column; line-height:1.1}
.brand-title b{letter-spacing:.2px}
.brand-title span{color:var(--muted); font-size:12px}
.nav.desktop-nav{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  flex: 1 1 auto;
  min-width: 420px;
}
@media (max-width: 1240px){
  .nav.desktop-nav{flex-basis:100%; min-width: 0}
  .topbar-inner{flex-wrap:wrap}
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  color:var(--text);
}
.pill:hover{background: rgba(255,255,255,.06)}
.pill svg{width:18px; height:18px; opacity:.9}
.pill select{max-width: 140px; text-overflow: ellipsis; overflow:hidden; white-space:nowrap}

.actions.header-actions{display:flex; gap:10px; align-items:center; flex-wrap:nowrap; justify-content:flex-end; margin-left:auto}
@media (max-width: 1240px){
  .actions.header-actions{flex-wrap:wrap}
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  min-height:46px;
  line-height:1;
}
.btn:hover{background: rgba(255,255,255,.08)}
.btn.primary{
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.08));
}
.btn.primary:hover{background: linear-gradient(180deg, rgba(245,158,11,.25), rgba(245,158,11,.10))}
.btn.success{
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(180deg, rgba(245,158,11,.16), rgba(245,158,11,.07));
}
.btn.icon{padding:10px 12px; min-width:46px}
.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.02);
}
.badge.ok{border-color: rgba(245,158,11,.28); color: #fef3c7; background: rgba(245,158,11,.10)}
.badge.warn{border-color: rgba(245,158,11,.35); color: #fde68a; background: rgba(245,158,11,.12)}
.badge.danger{border-color: rgba(239,68,68,.35); color: #fecaca; background: rgba(239,68,68,.12)}

.support-pill{max-width: 200px}
.support-pill #supportPhone{display:inline-block; max-width: 140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom}
@media (max-width: 560px){
  .support-pill #supportPhone{display:none}
}
.hero{padding:46px 0 22px}
.hero-grid{display:grid; grid-template-columns: 1.4fr .6fr; gap:18px; align-items:stretch}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr} }
.card{
  position:relative;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
}
.card.pad{padding:22px}
.card h1{margin:0 0 10px; font-size:38px; letter-spacing:-.6px}
.card p{margin:0; color:var(--muted); max-width:58ch}
.kpis{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.kpi{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  min-width: 180px;
}
.kpi svg{width:20px; height:20px; color:var(--brand)}
.kpi b{display:block; font-size:14px}
.kpi span{display:block; font-size:12px; color:var(--muted); margin-top:1px}
.searchbox{
  margin-top:18px;
  display:flex; gap:10px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: 18px;
  padding:10px;
}
.searchbox input{
  flex:1;
  background: transparent;
  border: none;
  outline: none;
  color:var(--text);
  font-size:14px;
  padding:10px 10px;
}
.searchbox .btn{border-radius:14px}
.form-mini label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
.form-mini input, .form-mini select, .form-mini textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
}
.form-mini textarea{min-height:88px; resize:vertical}
.form-mini .row{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
@media (max-width: 520px){ .form-mini .row{grid-template-columns:1fr} }
.form-mini .stack{display:flex; flex-direction:column; gap:10px}
.section{padding:22px 0}
.h2{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:14px}
.h2 h2{margin:0; font-size:22px; letter-spacing:-.2px}
.h2 p{margin:0; color:var(--muted); font-size:13px}
.grid-4{display:grid; grid-template-columns: repeat(4,1fr); gap:14px}
@media (max-width: 980px){ .grid-4{grid-template-columns: repeat(2,1fr)} }
@media (max-width: 520px){ .grid-4{grid-template-columns: 1fr} }
.tile{
  padding:16px;
  border-radius: 20px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: transform .15s ease, background .15s ease;
  display:flex; flex-direction:column; gap:10px;
}
.tile:hover{transform: translateY(-2px); background: rgba(255,255,255,.04)}
.tile .icon{
  width:44px; height:44px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.18);
}
.tile .icon img{width:26px; height:26px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25))}
.tile b{font-size:14px}
.tile span{font-size:12px; color:var(--muted)}
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:stretch;
}
@media (max-width: 980px){ .split{grid-template-columns:1fr} }
.banner{
  padding:18px;
  border-radius: 22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(255,255,255,.02));
  overflow:hidden;
  position:relative;
}
.banner:after{
  content:"";
  position:absolute; inset:-40px -80px auto auto;
  width:220px; height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.26), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}
.banner h3{margin:0 0 6px; font-size:18px}
.banner p{margin:0 0 12px; color:var(--muted); font-size:13px; max-width:62ch}
.banner .btn{background: rgba(0,0,0,.20)}
.footer{
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid{display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:16px}
@media (max-width: 980px){ .footer-grid{grid-template-columns: 1fr 1fr} }
@media (max-width: 520px){ .footer-grid{grid-template-columns: 1fr} }
.footer b{color:var(--text); display:block; margin-bottom:10px}
.footer a{display:block; color:var(--muted); margin:8px 0}
.footer a:hover{color:var(--text)}
.toast{
  position:fixed; bottom:18px; left:50%; transform:translateX(-50%);
  background: rgba(17,24,39,.92);
  border: 1px solid var(--line);
  padding:10px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index:80;
  display:none;
}
.toast.show{display:flex; align-items:center; gap:10px}
.toast .dot{width:10px; height:10px; border-radius:999px; background: var(--brand2)}
/* Catalog layout */
.page-title{padding:24px 0 8px}
.page-title h1{margin:0; font-size:28px}
.page-title p{margin:6px 0 0; color:var(--muted); font-size:13px}
.catalog{
  display:grid; grid-template-columns: 320px 1fr; gap:14px;
  padding-bottom: 30px;
}
@media (max-width: 980px){ .catalog{grid-template-columns:1fr} }
.sidebar{
  position: sticky;
  top: calc(var(--topbar-h, 68px) + 18px);
  align-self:start;
  max-height: calc(100vh - var(--topbar-h, 68px) - 36px);
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  z-index: 5;
}
@media (max-width: 980px){
  .sidebar{position:static; max-height:none; overflow:visible; padding-right:0}
}

/* Nice scrollbars for sidebar (desktop) */
.sidebar::-webkit-scrollbar{width:10px}
.sidebar::-webkit-scrollbar-thumb{background: rgba(255,255,255,.10); border-radius: 999px; border:2px solid transparent; background-clip: padding-box}
.sidebar::-webkit-scrollbar-thumb:hover{background: rgba(255,255,255,.16); background-clip: padding-box}
.sidebar{scrollbar-color: rgba(255,255,255,.14) transparent; scrollbar-width: thin}
.filter-group{padding:14px; border-radius: 22px; border:1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom:12px}
.filter-group h3{margin:0 0 10px; font-size:14px}
.filter-group .row{display:flex; gap:10px; flex-wrap:wrap}
.filter-group select, .filter-group input{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color: var(--text);
  outline:none;
}
.filter-group .hint{font-size:12px; color:var(--muted); margin-top:8px}
.results-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 12px 14px; border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  margin-bottom: 12px;
}
.results-top .left{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.results-top .right{display:flex; gap:10px; align-items:center}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius: 999px;
  border:1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: 12px;
}
.chip button{
  border:none; background:transparent; color:var(--muted);
  cursor:pointer; padding:0 2px;
}
.product-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 980px){ .product-grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 520px){ .product-grid{grid-template-columns: 1fr} }
.pcard{
  padding:14px;
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  display:flex; flex-direction:column; gap:10px;
  transition: transform .15s ease, background .15s ease;
}
.pcard:hover{transform: translateY(-2px); background: rgba(255,255,255,.04)}
.pimg{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}
.pimg img{width:100%; height:170px; object-fit:cover}
.pmeta{display:flex; justify-content:space-between; align-items:center; gap:10px}
.pmeta .badges{display:flex; gap:6px; flex-wrap:wrap}
.pname{font-size:14px; margin:0}
.pmuted{color:var(--muted); font-size:12px; margin:0}
.price{font-size:16px; letter-spacing:-.2px}
.price small{color:var(--muted); font-size:12px}
.pactions{display:flex; gap:10px; margin-top:auto}
.pactions .btn{flex:1}
.pactions .btn.icon{flex:0}
.breadcrumbs{display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}
/* Product page */
.product{
  display:grid; grid-template-columns: 1.05fr .95fr; gap:14px;
  padding-bottom: 30px;
}
@media (max-width: 980px){ .product{grid-template-columns:1fr} }
.gallery{
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding:14px;
}
.gallery-main{
  border-radius: 18px; overflow:hidden; border:1px solid rgba(255,255,255,.06);
}
.gallery-main img{width:100%; height:340px; object-fit:cover}
.thumbs{display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top:10px}
.thumb{
  border-radius: 16px; overflow:hidden; border:1px solid rgba(255,255,255,.06);
  cursor:pointer;
  min-height:46px;
  line-height:1;
}
.thumb img{width:100%; height:110px; object-fit:cover; opacity:.9}
.thumb:hover img{opacity:1}
.pinfo{
  border-radius: 22px; border:1px solid var(--line); background: rgba(255,255,255,.02); padding:16px;
}
.pinfo h1{margin:0 0 8px; font-size:24px; letter-spacing:-.4px}
.specs{
  border-top:1px solid var(--line); margin-top:12px; padding-top:12px;
  display:grid; grid-template-columns: 1fr 1fr; gap:10px;
}
@media (max-width: 520px){ .specs{grid-template-columns:1fr} }
.spec{
  padding:10px 12px; border-radius: 16px; border:1px solid var(--line); background: rgba(255,255,255,.02);
}
.spec b{display:block; font-size:12px}
.spec span{display:block; color:var(--muted); font-size:12px; margin-top:4px}
.kit{
  margin-top:12px;
  border-top:1px solid var(--line); padding-top:12px;
}
.kit h3{margin:0 0 10px; font-size:14px}
.kit .list{display:grid; grid-template-columns:1fr; gap:10px}
.kit .item{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; border-radius:16px; border:1px solid var(--line); background: rgba(255,255,255,.02)}
.kit .item b{font-size:12px}
.kit .item span{font-size:12px; color:var(--muted)}
/* Drawer cart */
.drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display:none;
  z-index:90;
}
.drawer-backdrop.show{display:block}
.drawer{
  position:fixed; right:18px; top:18px; bottom:18px;
  width:min(420px, calc(100% - 36px));
  border-radius: 26px;
  background: rgba(12,18,32,.90);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .18s ease;
  z-index:100;
  display:flex; flex-direction:column;
}
.drawer.show{transform: translateX(0)}
.drawer-header{
  padding:14px 14px 10px;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  border-bottom:1px solid var(--line);
}
.drawer-header b{font-size:14px}
.drawer-body{padding:14px; overflow:auto; display:flex; flex-direction:column; gap:10px}
.lineitem{
  display:grid; grid-template-columns: 64px 1fr auto;
  gap:10px; align-items:center;
  padding:10px; border-radius: 18px; border:1px solid var(--line); background: rgba(255,255,255,.02);
}
.lineitem img{width:64px; height:52px; object-fit:cover; border-radius: 14px; border:1px solid rgba(255,255,255,.06)}
.lineitem b{font-size:12px; display:block}
.lineitem span{font-size:12px; color:var(--muted); display:block; margin-top:2px}
.qty{display:flex; align-items:center; gap:6px}
.qty button{
  width:28px; height:28px; border-radius: 10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  min-height:46px;
  line-height:1;
}
.qty button:hover{background: rgba(255,255,255,.06)}
.drawer-footer{
  margin-top:auto;
  padding:14px;
  border-top:1px solid var(--line);
}
.total{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:var(--muted)}
.total b{color:var(--text)}
/* Floating CTA */
.fab{
  position:fixed; right:18px; bottom:18px;
  display:flex; flex-direction:column; gap:10px;
  z-index:70;
}
.fab a{
  width:54px; height:54px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow2);
}
.fab a:hover{background: rgba(255,255,255,.08)}
.fab svg{width:26px; height:26px}
.small{
  font-size: 12px;
  color: var(--muted);
}
.hr{
  height:1px; background: var(--line); border:none; margin:14px 0;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid var(--line);
}
.table th, .table td{
  text-align:left; padding:10px 12px;
  border-bottom:1px solid var(--line);
  font-size: 13px;
}
.table th{color:var(--muted); font-weight:600; background: rgba(255,255,255,.02)}
.table tr:last-child td{border-bottom:none}
.notice{
  padding: 12px 12px;
  border-radius: 18px;
  border:1px solid rgba(245,158,11,.25);
  background: rgba(245,158,11,.10);
  color: #fde68a;
  font-size: 13px;
}

@media (max-width: 420px){
  .pill{padding:7px 9px}
  .btn{padding:9px 12px}
}

/* Header controls & mobile menu */
.burger{display:none}
.burger .burger-lines{
  width:18px; height:12px; position:relative; display:block;
}
.burger .burger-lines:before,
.burger .burger-lines:after,
.burger .burger-lines{
  background: transparent;
}
.burger .burger-lines:before,
.burger .burger-lines:after{
  content:"";
  position:absolute; left:0; right:0; height:2px;
  background: rgba(229,231,235,.92);
  border-radius:999px;
  box-shadow: 0 8px 0 rgba(229,231,235,.92);
  top:1px;
}
.burger .burger-lines:after{
  top:auto; bottom:1px;
  box-shadow:none;
}

.hide-sm{display:inline-flex}
@media (max-width: 980px){
  .nav.desktop-nav{display:none !important}
  .burger{display:inline-flex}
  .hide-sm{display:none !important}
  .topbar-inner{flex-wrap:nowrap}
}
@media (max-width: 520px){
  .brand-title span{display:none}
}

/* Custom dropdown (no native select) */
.dd{position:relative}
.dd-btn{
  border:none;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width: 160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dd-btn:after{
  content:"";
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid rgba(229,231,235,.70);
  opacity:.9;
  margin-left:2px;
}
.dd-menu{
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  min-width: 240px;
  max-width: min(340px, calc(100vw - 60px));
  max-height: 320px;
  overflow:auto;
  padding:8px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(12,18,32,.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display:none;
  z-index: 120;
}
.dd.open .dd-menu{display:block}
.dd-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  color:var(--text);
  border:1px solid transparent;
}
.dd-item:hover{background: rgba(255,255,255,.06)}
.dd-item[aria-selected="true"]{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
}
.dd-item .muted{color:var(--muted); font-size:12px}

/* Custom selects (replace native <select>) */
.native-hidden{display:none !important}
.dd--select{width:100%}
.dd--select .dd-btn{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  justify-content:space-between;
  max-width:none;
}
.dd--select .dd-btn:after{margin-left:10px}
.dd--select .dd-menu{min-width: 100%; max-width: min(520px, calc(100vw - 60px));}
.dd--select.disabled{opacity:.65; pointer-events:none}
.dd--select .dd-item.disabled{opacity:.55; pointer-events:none}

/*
  UX: dropdowns for form/select open in-flow so menus do not overlap соседние поля.
*/
.dd--select .dd-menu{
  position: static;
  margin-top: 8px;
  top: auto;
  left: auto;
  right: auto;
  max-width: none;
}


/* Left menu drawer */
.menu-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display:none;
  z-index:95;
}
.menu-backdrop.show{display:block}
.menu-drawer{
  position:fixed; left:18px; top:18px; bottom:18px;
  width:min(460px, calc(100% - 36px));
  border-radius: 26px;
  background: rgba(12,18,32,.92);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-110%);
  transition: transform .18s ease;
  z-index:101;
  display:flex; flex-direction:column;
}
.menu-drawer.show{transform: translateX(0)}
.menu-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 520px){
  .menu-grid{grid-template-columns: 1fr}
}
.menu-col{display:flex; flex-direction:column; gap:10px}
.menu-row{display:flex}
.menu-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.menu-link:hover{background: rgba(255,255,255,.05)}
.menu-cta{display:flex; flex-direction:column; gap:10px}
.w-100{width:100%}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding:2px 8px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

/* Smooth reveal animations */
[data-reveal]{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].in{
  opacity:1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1; transform:none; transition:none}
  .pcard, .tile{transition:none}
}

/* Better touch targets */
@media (max-width: 520px){
  .btn{padding:10px 14px}
  .pill{padding:9px 12px}
  .hero{padding:30px 0 14px}
  .card h1{font-size:30px}
  .gallery-main img{height:280px}
}

/* Gallery thumbs more flexible */
.thumbs{grid-template-columns: repeat(4,1fr)}
@media (max-width: 520px){
  .thumbs{grid-template-columns: repeat(3,1fr)}
  .thumb img{height:96px}
}

/* Photo upload preview */
.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:10px;
}
@media (max-width: 520px){
  .photo-grid{grid-template-columns: repeat(2, 1fr)}
}
.photo{
  border-radius: 16px;
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.photo img{
  width:100%;
  height:110px;
  object-fit:cover;
  display:block;
}

/* Micro-interactions */
.btn, .pill{transition: background .15s ease, transform .12s ease}
.btn:active{transform: translateY(1px) scale(.99)}
.pill:active{transform: translateY(1px)}
.btn:focus-visible, .pill:focus-visible, .dd-btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid rgba(245,158,11,.45);
  outline-offset: 2px;
}

/* Mobile layout tweaks */
.pactions{flex-wrap:wrap}
.pactions .btn{min-width: 120px}
@media (max-width: 520px){
  .searchbox{flex-direction:column}
  .searchbox .btn{width:100%}
}


/* ===== Premium UI additions ===== */
html{scroll-behavior:smooth}
body{font-size:16px}

.topbar{transition: background .18s ease, border-color .18s ease}
.topbar.is-scrolled{
  background: rgba(11,18,32,.82);
  border-bottom-color: rgba(255,255,255,.14);
}
.topbar-inner{transition: padding .18s ease}
.topbar.is-scrolled .topbar-inner{padding:10px 0}

/* Buttons: cleaner premium look */
.btn{
  border-radius:16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0) scale(.99)}
.btn.primary, .btn.success{
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(180deg, rgba(245,158,11,.16), rgba(245,158,11,.07));
}
.btn.ghost{
  background: rgba(255,255,255,.02);
}

/* Hero visuals */
.hero{position:relative; overflow:hidden}
.hero:before{
  content:"";
  position:absolute; inset:-140px -260px auto auto;
  width:760px; height:760px;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.18), transparent 60%),
              radial-gradient(circle at 60% 45%, rgba(245,158,11,.08), transparent 62%);
  transform: rotate(12deg);
  pointer-events:none;
  filter: blur(.2px);
}
.hero:after{
  content:"";
  position:absolute; inset:auto -220px -320px auto;
  width:820px; height:820px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 60%);
  transform: rotate(-10deg);
  pointer-events:none;
}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.hero-cta .btn{min-width: 160px}
@media (max-width: 520px){
  .hero-cta .btn{min-width: 0; width:100%}
}
.hero-media{
  position:absolute;
  right:18px;
  bottom:18px;
  width:min(340px, 46%);
  opacity:.62;
  pointer-events:none;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.35));
}
@media (max-width: 980px){
  .hero-media{display:none}
}

/* Brand strip */
.brandstrip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.brandchip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size:13px;
  letter-spacing:.1px;
}
.brandchip span{color:var(--muted); font-size:12px}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){
  .steps{grid-template-columns:1fr}
}
.step{
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding:16px;
  position:relative;
  overflow:hidden;
}
.step:after{
  content:"";
  position:absolute; inset:-60px -80px auto auto;
  width:200px; height:200px;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.14), transparent 62%);
  transform: rotate(12deg);
  pointer-events:none;
}
.step-num{
  width:42px; height:42px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(245,158,11,.22);
  background: rgba(245,158,11,.10);
  color: #fde68a;
  font-weight:800;
  letter-spacing:-.2px;
  margin-bottom:10px;
}
.step b{display:block; margin-bottom:6px}
.step p{margin:0; color:var(--muted); font-size:13px}

/* Alt sections (subtle separation) */
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* Skeletons */
.skeleton{
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
  background-size: 220% 100%;
  animation: sk 1.2s ease-in-out infinite;
  border-radius: 14px;
}
@keyframes sk{
  0%{background-position: 0% 0%}
  100%{background-position: 220% 0%}
}
.skeleton-card{pointer-events:none}
.sk-img{height:170px}
.sk-line{height:12px}
.sk-btn{height:46px; width:100%; border-radius:16px}

/* Mobile bottom bar */
.mobilebar{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom:12px;
  width:min(680px, calc(100% - 24px));
  display:none;
  gap:8px;
  padding:10px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index:85;
}
.mobilebar .mb-item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:56px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration:none;
  font-size: 11px;
}
.mobilebar .mb-item:hover{background: rgba(255,255,255,.05)}
.mobilebar .mb-item img{width:20px; height:20px}
.mobilebar .mb-badge{
  position:absolute;
  margin-left:34px;
  margin-top:-16px;
  font-size:11px;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
}
.mobilebar .mb-item.mb-cart{position:relative}
@media (max-width: 980px){
  .mobilebar{display:flex}
  body{padding-bottom:110px}
  .fab{bottom:104px}
}
@media (max-width: 420px){
  .mobilebar{bottom:10px; padding:8px}
  .mobilebar .mb-item{min-height:52px}
}

/* Improve page headers */
.page-title{padding:28px 0 10px}
.page-title h1{letter-spacing:-.4px}


/* Table zebra for readability */
.table tbody tr:nth-child(even) td{background: rgba(255,255,255,.015)}
/* Placeholder */
::placeholder{color: rgba(156,163,175,.75)}

/* Active navigation */
.pill.active{
  border-color: rgba(245,158,11,.22);
  background: rgba(245,158,11,.10);
}
.menu-link.active{
  border-color: rgba(245,158,11,.22);
  background: rgba(245,158,11,.08);
}
