/* LOWIZ STORE — focused header, wallet, notification and search refinement */
:root {
  --lw-ui-border: rgba(164,174,196,.16);
  --lw-ui-surface: #101626;
  --lw-ui-surface-raised: #141b2c;
  --lw-ui-purple: #8b5cf6;
  --lw-ui-blue: #3b82f6;
}

/* Keep the established wordmark; only refine its alignment and surrounding rhythm. */
.site-header .nav-shell { align-items:center; }
.site-header .brand {
  display:inline-flex;
  align-items:center;
  gap:8px;
  align-self:center;
  line-height:1;
  transform:translateY(-1px);
  white-space:nowrap;
}
.site-header .brand-logo { display:block; flex:0 0 auto; }
.site-header .brand-name { display:inline-block; line-height:1; }
.site-header .nav-actions { align-items:center; }
.site-header .wallet-group {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.site-header .wallet-badge {
  min-width:0;
  min-height:38px;
  gap:8px;
  padding:0 10px;
  border-color:rgba(121,199,255,.25);
  border-radius:11px;
  background:rgba(59,130,246,.09);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.site-header .wallet-currency { flex:0 0 20px; }
.site-header .wallet-summary {
  display:grid;
  min-width:0;
  gap:1px;
  line-height:1.1;
  text-align:left;
}
.site-header .wallet-summary small {
  color:#9caac2;
  font-size:9px;
  line-height:1.1;
}
.site-header .wallet-summary b {
  display:block;
  max-width:132px;
  overflow:hidden;
  color:#f4f7ff;
  font-size:11px;
  font-variant-numeric:tabular-nums;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.site-header .balance-topup {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  min-width:0;
  padding:0 10px;
  border:1px solid rgba(139,92,246,.32);
  border-radius:11px;
  color:#e8e2ff;
  background:rgba(139,92,246,.11);
  white-space:nowrap;
}
.site-header .balance-topup-mark {
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:6px;
  color:#fff;
  background:linear-gradient(135deg,#8b5cf6,#3b82f6);
  line-height:1;
}
.site-header .balance-topup:focus-visible,
.site-header .wallet-badge:focus-visible { outline-offset:3px; }
.site-header .balance-topup:active { transform:scale(.97); }
@media (hover:hover) and (pointer:fine) {
  .site-header .balance-topup:hover {
    border-color:rgba(139,92,246,.56);
    background:rgba(139,92,246,.17);
    box-shadow:0 5px 16px rgba(83,67,172,.16);
  }
}

/* Search: a compact, store-like panel instead of a generic floating template. */
html body .search-overlay {
  z-index:4600;
  place-items:start center;
  padding:clamp(74px,10vh,112px) 16px max(20px,env(safe-area-inset-bottom));
  background:rgba(3,6,14,.76);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
html body .search-modal {
  width:min(680px,100%);
  max-height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px));
  overflow:auto;
  overscroll-behavior:contain;
  padding:18px;
  border:1px solid rgba(164,174,196,.19);
  border-radius:17px;
  color:#f5f7ff;
  background:#0d1321;
  box-shadow:0 24px 70px rgba(0,0,0,.48);
}
html body .search-top { align-items:center; gap:9px; }
html body .search-input-wrap {
  min-width:0;
  min-height:54px;
  gap:12px;
  padding:0 15px;
  border:1px solid rgba(164,174,196,.2);
  border-radius:12px;
  background:#121a2a;
}
html body .search-input-wrap:focus-within {
  border-color:rgba(139,92,246,.66);
  box-shadow:0 0 0 3px rgba(139,92,246,.12);
}
html body .search-input-wrap svg { width:20px; height:20px; flex:0 0 20px; stroke:#a9b5ce; }
html body .search-input-wrap input {
  min-width:0;
  height:52px;
  color:#f5f7ff;
  font-size:16px;
}
html body .search-input-wrap input::placeholder { color:#7f8ba4; }
html body #closeSearch {
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:1px solid rgba(164,174,196,.15);
  border-radius:11px;
  color:#d9e0ef;
  background:#151d2e;
}
html body .search-hint {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin:13px 1px 12px;
  color:#8794ad;
  font-size:12px;
}
html body .search-hint button {
  min-height:29px;
  padding:4px 10px;
  border:1px solid rgba(164,174,196,.15);
  border-radius:8px;
  color:#c8d3e9;
  background:#141c2d;
  font-size:11px;
  font-weight:650;
  text-decoration:none;
}
html body .search-hint button:hover { border-color:rgba(139,92,246,.5); color:#fff; }
html body .search-results { min-height:36px; }
html body .search-result {
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  width:100%;
  min-height:70px;
  padding:9px 7px;
  border:0;
  border-top:1px solid rgba(164,174,196,.11);
  border-radius:0;
  color:#f4f6fc;
  background:transparent;
  text-align:left;
}
html body .search-result:hover,
html body .search-result:focus-visible { border-radius:10px; background:rgba(255,255,255,.045); }
html body .search-result-image,
html body .search-result .search-cover {
  display:block;
  width:52px;
  height:52px;
  min-width:52px;
  overflow:hidden;
  border:1px solid rgba(164,174,196,.15);
  border-radius:9px;
  object-fit:cover;
  object-position:center;
  background:#171d30;
}
html body .search-result .search-cover { display:flex; align-items:end; padding:6px; font-size:7px; line-height:1.1; }
html body .search-result-copy { display:grid; min-width:0; gap:4px; }
html body .search-result-copy strong {
  overflow:hidden;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-overflow:ellipsis;
}
html body .search-result-copy small {
  overflow:hidden;
  color:#929fb8;
  font-size:11px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html body .search-result > b {
  padding-left:6px;
  color:#e0d8ff;
  font-size:12px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
html body .no-results {
  margin:0;
  padding:25px 12px;
  border-top:1px solid rgba(164,174,196,.1);
  color:#a4aec4;
  font-size:13px;
  line-height:1.55;
  text-align:center;
}
html body .esc-hint { margin:12px 2px 0; color:#697790; font-size:10px; text-align:right; }
@media (max-width:760px) {
  html body .search-overlay {
    align-items:start;
    padding:calc(env(safe-area-inset-top,0px) + 68px) 10px max(14px,env(safe-area-inset-bottom));
  }
  html body .search-modal {
    width:100%;
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - 84px - env(safe-area-inset-bottom,0px));
    padding:13px;
    border-radius:15px;
  }
  html body .search-input-wrap { min-height:50px; padding-inline:11px; gap:9px; }
  html body .search-input-wrap input { height:48px; font-size:16px; }
  html body #closeSearch { flex-basis:40px; width:40px; height:40px; }
  html body .search-result { grid-template-columns:48px minmax(0,1fr) auto; gap:9px; min-height:65px; padding-inline:4px; }
  html body .search-result-image,
  html body .search-result .search-cover { width:48px; height:48px; min-width:48px; }
  html body .search-result-copy strong { font-size:12px; }
  html body .search-result > b { font-size:11px; }
  html body .esc-hint { display:none; }
}
@media (max-width:390px) {
  .site-header .wallet-badge { gap:5px; padding-inline:6px; }
  .site-header .wallet-currency { width:17px; flex-basis:17px; }
  .site-header .wallet-summary small { display:none; }
  .site-header .wallet-summary b { max-width:66px; font-size:9px; }
  .site-header .balance-topup { gap:4px; padding-inline:6px; }
  .site-header .topup-full-label { display:none; }
  .site-header .balance-topup-mark { width:17px; height:17px; flex-basis:17px; }
}
@media (max-width:360px) {
  .site-header .nav-shell { gap:4px; }
  .site-header .brand { gap:5px; font-size:14px; letter-spacing:-.07em; }
  .site-header .brand-logo { width:24px; height:24px; }
  .site-header .nav-actions { gap:2px; }
  .site-header .nav-actions .icon-button,
  .site-header .nav-actions .menu-toggle,
  .site-header .nav-actions .login-trigger { width:31px; min-width:31px; height:34px; min-height:34px; }
  html body #top.site-header #lowizNotificationTrigger.lowiz-notification-trigger { width:32px !important; min-width:32px !important; flex-basis:32px !important; height:34px !important; min-height:34px !important; }
}
@media (prefers-reduced-motion:reduce) {
  html body .search-modal, html body .search-overlay { animation:none; transition:none; }
}
