/* critical.css bundle: theme + theme-lootlee + base */

/* ===== theme.css ===== */
/* CSS переменные определены в theme-lootlee.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text);
}

.btn-primary:hover {
  box-shadow: 0 0 0 3px var(--glow-amber), var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 9, 17, 0.6);
  border-color: var(--border-strong);
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input::placeholder {
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.badge-success {
  background: var(--status-success);
  color: var(--text-inverse);
}

.badge-warning {
  background: var(--status-warning);
  color: var(--text-inverse);
}

.badge-error {
  background: var(--status-error);
  color: var(--text-inverse);
}

.badge-info {
  background: var(--status-info);
  color: var(--text-inverse);
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 10px 16px;
  }

  .card {
    padding: 18px;
  }
}

/* ===== theme-lootlee.css ===== */
:root {
  /* Unified foundation tokens */
  --bg-0: #0b0d14;
  --bg-1: #10131d;
  --bg-2: #151927;
  --bg-3: #1b2030;
  --surface-1: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --surface-3: rgba(255,255,255,.08);
  --border-soft: rgba(255,255,255,.08);
  --border-mid: rgba(255,255,255,.12);
  --border-strong: rgba(255,255,255,.18);
  --text-1: rgba(255,255,255,.96);
  --text-2: rgba(255,255,255,.78);
  --text-3: rgba(255,255,255,.56);
  --bg: #191820;
  --bg-deep: #18171F;

  --surface: #1E1D26;
  --surface-base: #26252D;
  --surface-input: #2F2932;
  --surface-raised: #312830;
  --surface-row: #27222C;
  --surface-row-alt: #2C252D;

  --border: #312830;
  --border-highlight: #343039;

  --text: #FEFCFA;
  --text-heading: #FDD8B8;
  --text-secondary: #CFA6A1;
  --text-muted: #BA9591;
  --text-disabled: #725B5C;
  --text-accent: #FCB162;

  --accent-pink: #F46F72;
  --accent-peach: #FCAD7D;
  --accent-amber: #FCB462;
  --accent-orange: #F59F74;
  --metric: #F78E7C;

  --success: #98C176;
  --warning: #F98C47;
  --danger: #F46F72;

  --focus-ring: rgba(244, 111, 114, 0.35);
  --glow-amber: rgba(252, 180, 98, 0.12);

  --gradient-primary: linear-gradient(90deg, #F46F72 0%, #FCAD7D 52%, #FCB462 100%);
  --gradient-tab: linear-gradient(90deg, #EF7A69 0%, #FAA264 100%);

  /* Glass tokens — прозрачное стекло без свечения */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-fallback: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(254, 252, 250, 0.12);
  --glass-shadow: none;
  --glass-blur: 12px;
  --glass-highlight: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  --glass-noise-opacity: 0;

  /* Typography tokens */
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-body: 14px;
  --fs-small: 12px;
  --lh-tight: 1.2;
  --lh-normal: 1.5;

  /* Spacing tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Совместимость со старыми переменными */
  --bg-primary: var(--bg);
  --bg-secondary: var(--surface);
  --bg-elevated: var(--surface-base);
  --bg-overlay: rgba(0,0,0,0.6);
  
  --text-primary: var(--text);
  --text-inverse: var(--bg-deep);
  
  --accent-primary: var(--accent-amber);
  --accent-secondary: var(--accent-peach);
  --accent-tertiary: var(--accent-orange);
  
  --status-success: var(--success);
  --status-warning: var(--warning);
  --status-error: var(--danger);
  --status-info: var(--accent-peach);
  
  --border-subtle: var(--border);
  --border-strong: var(--border-highlight);
  
  --font-primary: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-soft: 0 4px 12px rgba(14, 9, 17, 0.6);
  --shadow-glow: 0 0 20px var(--glow-amber);
}

/* ===== base.css ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --header-top-gap: 0px;
}

html,
body {
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select,
option {
    font-family: var(--font-primary);
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (min-width: 768px) {
    .btnBackMobile,
    .footerMobile,
    .footerAccordion,
    .footerBottomMobile,
    .mobileNav,
    .mobileToolbar,
    .mobileActions,
    .mobileSheet {
        display: none !important;
    }
}

.glass-panel {
    position: relative;
    background: var(--glass-bg-fallback);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-panel {
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

/* Прозрачное стекло на страницах аккаунта */
body.profile-page .hero,
body.profile-page .card,
body.profile-page .tile,
body.profile-page .sellerRating,
body.seller-profile-page .sellerHero,
body.seller-profile-page .tabsBar,
body.seller-profile-page .section,
body.seller-profile-page .pCard,
body.seller-profile-page .rvCard,
body.balance-page .card,
body.sales-page .card,
body.my-products-page .card,
body.orders-list-page .orders-table,
body.settings-page .card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background: var(--glass-highlight);
}

.glass-panel::after {
    content: none;
}

@media (prefers-reduced-transparency: reduce) {
    .glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
    }
}

