.quest-announce { display: block; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.quest-announce__row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 8px; max-width: 1360px; margin-inline: auto; padding: 5px 24px; font-size: 12px; font-weight: 500; }
.quest-announce__services { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.quest-announce__link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 1 auto; min-width: 0; padding: 3px 9px; border-radius: 8px; color: #fff; white-space: nowrap; transition: background .15s; }
.quest-announce__link:hover { color: #fff; background: #ffffff20; }
.quest-announce__link:focus-visible, .quest-announce__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.quest-announce__link > svg { flex-shrink: 0; }
.quest-announce__description { opacity: .85; font-weight: 400; }
.quest-announce__divider { width: 1px; height: 14px; flex-shrink: 0; background: #ffffff55; }
.quest-announce__close { flex-shrink: 0; padding: 0; border: 0; background: transparent; color: #fff; font-size: 18px; line-height: 1; opacity: .85; cursor: pointer; }
.site-header .main-nav { gap: 5px; }
.site-header .main-nav > a { font-weight: 400; }
.site-header .main-nav > a, .site-header .nav-category-dropdown__summary { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.site-header .main-nav > a { background: transparent; border-radius: 0; text-shadow: none; }
.site-header .main-nav > a::after { content: ''; display: block; position: absolute; left: 12px; right: 12px; bottom: 2px; width: auto; height: 2px; border-radius: 2px; background: var(--primary); opacity: 1; transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.site-header .main-nav > a:is(:hover, :focus-visible, :active, .is-active)::after { transform: scaleX(1); }
.site-header .main-nav > a:hover, .site-header .main-nav > a.is-active { background: transparent; color: var(--primary); text-shadow: none; }
.site-header .nav-category-dropdown__summary::after { display: none; }
.site-header .nav-category-dropdown.is-active > summary, .site-header .nav-category-dropdown[open] > summary { background: var(--primary-soft); color: var(--primary); }
.site-header .main-nav > a > svg, .site-header .nav-category-dropdown__summary > svg { flex-shrink: 0; }
.site-header .nav-category-dropdown[open] .nav-category-dropdown__summary > svg:first-child { transform: none; }
.site-header .header-right-cluster { gap: 9px; padding-left: 0; }
.site-header .nav-search-inner { box-shadow: none; }
.nav-search-toggle { display: none; }
.site-header .header-right .wallet-cluster { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 15px; overflow: visible; box-shadow: inset 0 1px 0 #ffffff22, 0 2px 0 var(--border); }
.site-header .header-right .wallet-cluster:hover { transform: none; background: var(--bg-3); border-color: var(--border); }
.site-header .wallet-mini { display: flex; align-items: center; gap: 7px; padding: 0 9px; min-height: 30px; font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-header .wallet-mini .wallet-amount-mini { color: var(--primary); }
.site-header .wallet-mini > svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-header .wallet-topup-btn { display: grid; place-items: center; width: 30px; height: 30px; min-height: 30px; margin: 0; padding: 0; flex-shrink: 0; border: 1px solid #b384e5; border-radius: 10px; background: linear-gradient(180deg, #ba7df0, #9d50df); color: #fff; box-shadow: inset 0 2px 0 #e9c7ff88, 0 2px 0 #7c37b6; transition: transform .15s, box-shadow .15s; }
.site-header .wallet-topup-btn:hover { filter: brightness(1.06); }
.site-header .wallet-topup-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 2px #67328b33; }
.site-header .wallet-topup-btn > svg { width: 17px; height: 17px; }
.site-header .user-chip.avatar-only { width: 38px; height: 38px; background: var(--primary-soft); border-color: var(--border); box-shadow: none; }
.site-header .avatar-fallback { background: none; color: var(--primary); box-shadow: none; }
.site-header .avatar-fallback__letter { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.site-header .user-chip-menu-indicator { display: none; }
.mobile-notif-login { display: none; }
.site-header .customer-notif__badge { top: 4px; right: 4px; width: 10px; min-width: 10px; height: 10px; padding: 0; background: #ef4444; font-size: 0; box-shadow: 0 0 0 2px var(--bg-3), 0 0 0 4px #ef444433; animation: none; }
.site-header .customer-notif__badge.is-zero { display: inline-flex; top: 8px; right: 9px; width: 5px; min-width: 5px; height: 5px; background: var(--primary); box-shadow: 0 0 0 2px var(--bg-3); }
.site-header .mobile-notif-login { position: relative; }
.site-header .mobile-notif-login::after { content: ''; position: absolute; top: 8px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--bg-3); }
.mobile-drawer { --drawer-bg: var(--bg-2); --drawer-tile: var(--bg-3); --drawer-accent: var(--primary); --drawer-text: var(--text); --drawer-muted: var(--muted); --drawer-line: var(--border); }
.mobile-drawer .mobile-drawer__panel { width: min(380px, calc(100vw - 24px)); background: var(--drawer-bg); color: var(--drawer-text); border-color: var(--drawer-line); border-radius: 0 22px 22px 0; overflow: hidden; }
.mobile-drawer__body { flex: 1; min-height: 0; padding: 0 18px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--drawer-line) transparent; }
.mobile-drawer__head { flex-shrink: 0; padding: max(12px, env(safe-area-inset-top)) 10px 0 18px; border: 0; }
.mobile-drawer__close { width: 44px; height: 44px; background: transparent; border: 0; border-radius: 12px; color: var(--drawer-muted); }
.mobile-drawer__close:hover { color: var(--drawer-accent); background: var(--drawer-tile); transform: none; }
.mobile-drawer__user { padding: 12px; margin-bottom: 8px; gap: 12px; background: none; border: 1px solid transparent; border-radius: 12px; color: var(--drawer-text); }
.mobile-drawer__user:hover { color: var(--drawer-accent); background: var(--primary-soft); border-color: color-mix(in srgb, var(--drawer-accent) 24%, var(--drawer-line)); }
.mobile-drawer__user > .lucide { color: var(--drawer-muted); flex-shrink: 0; }
.mobile-drawer__avatar { width: 42px; height: 42px; background: var(--drawer-tile); color: var(--drawer-accent); border: 0; }
.mobile-drawer__avatar .avatar-fallback { background: none; color: inherit; }
.mobile-drawer__avatar .avatar-fallback__letter { font-family: var(--font-body); font-size: 18px; }
.mobile-drawer__user-name { display: block; color: inherit; font-size: 19px; }
.mobile-drawer__guest-hint { display: block; color: var(--drawer-muted); font-size: 13px; margin-top: 4px; }
.mobile-drawer__wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; padding: 14px 16px; border: 1px solid var(--drawer-line); border-radius: 16px; background: radial-gradient(ellipse at 100% 0, var(--primary-soft-hover), transparent 65%), var(--drawer-bg); }
.mobile-drawer__wallet > span { color: var(--drawer-muted); font-size: 12px; }
.mobile-drawer__wallet > strong { grid-column: 1; color: var(--drawer-accent); font-size: clamp(19px, 6vw, 23px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mobile-drawer__topup { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--drawer-accent); border-radius: 12px; background: linear-gradient(135deg, var(--drawer-accent), var(--primary-dark)); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.mobile-drawer__topup:hover { color: #fff; filter: brightness(1.04); }
.mobile-drawer__topup:active { filter: brightness(.96); }
.mobile-drawer__section-title { color: var(--drawer-muted); font-size: 13px; font-weight: 500; margin: 23px 0 13px; }
.mobile-drawer__shop > .mobile-drawer__section-title { color: var(--drawer-text); font-size: 14px; font-weight: 500; }
.mobile-drawer__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.mobile-drawer__product { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 82px; padding: 12px 6px; border: 1px solid var(--drawer-line); border-radius: 12px; background: var(--drawer-tile); color: var(--drawer-text); font-size: 13px; font-weight: 500; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.mobile-drawer__product-icon { flex-shrink: 0; color: var(--drawer-accent); }
.mobile-drawer__product-tag { position: absolute; top: -9px; right: 10px; padding: 1px 7px; border: 1px solid transparent; border-radius: 999px; background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-xs); font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.mobile-drawer__product-tag--new { border-color: #f4a7ef55; background: linear-gradient(135deg, #c92e9a, #a32bc5); background-color: #b433ae; }
.mobile-drawer__product-tag--recommended { background: linear-gradient(115deg, #263f73, #57378b 55%, #723c7d) padding-box, linear-gradient(120deg, #6ce7cc, #9d8af6 48%, #f196df) border-box; background-color: #34316a; box-shadow: inset 0 1px 0 #ffffff22, var(--shadow-xs); }
.mobile-drawer__product-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.mobile-drawer__product:hover { color: var(--drawer-accent); border-color: color-mix(in srgb, var(--drawer-accent) 40%, var(--drawer-line)); }
.mobile-drawer__product.is-active { border-color: color-mix(in srgb, var(--drawer-accent) 40%, var(--drawer-line)); background: linear-gradient(135deg, var(--primary-soft), transparent), var(--drawer-tile); color: var(--drawer-accent); }
.mobile-drawer__product:active { background: var(--primary-soft-hover); border-color: var(--drawer-accent); }
.mobile-drawer__nav.mobile-drawer__account { padding: 0; }
.mobile-drawer__account .mobile-drawer__section-title { margin: 16px 0 4px; }
.mobile-drawer__account a { min-height: 52px; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--drawer-text); font-size: 14px; font-weight: 500; }
.mobile-drawer__account a > span { flex: 1; }
.mobile-drawer__account a > .lucide { color: var(--drawer-muted); }
.mobile-drawer__account a[aria-current="page"] { color: var(--drawer-accent); }
.mobile-drawer__account a > .mobile-drawer__cart-count { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 23px; height: 21px; padding: 0 6px; border-radius: 7px; background: var(--primary-soft); color: var(--drawer-accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mobile-drawer__account a > .mobile-drawer__cart-count.cart-badge--zero { display: none; }
.mobile-drawer__links { display: flex; flex-direction: column; border-top: 1px solid var(--drawer-line); padding-top: 12px; margin-top: 18px; }
.mobile-drawer__links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--drawer-muted); font-size: 13px; }
.mobile-drawer__links a > .lucide { flex-shrink: 0; }
.mobile-drawer__account a:hover, .mobile-drawer__links a:hover { color: var(--drawer-accent); background: var(--primary-soft); border-color: color-mix(in srgb, var(--drawer-accent) 24%, var(--drawer-line)); }
.mobile-drawer__foot { margin-top: 12px; padding: 12px 0 0; border-color: var(--drawer-line); }
.mobile-drawer__actions { display: flex; align-items: center; gap: 10px; }
.mobile-drawer__actions .mobile-logout-form { flex: 1; min-width: 0; }
.mobile-drawer__actions .mobile-drawer__login { flex: 1; min-width: 0; min-height: 44px; padding: 10px; font-size: 14px; }
.mobile-drawer__foot .user-menu-theme { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--drawer-line); border-radius: 12px; color: var(--drawer-muted); }
.mobile-drawer__actions :is(.user-menu-theme, .mobile-logout-form button) { background: var(--drawer-tile); box-shadow: none; transition: background-color .15s, color .15s; }
.mobile-drawer__actions :is(.user-menu-theme, .mobile-logout-form button):active { background: var(--primary-soft-hover); }
.mobile-drawer :is(a, button, summary):focus-visible { outline: 2px solid var(--drawer-accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .mobile-drawer__panel, .mobile-drawer__backdrop, .mobile-drawer__product, .mobile-drawer__topup, .mobile-drawer__actions :is(.user-menu-theme, .mobile-logout-form button) { transition: none; } }
.mobile-bottom-nav .cart-badge--zero { display: none; }
.site-header :is(a, button, summary):focus-visible, .mobile-bottom-nav :is(a, button):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (min-width: 1024px) {
  .site-header .header-inner { max-width: 1360px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; padding: 12px 24px; }
  .site-header .header-left { grid-column: 1; }
  .site-header .brand { font-size: 23px; gap: 9px; }
  .site-header .brand-logo { width: 31px; height: 34px; flex-basis: 31px; filter: none; }
  .site-header .header-right { gap: 6px; }
  .site-header :is(.nav-theme-toggle, .nav-cart-icon, .customer-notif__btn) { width: 38px; height: 38px; background: var(--bg-3); border-color: var(--border); color: var(--text); box-shadow: none; }
  .site-header .main-nav { grid-column: 2; justify-self: center; }
  .site-header .header-right-cluster { grid-column: 3; width: auto; justify-self: end; }
  .site-header .nav-search-wrap { position: relative; width: 38px; flex: 0 0 38px; }
  .nav-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-3); color: var(--text); cursor: pointer; }
  .site-header .nav-search { display: none; position: absolute; top: calc(100% + 13px); right: 0; width: min(360px, calc(100vw - 32px)); padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 35px #00000025; z-index: 150; }
  .site-header .nav-search-wrap.is-open .nav-search { display: block; }
  .site-header .nav-search-inner { min-height: 40px; border-radius: 12px; padding-inline: 12px; }
}
@media (min-width: 1024px) and (max-width: 1350px) {
  .site-header .header-inner { padding-inline: 18px; gap: 10px; }
  .site-header .main-nav > a, .site-header .nav-category-dropdown__summary { font-size: 12px; padding-inline: 8px; gap: 5px; }
  .site-header .main-nav > a > svg, .site-header .nav-category-dropdown__summary > svg:first-child { display: none; }
  .site-header .header-right-cluster { gap: 10px; padding-left: 0; }
  .site-header .brand { font-size: 18px; }
  .site-header .nav-search-wrap { flex: 0 0 32px; width: 32px; }
  .site-header .nav-search-toggle { width: 32px; height: 32px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header .header-right { gap: 5px; }
  .site-header :is(.nav-theme-toggle, .nav-cart-icon, .customer-notif__btn) { width: 32px; height: 32px; }
  .site-header .user-chip.avatar-only { width: 32px; height: 32px; }
  .site-header .header-right .wallet-cluster { gap: 3px; padding: 3px; min-height: 36px; border-radius: 13px; }
  .site-header .wallet-mini { min-height: 28px; padding: 0 7px; gap: 0; font-size: 12px; }
  .site-header .wallet-mini > svg { display: none; }
  .site-header .wallet-topup-btn { width: 28px; height: 28px; min-height: 28px; border-radius: 9px; }
  .site-header .header-right-cluster { gap: 8px; }
  .site-header .main-nav > a { padding-inline: 6px; }
}
@media (max-width: 1023px) {
  .quest-announce__row { padding: 5px 12px; gap: 4px; font-size: 11px; }
  .quest-announce__services { gap: 7px; }
  .quest-announce__link { gap: 5px; padding: 3px 2px; }
  .quest-announce__description { display: none; }
  body:has(.mobile-bottom-nav) { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .site-header .header-inner, .site-header--guest .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 16px; gap: 8px; }
  .site-header .main-nav { display: none; }
  .site-header .brand, .site-header--guest .brand { width: 32px; min-width: 32px; max-width: 32px; height: 36px; gap: 0; }
  .site-header .brand-text { display: none; }
  .site-header .brand-logo { width: 30px; height: 34px; flex-basis: 30px; }
  .site-header .header-right-cluster { gap: 8px; padding-left: 0; justify-self: stretch; }
  .site-header .nav-search-wrap, .site-header--guest .nav-search-wrap { display: flex; flex: 1 1 auto; min-width: 0; }
  .site-header .nav-search { min-width: 0; }
  .site-header .nav-search-toggle { display: none; }
  .site-header .nav-search-inner { height: 36px; min-width: 0; border-radius: 18px; padding: 0 9px; gap: 6px; }
  .site-header .nav-search-icon { flex-shrink: 0; }
  .site-header .nav-search-icon svg { width: 16px; height: 16px; }
  .site-header .nav-search input[type="search"] { min-width: 0; width: 100%; padding: 0; font-size: 12px; line-height: 1.5; }
  .site-header .header-right { gap: 8px; }
  .site-header :is(.nav-theme-toggle, .customer-notif__btn, .mobile-toggle), .site-header .mobile-notif-login { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-3); color: var(--text); }
  .site-header :is(.nav-cart-icon, .user-chip-block, .nav-auth-link), .site-header .header-right .wallet-cluster { display: none; }
  .mobile-bottom-nav { left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin-inline: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: 23px; box-shadow: 0 -5px 24px #00000018; }
  .mobile-bottom-nav a, .mobile-bottom-nav__chat { min-height: 52px; border-radius: 15px; font-size: 11px; font-weight: 500; }
  .mobile-bottom-nav .mobile-bottom-nav__topup { position: relative; top: -14px; width: 51px; height: 51px; min-height: 51px; margin: auto; gap: 2px; border: 1px solid #b384e5; border-radius: 50%; background: linear-gradient(180deg, #ba7df0, #9d50df); color: #fff; box-shadow: inset 0 2px 0 #e9c7ff88, 0 4px 0 #7c37b6; font-size: 9px; line-height: 1.4; }
  .mobile-bottom-nav .mobile-bottom-nav__topup:is(:hover, .is-active) { background: linear-gradient(180deg, #ba7df0, #9d50df); color: #fff; }
  .mobile-bottom-nav .mobile-bottom-nav__topup .lucide, .mobile-bottom-nav .mobile-bottom-nav__topup:is(:hover, .is-active) .lucide { color: #fff; }
  .mobile-bottom-nav .mobile-bottom-nav__topup:active { transform: translateY(2px); box-shadow: 0 2px 0 #7c37b6; }
}
@media (max-width: 360px) {
  .site-header .header-inner, .site-header--guest .header-inner { padding-inline: 12px; gap: 6px; }
  .site-header .header-right-cluster, .site-header .header-right { gap: 6px; }
  .site-header :is(.nav-theme-toggle, .customer-notif__btn, .mobile-toggle), .site-header .mobile-notif-login { width: 34px; height: 34px; min-width: 34px; }
  .site-header .nav-search-inner { padding-inline: 7px; }
  .mobile-bottom-nav { left: 12px; right: 12px; gap: 3px; }
  .mobile-bottom-nav .mobile-bottom-nav__topup { width: 47px; height: 47px; min-height: 47px; }
}