.glass,
.header-content.glass,
.section-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Unified liquid-glass surface for account/sales pages */
body.profile-page .hero,
body.profile-page .card,
body.balance-page .card,
body.sales-page .card,
body.my-products-page .card,
body.orders-list-page .orders-table,
body.settings-page .card,
body.change-password-page .card {
    background: var(--glass-bg-fallback) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.profile-page .hero,
    body.profile-page .card,
    body.balance-page .card,
    body.sales-page .card,
    body.my-products-page .card,
    body.orders-list-page .orders-table,
    body.settings-page .card,
    body.change-password-page .card {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(var(--glass-blur)) saturate(140%);
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    }
}

/* Single back-button look (same as settings) */
a#btnBack.btn.btn-ghost,
a#btnBackProfile.btn.btn-ghost,
a#btnBackSettings.btn.btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

a#btnBack.btn.btn-ghost:hover,
a#btnBackProfile.btn.btn-ghost:hover,
a#btnBackSettings.btn.btn-ghost:hover {
    background: rgba(255,255,255,.06) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.header {
    height: auto;
    background: transparent;
    border-bottom: 0;
    position: sticky;
    top: 0;
    margin-top: 0;
    z-index: 1000;
    padding-top: 8px;
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
}

.header.is-hidden {
    transform: translateY(-12px);
    opacity: .98;
}

.site-header {
    transition:
        transform 0.25s ease,
        padding 0.25s ease,
        border-radius 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    gap: 24px;
}

.header-content.glass {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding: 8px 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
    box-shadow: none;
}

.header-content.glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    border-radius: 22px 22px 0 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
}

.header-content.glass.js-site-header {
    position: relative;
    top: 0;
}

.header-content.glass.is-scrolled {
    transform: none;
    box-shadow: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.header-search {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    position: relative;
}

body.settings-page .header-search {
    display: none;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    background: rgba(7, 11, 19, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 6px 20px rgba(0, 0, 0, 0.14);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(252, 180, 98, 0.16);
}

.header-content.glass .header-action-btn,
.header-content.glass .login-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}

.header-content.glass .header-action-btn:hover,
.header-content.glass .login-btn:hover{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.22);
}

.header-content.glass .login-btn-icon {
    background: rgba(255, 255, 255, 0.08);
}

.header-content.glass .login-btn-icon .icon svg {
    opacity: 0.9;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 20px;
    height: 20px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(14, 9, 17, 0.6);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
    background: var(--bg-elevated);
    outline: none;
}

.search-result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.header-action-btn .icon {
    width: 19px;
    height: 19px;
}

.header-action-btn .icon svg {
    stroke: currentColor;
}

.badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--status-error);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
}

.badge-count:empty {
    display: none;
}

.chatHeaderUnreadBadge{
    background: #ff3b30;
    color: #fff;
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: 0 6px 14px rgba(255,59,48,.35);
    padding: 0 6px;
}

.mobile-bottom-nav .mb-item[data-nav="chat"]{
    position: relative;
}

.mobileChatUnreadBadge{
    top: 4px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    background: #ff3b30;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    box-shadow: 0 8px 16px rgba(255,59,48,.38);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

.login-btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn-icon .icon {
    width: 14px;
    height: 14px;
}

.login-btn-icon .icon svg {
    stroke: currentColor;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.alert-success {
    background: rgba(152, 193, 118, 0.1);
    border-color: var(--status-success);
    color: var(--status-success);
}

.alert-error {
    background: rgba(244, 111, 114, 0.92);
    border-color: rgba(255, 144, 148, 0.9);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(244, 111, 114, 0.18), 0 10px 26px rgba(0, 0, 0, 0.2);
}

.alert-info {
    background: rgba(252, 173, 125, 0.1);
    border-color: var(--status-info);
    color: var(--status-info);
}

.footer {
    position: relative;
    background:
        linear-gradient(180deg,
            rgba(12, 15, 24, 0.26) 0%,
            rgba(10, 13, 22, 0.42) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 18px 56px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(28px) saturate(155%);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    padding: 64px 0 24px;
    margin-top: 80px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 38%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social-grid{
    display:flex;
    align-items:flex-start;
    gap:14px;
    flex-wrap:wrap;
}
.footer-social-grid--mobile{
    display:none !important;
    justify-content:center;
    margin-bottom:12px;
}
.footer-social-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    min-width:52px;
}
.footer-social-icon-link{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border:0;
    background:transparent;
    border-radius:0;
    text-decoration:none;
}
.footer-social-icon-link img{
    width:32px;
    height:32px;
    max-width:32px;
    max-height:32px;
    object-fit:contain;
    display:block;
}
.footer-social-icon-link span{
    font-size:22px;
    font-weight:800;
    color:var(--text-primary);
}
.footer-social-name{
    font-size:12px;
    font-weight:700;
    color:var(--text-secondary);
    text-decoration:none;
    line-height:1.2;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-mobile-links{
    display:none;
}

.mobile-bottom-nav{
    display:none;
}

body.no-header-nav-page .header,
body.no-header-nav-page .mobile-bottom-nav{
    display: none !important;
}

body.no-header-page .header{
    display: none !important;
}

body.no-header-page main{
    padding-top: 0 !important;
}

body.product-create-page .header,
body.product-create-page .mobile-bottom-nav{
    display: none !important;
}

body.no-header-nav-page main{
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    body:not(.chat-page):not(.chat-dialog-page):not(.auth-page):not(.auth-flow-page):not(.no-header-nav-page):not(.product-create-page) main{
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    .header {
        position: sticky;
        top: 0;
        transform: none !important;
        opacity: 1 !important;
    }

    main {
        --m-gutter: 16px;
    }

    main h1,
    main .h1,
    main .page-title {
        font-size: clamp(30px, 8vw, 34px) !important;
        line-height: 1.1;
    }

    main h2,
    main .h2,
    main .section-title {
        font-size: clamp(22px, 6.2vw, 28px) !important;
        line-height: 1.15;
    }

    main h3 {
        font-size: clamp(16px, 4.8vw, 20px);
        line-height: 1.2;
    }

    main p,
    main .p,
    main .sub,
    main .section-subtitle {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    main small,
    main .muted,
    main .dim {
        font-size: clamp(12px, 3.3vw, 14px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer{
        padding: 24px 0 calc(112px + env(safe-area-inset-bottom, 0px));
        margin-top: 32px;
    }

    body.no-header-nav-page .footer,
    body.product-create-page .footer{
        padding: 24px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    }

    body.no-header-nav-page main{
        min-height: calc(100dvh - 220px);
    }

    .footer-content{
        display:none;
    }

    .footer-bottom{
        border-top:0;
        padding-top:0;
        font-size:12px;
        opacity:.82;
    }

    .footer-mobile-links{
        display:flex;
        justify-content:center;
        gap:14px;
        margin-bottom:10px;
        flex-wrap:wrap;
    }

    .footer-social-grid{
        gap:12px;
    }
    .footer-bottom .footer-social-grid--mobile{
        display:flex !important;
    }
    .footer-social-icon-link{
        width:36px;
        height:36px;
    }
    .footer-social-icon-link img{
        width:32px;
        height:32px;
    }

    .footer-mobile-links a{
        color:var(--text-secondary);
        text-decoration:none;
        font-size:12px;
        font-weight:700;
    }

    body.active-purchase-page .footer{
        padding: 30px 0 calc(98px + env(safe-area-inset-bottom, 0px));
    }

    body.active-purchase-page .footer-content{
        display:grid;
    }

    body.active-purchase-page .footer-mobile-links{
        display:none;
    }

    .mobile-bottom-nav{
        position:fixed;
        left:16px;
        right:16px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        display:flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items:center;
        padding:5px 7px;
        border-radius:999px;
        z-index:1300;
        background:
            linear-gradient(180deg,
                rgba(14, 18, 28, 0.56) 0%,
                rgba(10, 13, 22, 0.62) 100%);
        border: 0;
        box-shadow:
            0 12px 32px rgba(0,0,0,.34),
            inset 0 1px 0 rgba(255,255,255,.08);
        overflow: hidden;
        backdrop-filter: blur(20px) saturate(138%);
        -webkit-backdrop-filter: blur(20px) saturate(138%);
    }

    .mobile-bottom-nav__row{
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .mb-item{
        flex: 1 1 0;
        min-width: 0;
        min-height:54px;
        border-radius:999px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:5px;
        color:rgba(255,255,255,.9);
        font-size:11px;
        font-weight:800;
        text-decoration:none;
        text-align:center;
        padding:7px 4px;
        background: transparent;
        border: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .mb-item--cta{
        background: transparent;
    }

    .mb-item svg{
        width:20px;
        height:20px;
        stroke:currentColor;
        fill:none;
        stroke-width:1.9;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .mb-label{
        line-height:1;
        opacity:.94;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mb-item:active{
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.98);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    .mb-item.is-pressed{
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.98);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    .mb-item--primary{
        background: var(--accent-amber);
        color: #fff;
        font-weight:900;
        transform: none;
        min-height:56px;
        border-radius: 14px;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.16),
            0 0 0 1px rgba(252,180,98,.48),
            0 0 14px rgba(252,180,98,.26);
    }

    .mb-item--primary .mb-label{
        color:#fff;
        opacity:1;
        padding: 0 2px 1px;
    }

    .mb-item--primary svg{
        stroke:#fff;
    }

    .mb-item--primary:active{
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.16),
            0 0 0 1px rgba(252,180,98,.42);
    }

    body.chat-dialog-page .mobile-bottom-nav,
    body.chat-page.chat-pane-open .mobile-bottom-nav,
    body.settings-page .mobile-bottom-nav,
    body.change-password-page .mobile-bottom-nav,
    body.auth-page .mobile-bottom-nav,
    body.auth-flow-page .mobile-bottom-nav,
    body.no-header-nav-page .mobile-bottom-nav{
        display:none !important;
    }

    .header-content .logo-image {
        display: none;
    }

    .header-content .logo-text span {
        color: #fff;
        background-image: none;
        -webkit-text-fill-color: #fff;
        font-weight: 900;
        font-size: 1.42rem;
        line-height: 1.05;
    }
}

@media (max-width: 900px) {
    :root {
        --header-top-gap: 0px;
    }

    .header {
        height: auto;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 0 0;
        top: 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
        height: auto;
        align-content: flex-start;
    }

    .header-content.glass {
        padding: 8px 12px;
        border-radius: 20px;
        backdrop-filter: blur(14px) saturate(136%);
        -webkit-backdrop-filter: blur(14px) saturate(136%);
    }

    .header-content.glass.js-site-header {
        top: 8px;
    }

    .header-content > .logo-wrapper {
        order: 1;
    }

    .header-search {
        order: 2;
        width: 100%;
        max-width: none;
    }

    body.chat-page .header-search,
    body.chat-dialog-page .header-search {
        display: none;
    }

    body.profile-page .header-search {
        display: none;
    }

    body.settings-page .header-search,
    body.no-header-nav-page .header-search,
    body.info-page .header-search,
    body.active-purchase-page .header-search {
        display: none;
    }

    .header-actions {
        order: 1;
        gap: 8px;
        margin-left: auto;
    }

    .login-btn {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    body.chat-page .header-search,
    body.chat-dialog-page .header-search,
    body.info-page .header-search,
    body.active-purchase-page .header-search {
        display: none;
    }

    body.chat-dialog-page .header {
        padding: 4px 0 0;
    }

    .header {
        padding: calc(4px + env(safe-area-inset-top, 0px)) 0 0;
    }

    .header-content {
        gap: 8px;
        align-items: flex-start;
        align-content: flex-start;
        justify-content: space-between;
        height: auto;
    }

    .header-content.glass {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
    }

    .header-content.glass::before,
    .header-content.glass::after {
        content: none;
    }

    .header-content > .logo-wrapper {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        align-self: flex-start;
        padding: 2px 2px 0;
    }

    .header-search {
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        margin-top: 2px;
    }

    .header-content .logo {
        gap: 0;
        min-width: 0;
    }

    .header-content .logo-image {
        display: none;
    }

    .header-content .logo-text span {
        color: #fff;
        background-image: none;
        -webkit-text-fill-color: #fff;
        font-size: 1.35rem;
        font-weight: 900;
        letter-spacing: -0.01em;
    }

    .search-input {
        height: 40px;
        border-radius: 14px;
        font-size: 14px;
        padding: 0 12px 0 36px;
        background: rgba(7, 11, 19, 0.42);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 5px 14px rgba(0, 0, 0, 0.18);
    }

    .search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .header-actions {
        order: 1;
        width: auto;
        justify-content: flex-end;
        align-self: center;
        flex: 0 0 auto;
        display:none;
    }

    .login-btn span {
        display: none;
    }

    .header-content.glass.is-scrolled {
        transform: none;
    }

}

.overlay.isOpen,
.backdrop.isOn,
.modal-overlay.active,
.section-modal.active,
.buy-modal-overlay.isOpen {
    z-index: 5000 !important;
}

/* ── Global Toast ── */
.g-toast-wrap{
  position:fixed;
  top:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:99999;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  pointer-events:none;
  width:max-content;
  max-width:calc(100% - 32px);
}
.g-toast{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 20px;
  border-radius:16px;
  border:1px solid var(--border-subtle, #312830);
  background:var(--surface, #1E1D26);
  box-shadow:0 12px 40px rgba(14,9,17,.7), 0 0 0 1px rgba(255,255,255,.04);
  font-size:14px;
  font-weight:700;
  color:var(--text, #FEFCFA);
  opacity:0;
  transform:translateY(-16px) scale(.96);
  animation:gToastIn .35s cubic-bezier(.2,.8,.2,1) forwards;
  max-width:420px;
  line-height:1.4;
}
.g-toast.g-toast--out{
  animation:gToastOut .25s cubic-bezier(.4,0,1,1) forwards;
}
.g-toast__icon{
  flex:0 0 auto;
  width:22px;height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.g-toast__icon svg{
  width:14px;height:14px;
  fill:#fff;
}
.g-toast--success .g-toast__icon{background:var(--success, #98C176)}
.g-toast--error   .g-toast__icon{background:var(--danger, #F46F72)}
.g-toast--info    .g-toast__icon{background:var(--accent-amber, #FCB462)}
.g-toast--warning .g-toast__icon{background:var(--warning, #F98C47)}

.g-toast--success{border-color:rgba(152,193,118,.3)}
.g-toast--error  {border-color:rgba(244,111,114,.3)}
.g-toast--info   {border-color:rgba(252,180,98,.3)}
.g-toast--warning{border-color:rgba(249,140,71,.3)}

@keyframes gToastIn{
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes gToastOut{
  from{opacity:1;transform:translateY(0) scale(1)}
  to{opacity:0;transform:translateY(-12px) scale(.96)}
}
@media(max-width:560px){
  .g-toast-wrap{top:12px}
  .g-toast{font-size:13px;padding:12px 16px;border-radius:14px;max-width:calc(100vw - 32px)}
}
