* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
textarea {
  resize: none !important;
}
:root {
  --primary-color: #5c6ef8;
  --primary-hover: #4854e5;
  --secondary-color: #8b5cf6;
  --text-primary: #1f2335;
  --text-secondary: #5a6072;
  --text-muted: #5a6072;
  --surface-elevated: #ffffff;
  --bg-primary: #f4f5fb;
  --bg-secondary: #eef1fb;
  --bg-tertiary: #e1e5f5;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --border-color: #d3d8ec;
  --success-color: #22c55e;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --discount-color: #16a34a;
  --discount-color-soft: rgba(22, 163, 74, 0.14);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 28px rgba(15, 23, 42, 0.15);
  --shadow-xl: 0 24px 40px rgba(15, 23, 42, 0.18);
  --section-wide-width: calc(100% - 20px);
  --main-content-highlight-bg: #e2e6f2;
  --site-header-h: 58px;
  --field-font-size: clamp(14px, 0.45vw + 12.5px, 16px);
}
#serverUnavailableBanner {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647 !important;
  pointer-events: auto;
  box-sizing: border-box;
}
[data-theme=dark] {
  --primary-color: #6b7ef8;
  --primary-hover: #5a6ae8;
  --secondary-color: #9b6cf6;
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3b8;
  --text-muted: #b0b3b8;
  --surface-elevated: #1e1e1e;
  --bg-primary: #1a1a1a;
  --bg-secondary: #161616;
  --bg-tertiary: #1e1e1e;
  --card-bg: #1a1a1a;
  --input-bg: #2a2a2a;
  --border-color: #2d2d2d;
  --success-color: #22c55e;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --discount-color: #4ade80;
  --discount-color-soft: rgba(74, 222, 128, 0.16);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 28px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 40px rgba(0, 0, 0, 0.6);
  --main-content-highlight-bg: #121212;
}
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-primary, #f4f5fb);
  color-scheme: light;
}
html[data-theme=dark] {
  background-color: var(--bg-primary, #1a1a1a);
  color-scheme: dark;
}
:root {
  --sellpay-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme=dark] {
  --sellpay-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select:not([hidden]):not([aria-hidden=true]):not([multiple]):not([size]) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: var(--sellpay-select-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  padding-right: 2.4em !important;
  cursor: pointer;
}
select:not([hidden]):not([aria-hidden=true]):not([multiple]):not([size])::-ms-expand {
  display: none;
}
select:not([hidden]):not([aria-hidden=true]):not([multiple]):not([size]):focus {
  outline: none;
}
select:not([hidden]):not([aria-hidden=true]):not([multiple]):not([size]) option {
  background-color: var(--bg-primary, #fff);
  color: var(--text-primary, #111);
}
.sellpay-load-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  background: var(--bg-primary, #f4f5fb);
  transition: opacity 0.18s ease;
}
html[data-theme=dark] .sellpay-load-overlay {
  background: #010409;
}
.sellpay-load-face {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}
.sellpay-load-face__emoji {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.sellpay-load-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 3px solid color-mix(in srgb, var(--primary-color, #5c6ef8) 18%, transparent);
  border-top-color: var(--primary-color, #5c6ef8);
  animation: sellpayLoadSpin 0.7s linear infinite;
}
.sellpay-load-overlay.is-done {
  opacity: 0;
  pointer-events: none;
}
@keyframes sellpayLoadSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sellpay-load-overlay .sellpay-load-face {
    display: none !important;
  }
  .sellpay-load-spinner {
    animation: none !important;
  }
}
@media (min-width: 769px) {
  html[data-theme=dark]:has(body.home-page),
  html[data-theme=dark] body.home-page {
    background-color: #010409;
  }
  html:not([data-theme=dark]):has(body.home-page),
  html:not([data-theme=dark]) body.home-page {
    background-color: #7a89f2;
  }
  body.home-page {
    background: #7a89f2;
  }
  html[data-theme=dark] body.home-page {
    background: #010409;
  }
  html:not([data-theme=dark]) body.home-page .main-content-highlight-wrap {
    background: var(--bg-primary);
    border-radius: 0;
    margin: 0;
    padding-top: 24px;
    padding-bottom: 28px;
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }
  html[data-theme=dark] body.home-page .main-content-highlight-wrap {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding-top: 24px;
    padding-bottom: 28px;
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }
  html:not([data-theme=dark]) body.home-page .main-content-highlight-wrap > section {
    width: 1480px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  html[data-theme=dark] body.home-page .main-content-highlight-wrap > section {
    width: 1480px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  html:not([data-theme=dark]) body.home-page > .footer {
    background: var(--bg-primary);
    margin-top: 0;
  }
  html[data-theme=dark] body.home-page > .footer {
    background: transparent;
    margin-top: 0;
  }
  html:not([data-theme=dark]) body.home-page > .viewed-lots-section {
    background: var(--bg-primary);
    margin-top: 0;
    margin-bottom: 0;
    padding: 42px 0 16px;
  }
  html[data-theme=dark] body.home-page > .viewed-lots-section {
    background: transparent;
    margin-top: 0;
    margin-bottom: 0;
    padding: 42px 0 16px;
  }
  html:not([data-theme=dark]) body.home-page > .games-section {
    background: var(--bg-primary);
    margin-top: 0;
  }
  html[data-theme=dark] body.home-page > .games-section {
    background: transparent;
    margin-top: 0;
  }
}
html body {
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
textarea::-webkit-scrollbar-button,
select::-webkit-scrollbar-button,
.form-textarea::-webkit-scrollbar-button,
.chat-input-textarea::-webkit-scrollbar-button,
.modal .modal-content::-webkit-scrollbar-button,
.modal .modal-body::-webkit-scrollbar-button,
.settings-menu .modal-content::-webkit-scrollbar-button,
#profileSettingsModal .modal-content::-webkit-scrollbar-button,
.profile-settings-modal-content::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary, #121212);
  border-left: 1px solid var(--border-color, #2d2d2d);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary, #1e1e1e);
  border: 2px solid var(--bg-secondary, #121212);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-color, #2d2d2d);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary, #1e1e1e) var(--bg-secondary, #121212);
}
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: clamp(14px, 0.25vw + 13.5px, 15px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lot-price,
.order-lot-price,
.seller-rating-value,
.balance-amount,
#orderNumber,
.timer-count {
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1100px) {
  html[data-theme=dark]:not(:has(body.chat-page)):not(:has(body.account-banned-page)) {
    background-color: var(--bg-primary) !important;
  }
  html:not([data-theme=dark]):not(:has(body.chat-page)):not(:has(body.account-banned-page)) {
    background-color: #f4f5fb !important;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page),
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) {
    background-color: transparent !important;
    background-image: none !important;
    isolation: isolate;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page)::before,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-repeat: repeat;
    background-position: center top;
    background-size: 420px 420px;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page)::before {
    background-image: url(/baze/site-gaming-pattern.webp?v=20260813pat3);
    opacity: 0.09;
  }
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page)::before {
    background-image: url(/baze/site-gaming-pattern-light.webp?v=20260813light1);
    opacity: 0.22;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .category-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .rules-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .games-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .viewed-lots-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .profile-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .main-content-highlight-wrap,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page .main-content-highlight-wrap,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .footer,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .viewed-lots-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .games-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).help-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).about-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).contacts-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).support-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .rules-accordion-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .faq-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .category-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .rules-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .games-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .viewed-lots-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .profile-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .main-content-highlight-wrap,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page .main-content-highlight-wrap,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .footer,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .viewed-lots-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .games-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).help-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).about-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).contacts-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).support-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .rules-accordion-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .faq-section {
    background-color: transparent !important;
    background-image: none !important;
  }
  html[data-theme=dark] body.help-page .rules-accordion-section,
  html[data-theme=dark] body.help-page .faq-section {
    background:
      radial-gradient(
        820px 400px at 8% -8%,
        color-mix(in srgb, var(--primary-color) 18%, transparent),
        transparent 58%),
      radial-gradient(
        640px 360px at 96% 4%,
        color-mix(in srgb, #9b7cf0 14%, transparent),
        transparent 52%),
      radial-gradient(
        520px 280px at 50% 100%,
        color-mix(in srgb, #5ec8e8 10%, transparent),
        transparent 55%),
      var(--bg-primary) !important;
  }
  html:not([data-theme=dark]) body.help-page .rules-accordion-section,
  html:not([data-theme=dark]) body.help-page .faq-section {
    background:
      radial-gradient(
        720px 360px at 10% 6%,
        rgba(92, 110, 248, 0.22),
        transparent 58%),
      radial-gradient(
        580px 320px at 94% 12%,
        rgba(155, 124, 240, 0.2),
        transparent 55%),
      radial-gradient(
        640px 340px at 48% 100%,
        rgba(94, 200, 232, 0.24),
        transparent 58%),
      radial-gradient(
        420px 240px at 8% 88%,
        rgba(255, 130, 190, 0.14),
        transparent 60%),
      var(--bg-primary) !important;
  }
}
@media (max-width: 1099px) {
  html[data-theme=dark]:not(:has(body.chat-page)):not(:has(body.account-banned-page)) {
    background-color: var(--bg-primary) !important;
  }
  html:not([data-theme=dark]):not(:has(body.chat-page)):not(:has(body.account-banned-page)) {
    background-color: #f4f5fb !important;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page),
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) {
    background-color: transparent !important;
    background-image: none !important;
    isolation: isolate;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page)::before,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-repeat: repeat;
    background-position: center top;
    background-size: 420px 420px;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page)::before {
    background-image: url(/baze/site-gaming-pattern.webp?v=20260813pat3);
    opacity: 0.09;
  }
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page)::before {
    background-image: url(/baze/site-gaming-pattern-light.webp?v=20260813light1);
    opacity: 0.22;
  }
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .category-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .rules-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .games-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .viewed-lots-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .profile-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .main-content-highlight-wrap,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page .main-content-highlight-wrap,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .footer,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .viewed-lots-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).home-page > .games-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).help-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).about-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).contacts-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page).support-page,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .rules-accordion-section,
  html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .faq-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .category-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .rules-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .games-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .viewed-lots-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .profile-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .main-content-highlight-wrap,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page .main-content-highlight-wrap,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .footer,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .viewed-lots-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).home-page > .games-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).help-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).about-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).contacts-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page).support-page,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .rules-accordion-section,
  html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .faq-section {
    background-color: transparent !important;
    background-image: none !important;
  }
  html[data-theme=dark] body.help-page .rules-accordion-section,
  html[data-theme=dark] body.help-page .faq-section {
    background:
      radial-gradient(
        820px 400px at 8% -8%,
        color-mix(in srgb, var(--primary-color) 18%, transparent),
        transparent 58%),
      radial-gradient(
        640px 360px at 96% 4%,
        color-mix(in srgb, #9b7cf0 14%, transparent),
        transparent 52%),
      radial-gradient(
        520px 280px at 50% 100%,
        color-mix(in srgb, #5ec8e8 10%, transparent),
        transparent 55%),
      var(--bg-primary) !important;
  }
  html:not([data-theme=dark]) body.help-page .rules-accordion-section,
  html:not([data-theme=dark]) body.help-page .faq-section {
    background:
      radial-gradient(
        720px 360px at 10% 6%,
        rgba(92, 110, 248, 0.22),
        transparent 58%),
      radial-gradient(
        580px 320px at 94% 12%,
        rgba(155, 124, 240, 0.2),
        transparent 55%),
      radial-gradient(
        640px 340px at 48% 100%,
        rgba(94, 200, 232, 0.24),
        transparent 58%),
      radial-gradient(
        420px 240px at 8% 88%,
        rgba(255, 130, 190, 0.14),
        transparent 60%),
      var(--bg-primary) !important;
  }
}
html:has(body.solid-page-bg),
html:has(body.my-game-lots-body),
html:has(.my-game-lots-page),
html:has(.lot-view-page),
body.solid-page-bg,
body.my-game-lots-body,
body:has(.my-game-lots-page),
body:has(.lot-view-page) {
  background-color: var(--bg-primary) !important;
  background-image: none !important;
}
html[data-theme=dark]:has(body.solid-page-bg),
html[data-theme=dark]:has(body.my-game-lots-body),
html[data-theme=dark]:has(.my-game-lots-page),
html[data-theme=dark]:has(.lot-view-page) {
  background-color: var(--bg-primary) !important;
}
body.solid-page-bg::before,
body.my-game-lots-body::before,
body:has(.my-game-lots-page)::before,
body:has(.lot-view-page)::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
@media (min-width: 769px) {
  body.solid-page-bg .header,
  body.my-game-lots-body .header,
  body:has(.my-game-lots-page) .header,
  body:has(.lot-view-page) .header {
    background: var(--bg-primary);
  }
}
body.solid-page-bg .header::before,
body.my-game-lots-body .header::before,
body:has(.my-game-lots-page) .header::before,
body:has(.lot-view-page) .header::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
html.admin-guard-locked body {
  opacity: 0;
  pointer-events: none;
}
.profile-link-plain,
.profile-link-plain:hover,
.profile-link-plain:focus {
  text-decoration: none !important;
  color: inherit;
}
.admin-guard-denied {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.08),
      rgba(0, 0, 0, 0.65)),
    var(--bg-primary);
  padding: 40px 16px;
}
.admin-guard-card {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
  padding: 48px 40px;
  max-width: 420px;
  text-align: center;
}
.admin-guard-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.admin-guard-card h1 {
  margin-bottom: 12px;
}
.admin-guard-card p {
  margin-bottom: 24px;
  color: var(--text-secondary);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.rules-section .container {
  max-width: 1600px;
  overflow: visible;
}
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 999998;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  position: sticky;
  top: 0;
}
html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .header {
  background-color: var(--bg-primary);
  background-image: none;
  box-shadow: none;
  isolation: isolate;
}
html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url(/baze/site-gaming-pattern.webp?v=20260813pat3);
  background-repeat: repeat;
  background-size: 420px 420px;
  background-position: center top;
  background-attachment: fixed;
  opacity: 0.09;
}
html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .header {
  background-color: var(--bg-primary);
  background-image: none;
  box-shadow: none;
  isolation: isolate;
}
html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url(/baze/site-gaming-pattern-light.webp?v=20260813light1);
  background-repeat: repeat;
  background-size: 420px 420px;
  background-position: center top;
  background-attachment: fixed;
  opacity: 0.22;
}
html[data-theme=dark] body:not(.chat-page):not(.account-banned-page) .header > .container,
html:not([data-theme=dark]) body:not(.chat-page):not(.account-banned-page) .header > .container {
  position: relative;
  z-index: 1;
}
.header > .container {
  overflow: visible;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  gap: 24px;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 0;
  padding-left: 0;
}
.header .logo {
  flex-shrink: 0;
  position: static;
}
.header .logo-img,
.logo-img {
  display: none !important;
}
@media (min-width: 769px) {
  :root {
    --site-header-h: 66px;
  }
  .header {
    background: var(--bg-primary);
    border-bottom: none;
    box-shadow: none;
    padding: 0 20px;
    width: 100%;
  }
  html[data-theme=dark] body.home-page .header,
  html:not([data-theme=dark]) body.home-page .header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
  }
  html[data-theme=dark] body.home-page .header::before,
  html:not([data-theme=dark]) body.home-page .header::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
  }
  html[data-theme=dark]:has(body.home-page) {
    background-color: #010409 !important;
    background-image: none !important;
  }
  html:not([data-theme=dark]):has(body.home-page) {
    background-color: #7a89f2 !important;
    background-image: none !important;
  }
  html[data-theme=dark] body.home-page,
  html:not([data-theme=dark]) body.home-page {
    background-color: transparent !important;
    background-image: none !important;
  }
  html[data-theme=dark] body.home-page::before,
  html:not([data-theme=dark]) body.home-page::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 420px 420px !important;
    background-attachment: fixed !important;
  }
  html[data-theme=dark] body.home-page::before {
    background-image: url(/baze/site-gaming-pattern.webp?v=20260813pat3) !important;
    opacity: 0.09 !important;
  }
  html:not([data-theme=dark]) body.home-page::before {
    background-image: url(/baze/site-gaming-pattern-light.webp?v=20260813light1) !important;
    opacity: 0.18 !important;
  }
  body.home-page .header {
    background: transparent;
  }
  body.help-page .header,
  body.support-page .header,
  body.about-page .header,
  body.contacts-page .header,
  body.mi-page .header,
  body:has(#gameCategoryHero:not([hidden])) .header {
    background: transparent !important;
  }
  body.help-page .header::before,
  body.support-page .header::before,
  body.about-page .header::before,
  body.contacts-page .header::before,
  body.mi-page .header::before,
  body:has(#gameCategoryHero:not([hidden])) .header::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
  }
  .header > .container {
    max-width: min(1400px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
  }
  .header > .container,
  body.home-page .header > .container,
  body.help-page .header > .container,
  body.support-page .header > .container,
  body.about-page .header > .container,
  body.contacts-page .header > .container,
  body.mi-page .header > .container,
  body:has(#gameCategoryHero:not([hidden])) .header > .container {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
  }
  .header-content {
    padding: 10px 0;
  }
  .header-left {
    padding-left: 0;
  }
}
.logo a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  display: none !important;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img-theme {
  display: none;
  height: 16px;
  width: auto;
  max-height: 16px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  transform: translateY(2.5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo a:hover .logo-img-theme {
  opacity: 0.88;
}
.logo-img-dark {
  display: block;
}
.logo-img-light {
  display: none;
}
html:not([data-theme=dark]) .logo-img-dark {
  display: none !important;
}
html:not([data-theme=dark]) .logo-img-light {
  display: block !important;
}
.logo-text {
  display: none !important;
}
.main-nav {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  align-items: baseline;
}
.help-menu-container {
  position: relative;
  display: flex;
  align-items: baseline;
  z-index: 2147483647;
  isolation: isolate;
}
.help-menu-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.help-menu-btn:focus {
  outline: none;
}
.help-menu-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.help-menu-btn:hover {
  color: var(--primary-color);
}
.help-menu-btn.active {
  color: var(--primary-color);
}
.help-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.12s ease-out,
    visibility 0.12s ease-out,
    transform 0.12s ease-out;
  z-index: 2147483647;
  padding: 8px 0;
  isolation: isolate;
}
.help-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  left: auto !important;
  transition:
    opacity 0.12s ease-in,
    visibility 0.12s ease-in,
    transform 0.12s ease-in;
}
body > .user-dropdown,
body > .help-menu-dropdown {
  position: fixed !important;
  z-index: 2147483000 !important;
}
.help-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.help-menu-item:hover {
  background: var(--bg-tertiary);
}
.help-menu-item svg {
  flex-shrink: 0;
  display: block;
  color: var(--text-secondary);
}
.help-menu-item:hover svg {
  color: var(--primary-color);
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--primary-color);
}
.link-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.link-button:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.nav-item {
  position: relative;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-right: 20px;
}
#loginBtn,
#registerBtn {
  display: none;
}
.settings-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.78);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  position: relative;
  flex-shrink: 0;
}
html:not([data-theme=dark]) .settings-icon-btn {
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(100, 116, 139, 0.75);
}
.header-message-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.header-message-indicator:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.header-message-indicator.has-notifications {
  border-color: var(--primary-color);
  color: var(--primary-color);
  animation: pulse-notification 2s infinite;
}
.header-message-indicator svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
.header-message-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}
@keyframes pulse-notification {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(92, 110, 248, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(92, 110, 248, 0);
  }
}
.footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: none;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.rules-section {
  flex: 1 0 auto;
  min-height: 0;
  overflow: visible;
}
@media (min-width: 769px) {
}
.favorite-lots-modal-content {
  max-width: 760px;
  width: min(92vw, 760px);
}
.favorite-lots-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}
.favorite-lots-empty {
  color: var(--text-secondary);
  padding: 12px 2px;
}
.favorite-lot-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  overflow: hidden;
}
.favorite-lot-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.favorite-lot-item__cover {
  width: 86px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.favorite-lot-item__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
}
.favorite-lot-item__meta {
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.favorite-lot-item__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.favorite-lot-item__game {
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.favorite-lot-item__price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 20px;
}
.favorite-lot-item__remove {
  width: 38px;
  border: none;
  border-left: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}
.favorite-lot-item__remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.favorites-page {
  min-height: calc(100vh - 220px);
  padding: 26px 0 44px;
}
.favorites-page-header h1 {
  margin: 0;
  font-size: 30px;
}
.favorites-page-header p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}
.favorites-page-list {
  margin-top: 18px;
  max-height: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  overflow: visible;
  padding-right: 0;
}
.favorites-page-list .favorite-lot-item {
  position: relative;
}
.favorites-page-list .category-lot-card {
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
}
.favorites-page-list .favorite-lot-item__main {
  display: block;
}
.favorites-page-list .favorite-lot-item__meta {
  padding: 10px 12px 12px;
  gap: 2px;
}
.favorites-page-list .category-lot-rating {
  gap: 6px;
}
.favorites-page-list .lot-rating-stars {
  gap: 1px;
}
.favorites-page-list .favorite-lot-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #f3f4f6;
  z-index: 3;
  line-height: 1;
}
.favorites-page-list .favorite-lot-item__remove:hover {
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
  background: rgba(20, 20, 24, 0.78);
}
.favorites-page-list.favorite-lots-list .favorite-lot-item {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.favorites-page-list.favorite-lots-list .favorite-lot-item .category-lot-link {
  border: none;
  box-shadow: none;
}
.favorites-page-list.favorite-lots-list .favorite-lot-item .category-lot-link:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.favorites-page-list.favorite-lots-list .favorite-lot-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .favorites-page {
    padding: 18px 0 32px;
  }
  .favorites-page-header h1 {
    font-size: 22px;
  }
  .favorites-page-header p {
    font-size: 13px;
    margin-top: 6px;
  }
  .favorites-page-list {
    margin-top: 14px;
    gap: 10px;
  }
  .favorites-page-list .category-lot-link {
    border-radius: 12px;
  }
  .favorites-page-list .category-lot-image-wrapper {
    border-radius: 12px 12px 0 0;
  }
  .favorites-page-list .category-lot-body {
    padding: 8px 10px 10px;
    gap: 1px;
  }
  .favorites-page-list .category-lot-price-row {
    font-size: 18px;
  }
  .favorites-page-list .category-lot-title {
    font-size: 12px;
    line-height: 1.28;
  }
  .favorites-page-list .category-lot-meta {
    font-size: 10px;
    margin-top: 1px;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .favorites-page-list .lot-rating-stars {
    font-size: 11px;
  }
  .favorites-page-list .lot-rating-count {
    font-size: 10px;
  }
  .favorites-page-list .favorite-lot-item__remove {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .favorite-lots-list:not(.favorites-page-list) {
    gap: 8px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item {
    border-radius: 10px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item__meta {
    padding: 6px 8px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item__title {
    font-size: 13px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item__game {
    font-size: 11px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item__price {
    font-size: 16px;
  }
  .favorite-lots-list:not(.favorites-page-list) .favorite-lot-item__remove {
    width: 34px;
    font-size: 16px;
  }
  .viewed-lots-section {
    margin: 24px 0 12px;
  }
  .viewed-lots-toggle-btn {
    min-width: 0;
    padding: 3px 0;
    font-size: 12px;
    border: none;
    background: transparent;
  }
}
@media (min-width: 769px) {
}
.chat-admin-search {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.chat-admin-search[hidden] {
  display: none !important;
}
.chat-admin-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.chat-admin-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.chat-admin-input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  font-size: 14px;
}
.chat-admin-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.15);
}
.chat-admin-btn {
  width: 100%;
  justify-content: center;
}
.chat-empty-state {
  display: none;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
  background: var(--bg-primary);
}
.chat-empty-state__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 22rem;
}
.settings-icon-btn:hover {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}
html:not([data-theme=dark]) .settings-icon-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.16);
  color: #64748b;
}
.settings-icon-btn svg,
.settings-icon-btn .settings-icon-svg {
  width: 17px;
  height: 17px;
  display: block;
  opacity: 0.9;
}
.header-message-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.header-message-indicator:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}
.header-message-indicator.has-notifications {
  color: var(--primary-color);
  animation: messagePulse 2s infinite;
}
.header-message-indicator svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}
.header-message-indicator:hover svg {
  transform: scale(1.1);
}
.header-message-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  box-sizing: border-box;
  line-height: 1;
}
.header-message-badge:empty {
  display: none;
}
.header-message-indicator:not(.has-notifications) .header-message-badge {
  display: none;
}
@keyframes messagePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
.settings-form {
  padding: 20px 0;
}
.settings-form .form-group {
  margin-bottom: 20px;
}
.settings-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}
.settings-divider {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}
#settingsModal.settings-menu .modal-content {
  max-width: 820px;
  width: min(820px, 94vw);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
#settingsModal.settings-menu h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  border-bottom: none;
  color: var(--text-primary);
}
#settingsModal.settings-menu .settings-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#settingsModal.settings-menu .settings-menu-section {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
#settingsModal.settings-menu .settings-menu-section:last-of-type {
  margin-bottom: 0;
}
#settingsModal.settings-menu .settings-logout-section {
  background: transparent;
  padding: 0;
  margin: 0;
  border-top: none;
  border-radius: 0;
}
#settingsModal.settings-menu .settings-logout-btn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  font-weight: 600;
}
#settingsModal.settings-menu .settings-logout-btn:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}
#settingsModal.settings-guest .settings-logout-section {
  display: none !important;
}
#settingsModal.settings-menu .settings-menu-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}
#settingsModal.settings-menu .settings-menu-section .form-group {
  margin-bottom: 14px;
}
#settingsModal.settings-menu .settings-menu-section .form-group:last-child {
  margin-bottom: 0;
}
#settingsModal.settings-menu .settings-menu-section .form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
#settingsModal.settings-menu .settings-menu-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#settingsModal.settings-menu .settings-menu-buttons .btn {
  margin: 0;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}
#settingsModal.settings-menu .settings-menu-buttons #settingsAddPhoneBtn {
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 2px;
}
#settingsModal.settings-menu .settings-menu-buttons #settingsAddPhoneBtn .settings-tg-status {
  display: block;
  font-size: 0.8em;
  line-height: 1.2;
  opacity: 0.85;
}
#settingsModal.settings-menu .settings-menu-buttons #settingsAddPhoneBtn .settings-tg-label {
  display: block;
  font-size: 1em;
  line-height: 1.25;
}
#settingsModal.settings-menu .settings-menu-buttons #settingsAddPhoneBtn.is-linked .settings-tg-status {
  color: var(--success-color, #22c55e);
  opacity: 1;
}
@media (max-width: 380px) {
  #settingsModal.settings-menu .settings-menu-buttons {
    grid-template-columns: 1fr;
  }
  #settingsModal.settings-menu .settings-menu-buttons #settingsAddPhoneBtn {
    grid-column: auto;
  }
}
#settingsModal.settings-account-menu .modal-content.settings-account-menu-content {
  max-width: 800px;
  width: min(800px, 94vw);
  max-height: min(840px, calc(100vh - var(--site-header-h) - 36px));
  padding: 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
#settingsModal.settings-account-menu .modal-content::-webkit-scrollbar {
  width: 8px;
}
#settingsModal.settings-account-menu .modal-content::-webkit-scrollbar-track {
  background: transparent;
  border: none;
  margin-top: 18px;
  margin-bottom: 18px;
}
#settingsModal.settings-account-menu .modal-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
#settingsModal.settings-account-menu .settings-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}
#settingsModal.settings-account-menu h2,
#settingsModal.settings-account-menu .settings-menu-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
#settingsModal.settings-account-menu .settings-menu-title-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#settingsModal.settings-account-menu .settings-menu-title-icon svg {
  width: 20px;
  height: 20px;
}
#settingsModal.settings-account-menu .modal-close {
  position: static;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0;
  transform: none;
}
#settingsModal.settings-account-menu .modal-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary);
  transform: none;
}
#settingsModal.settings-account-menu .settings-form {
  padding: 0;
  gap: 0;
}
#settingsModal.settings-account-menu .settings-view {
  display: none;
}
#settingsModal.settings-account-menu .settings-view.is-active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-user-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease;
}
.settings-user-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.settings-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.settings-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #8b5cf6);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  border: 2px solid var(--bg-primary);
}
.settings-user-avatar.has-image {
  background-size: cover;
  background-position: center;
}
.settings-user-avatar-letter {
  line-height: 1;
  user-select: none;
}
.settings-user-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.settings-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.settings-user-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}
.settings-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.settings-role-badge.is-creator {
  background: rgba(168, 85, 247, 0.16);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.settings-role-badge.is-seller {
  background: rgba(59, 130, 246, 0.14);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.settings-role-badge.is-buyer {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.settings-user-id-row {
  display: flex;
  align-items: center;
}
.settings-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.settings-id-pill:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
}
.settings-id-pill.is-copied {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
  color: #10b981;
}
.settings-id-copy-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 14px;
  opacity: 0.75;
}
#settingsModal .settings-profile-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  flex-shrink: 0;
  border-radius: 10px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  white-space: nowrap;
}
#settingsModal .settings-profile-btn svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex: 0 0 16px;
}
#settingsModal .settings-profile-btn:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: var(--bg-primary) !important;
}
.settings-guest-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-guest-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-guest-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-guest-icon svg {
  width: 22px;
  height: 22px;
}
.settings-guest-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-guest-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.settings-guest-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}
.settings-guest-actions {
  display: flex;
  gap: 10px;
}
.settings-guest-actions .btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
  text-align: center;
  justify-content: center;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.settings-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.settings-col--left,
.settings-col--right {
  height: 100%;
}
.settings-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}
.settings-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.settings-group-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-group-icon svg,
.settings-item-icon svg,
.settings-choice-ico svg,
.settings-chevron svg,
.settings-logout-icon svg,
.settings-profile-btn-icon {
  display: block;
  flex: 0 0 auto;
}
.settings-group-icon svg,
.settings-menu-title-icon svg,
.settings-chevron svg,
.settings-logout-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.settings-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.settings-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.settings-pref-tile,
.settings-item-row {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  transition: all 0.18s ease;
  box-sizing: border-box;
  width: 100%;
}
.settings-pref-tile {
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.settings-pref-tile-head,
.settings-pref-top,
.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.settings-item-left {
  flex: 1;
}
.settings-pref-tile--lang {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-item-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.settings-item-row:hover {
  background: var(--surface-elevated, #20232e);
  border-color: rgba(92, 110, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.settings-item-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 9px;
  background: rgba(92, 110, 248, 0.12);
  color: var(--primary-color);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.settings-item-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.settings-appearance-mount,
.settings-appearance-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}
.settings-appearance-list {
  flex: 1 1 auto;
}
.settings-appearance-list > .settings-pref-tile {
  flex: 1 1 auto;
  justify-content: space-between;
}
.settings-item-row:hover .settings-item-icon {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(92, 110, 248, 0.35);
}
.settings-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.settings-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}
.settings-item-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-segmented {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  gap: 3px;
  width: 100%;
}
#settingsModal .settings-choice-pill,
#settingsModal .settings-seg-btn,
#settingsModal [data-theme-choice],
#settingsModal .settings-currency-pill,
#settingsModal [data-currency-choice] {
  flex: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  padding: 0 6px !important;
}
#settingsModal .settings-choice-pill:hover,
#settingsModal .settings-seg-btn:hover,
#settingsModal [data-theme-choice]:hover,
#settingsModal .settings-currency-pill:hover,
#settingsModal [data-currency-choice]:hover {
  color: var(--text-primary) !important;
}
#settingsModal .settings-choice-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  line-height: 0;
}
#settingsModal .settings-choice-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
#settingsModal .settings-choice-pill:disabled {
  opacity: 1;
  cursor: default;
}
#settingsModal .settings-choice-pill.is-active,
#settingsModal .settings-choice-pill.active,
#settingsModal .settings-seg-btn.is-active,
#settingsModal .settings-seg-btn.active,
#settingsModal [data-theme-choice].is-active,
#settingsModal [data-theme-choice].active,
#settingsModal .settings-currency-pill.is-active,
#settingsModal [data-currency-choice].is-active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(92, 110, 248, 0.35) !important;
}
.settings-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}
.settings-lang-flag {
  font-size: 14px;
  line-height: 1;
}
.settings-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.settings-action-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}
.settings-item-row:hover .settings-action-pill {
  color: var(--primary-color);
  border-color: rgba(92, 110, 248, 0.4);
}
.settings-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.settings-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}
.settings-item-row.is-linked .settings-status-pill,
.settings-status-pill.is-linked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.settings-item-row.is-linked .settings-status-pill::before,
.settings-status-pill.is-linked::before {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}
.settings-chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.5;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    color 0.15s ease;
}
.settings-chevron svg {
  width: 13px;
  height: 13px;
}
.settings-item-row:hover .settings-chevron {
  opacity: 1;
  transform: translateX(2px);
  color: var(--primary-color);
}
.settings-mobile-tabs {
  display: none;
}
.settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
  width: 100%;
  gap: 12px;
}
.settings-logout-section {
  padding: 0;
  margin: 0;
}
.settings-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.settings-logout-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.15);
}
.settings-logout-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-logout-icon svg {
  width: 15px;
  height: 15px;
}
.settings-footer-info {
  display: flex;
  align-items: center;
}
.settings-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.settings-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.settings-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}
.settings-back-btn:hover {
  background: var(--bg-tertiary);
}
.settings-back-btn svg {
  width: 15px;
  height: 15px;
}
.settings-submenu-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
#settingsModal.settings-guest .settings-grid {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 0 0 !important;
  gap: 0 !important;
}
#settingsModal.settings-guest .settings-col--left {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
#settingsModal.settings-guest .settings-col--right {
  display: none !important;
}
#settingsModal.settings-guest .settings-appearance-group {
  width: 100% !important;
  box-sizing: border-box !important;
}
#settingsModal.settings-guest .settings-appearance-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}
#settingsModal.settings-guest .settings-pref-tile {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 13px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#settingsModal.settings-guest .settings-pref-top {
  flex: 1 !important;
  min-width: 0 !important;
}
#settingsModal.settings-guest .settings-segmented {
  flex-shrink: 0 !important;
  margin: 0 !important;
}
#settingsModal.settings-guest .settings-logout-section {
  display: none !important;
}
#settingsModal.settings-guest .settings-mobile-tabs {
  display: none !important;
}
@media (max-width: 560px) {
  #settingsModal.settings-guest .settings-pref-tile {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  #settingsModal.settings-guest .settings-segmented {
    width: 100% !important;
  }
}
html:not([data-theme=dark]) #settingsModal.settings-account-menu .modal-content.settings-account-menu-content {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}
html:not([data-theme=dark]) #settingsModal .settings-user-card,
html:not([data-theme=dark]) #settingsModal .settings-group {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html:not([data-theme=dark]) #settingsModal .settings-pref-tile,
html:not([data-theme=dark]) #settingsModal .settings-item-row {
  background: #ffffff;
  border-color: #e2e8f0;
}
html:not([data-theme=dark]) #settingsModal .settings-item-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
html:not([data-theme=dark]) #settingsModal .settings-segmented,
html:not([data-theme=dark]) #settingsModal .settings-lang-pill {
  background: #edf2f7;
  border-color: #e2e8f0;
}
html:not([data-theme=dark]) #settingsModal .settings-action-pill,
html:not([data-theme=dark]) #settingsModal .settings-status-pill,
html:not([data-theme=dark]) #settingsModal .settings-id-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}
html:not([data-theme=dark]) #settingsModal .settings-item-icon {
  background: rgba(92, 110, 248, 0.08);
  color: var(--primary-color, #5c6ef8);
}
html:not([data-theme=dark]) #settingsModal .settings-item-row:hover .settings-item-icon {
  background: var(--primary-color, #5c6ef8);
  color: #ffffff;
}
html:not([data-theme=dark]) #settingsModal .settings-profile-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1f2335 !important;
}
html:not([data-theme=dark]) #settingsModal .settings-profile-btn:hover {
  background: #ffffff !important;
  border-color: var(--primary-color, #5c6ef8) !important;
  color: var(--primary-color, #5c6ef8) !important;
}
html:not([data-theme=dark]) #settingsModal.settings-account-menu .modal-close:hover {
  background: rgba(15, 23, 42, 0.06) !important;
}
@media (max-width: 767px) {
  #settingsModal.settings-account-menu .modal-content.settings-account-menu-content {
    max-width: 480px;
    width: min(480px, 94vw);
    padding: 16px 14px 18px;
    border-radius: 18px;
  }
  #settingsModal .settings-mobile-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
  }
  #settingsModal .settings-mobile-tab {
    flex: 1;
    height: 38px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 8px;
  }
  #settingsModal .settings-mobile-tab.is-active {
    background: var(--primary-color);
    color: #ffffff;
  }
  #settingsModal.settings-guest .settings-mobile-tab[data-settings-tab=security] {
    display: none;
  }
  #settingsModal .settings-grid {
    display: block;
  }
  #settingsModal .settings-group-header {
    display: none;
  }
  #settingsModal:not([data-mobile-tab=security]) .settings-col--right {
    display: none;
  }
  #settingsModal[data-mobile-tab=security] .settings-col--left {
    display: none;
  }
  #settingsModal .settings-user-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas: "avatar name profile" "avatar role profile" "avatar id profile";
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: 12px;
  }
  #settingsModal .settings-user-left,
  #settingsModal .settings-user-info,
  #settingsModal .settings-user-name-row {
    display: contents;
  }
  #settingsModal .settings-user-avatar-wrap {
    grid-area: avatar;
    align-self: center;
  }
  #settingsModal .settings-user-avatar {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  #settingsModal .settings-user-name {
    grid-area: name;
    font-size: 15px;
    line-height: 1.2;
  }
  #settingsModal .settings-role-badge {
    grid-area: role;
    justify-self: start;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 1px 7px;
  }
  #settingsModal .settings-user-id-row {
    grid-area: id;
  }
  #settingsModal .settings-id-pill {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    gap: 4px;
  }
  #settingsModal .settings-profile-btn {
    grid-area: profile;
    align-self: center;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
  }
  #settingsModal .settings-modal-footer {
    margin-top: 12px;
  }
  #settingsModal .settings-logout-btn {
    width: 100%;
  }
}
#settingsModal.settings-menu-main .theme-toggle-control {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
#settingsModal.settings-menu-main .theme-toggle-control .theme-toggle-label {
  width: 100%;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
#settingsModal.settings-menu-main .theme-toggle-control .theme-toggle-buttons {
  display: flex;
  gap: 8px;
}
#settingsModal.settings-menu-main .theme-toggle-control .language-toggle-badge {
  margin-left: auto;
}
#settingsModal.settings-menu-main .theme-toggle-control .language-toggle-badge,
#settingsModal.settings-menu-main .theme-toggle-control .currency-toggle-badge {
  margin-right: 0;
}
#settingsModal.settings-menu-main .theme-toggle-control .currency-toggle-badge {
  margin-left: 10px;
}
#settingsModal.settings-menu-main .theme-toggle-control.settings-appearance-card {
  margin-bottom: 0;
}
#settingsModal.settings-menu-main .theme-toggle-control.settings-appearance-card .language-toggle-badge,
#settingsModal.settings-menu-main .theme-toggle-control.settings-appearance-card .currency-toggle-badge {
  margin-left: 0;
}
.theme-toggle-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.theme-toggle-control .language-toggle-badge {
  margin-left: auto;
}
.theme-toggle-control .currency-toggle-badge {
  margin-left: 10px;
}
.theme-toggle-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}
.theme-toggle-buttons {
  display: flex;
  gap: 10px;
}
.language-toggle-badge,
.currency-toggle-badge {
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  transition: all 0.2s;
}
.language-toggle-badge:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.language-toggle-badge.is-en {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e293b);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}
.currency-toggle-badge {
  font-size: 13px;
  min-width: 44px;
}
.currency-toggle-badge.is-usd {
  background:
    linear-gradient(
      135deg,
      #fef3c7,
      #fee2e2);
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.8);
}
.currency-toggle-badge.is-eur {
  background:
    linear-gradient(
      135deg,
      #e0f2fe,
      #dbeafe);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.8);
}
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
}
.theme-toggle-btn[data-theme=light] {
  background:
    linear-gradient(
      135deg,
      #ede9fe,
      #dbeafe);
  border: none;
  color: #4c1d95;
}
.theme-toggle-btn[data-theme=light].active {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1);
  border: none;
  color: #fff;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.45);
}
.theme-toggle-btn[data-theme=dark] {
  background:
    linear-gradient(
      135deg,
      #020617,
      #0b1120,
      #1d2448);
  border: none;
  color: #e5e7eb;
}
.theme-toggle-btn[data-theme=dark].active {
  background:
    linear-gradient(
      135deg,
      #1d2448,
      #312e81,
      #4338ca);
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(67, 56, 202, 0.5);
}
html[data-theme=dark] .theme-toggle-btn[data-theme=light] {
  background:
    linear-gradient(
      135deg,
      #ede9fe,
      #dbeafe);
  border: none;
  color: #4c1d95;
}
html[data-theme=dark] .theme-toggle-btn[data-theme=light].active {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1);
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.5);
}
.select-custom {
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  outline: none;
}
.select-custom::-ms-expand {
  display: none;
}
.select-custom:hover {
  border-color: var(--primary-color);
}
.select-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.18);
  background-color: var(--bg-primary);
}
.form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  background-color: var(--input-bg, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.form-control:hover {
  border-color: rgba(92, 110, 248, 0.45);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.18);
  background-color: var(--input-bg, #ffffff);
}
.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.65;
  text-transform: none !important;
}
[data-theme=dark] .form-control {
  background-color: #242428;
  border-color: #2f2f35;
}
[data-theme=dark] .form-control:hover {
  border-color: rgba(107, 126, 248, 0.5);
}
[data-theme=dark] .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 126, 248, 0.22);
  background-color: #242428;
}
.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-danger {
  background: var(--danger-color);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
  display: block;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}
.hero {
  position: relative;
  z-index: 100;
  overflow: visible;
  background:
    linear-gradient(
      145deg,
      #7a89f2 0%,
      #8079ed 28%,
      #8b74e8 55%,
      #9578eb 78%,
      #9f7eef 100%);
  color: white;
  padding: 0;
  text-align: center;
}
html[data-theme=dark] .hero {
  background:
    linear-gradient(
      135deg,
      #010409 0%,
      #070b14 30%,
      #12162d 65%,
      #1e2244 100%);
  color: white;
}
.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-banners {
  position: relative;
  width: calc(100% - 20px);
  max-width: 100%;
  margin: 10px auto 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.hero-banners__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 610;
  min-height: 110px;
  max-height: 480px;
  overflow: hidden;
}
@media (min-width: 1100px) {
  .hero-banners__viewport {
    max-height: 500px;
  }
}
.hero-banners__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.hero-banners__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.hero-banners__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}
.hero-banners__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  text-align: left;
  pointer-events: none;
}
.hero-banners__caption-title {
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}
.hero-banners__caption-sub {
  margin-top: 4px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.9;
}
.hero-banners__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    opacity 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-banners__nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-50%) scale(1.05);
}
.hero-banners__nav--prev {
  left: 8px;
}
.hero-banners__nav--next {
  right: 8px;
}
.hero-banners__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.hero-banners__dot {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.15s ease, background 0.15s ease;
}
.hero-banners__dot.is-active {
  width: 26px;
  background: #fff;
  transform: none;
}
@media (max-width: 768px) {
  .hero-banners {
    width: calc(100% - 16px);
    margin: 4px auto 4px;
    border-radius: 12px;
  }
  .hero-banners__viewport {
    aspect-ratio: 1600 / 610;
    min-height: 0;
    max-height: none;
    width: 100%;
    height: auto;
  }
  .hero-banners__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-banners__nav {
    width: 28px;
    height: 28px;
    opacity: 0.75;
  }
  .hero-banners__nav--prev {
    left: 5px;
  }
  .hero-banners__nav--next {
    right: 5px;
  }
  .hero-banners__dots {
    bottom: 6px;
    gap: 4px;
  }
  .hero-banners__dot {
    width: 14px;
    height: 3px;
  }
  .hero-banners__dot.is-active {
    width: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banners__track {
    transition: none;
  }
}
.hero-title {
  display: block;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(15px, 2.6vw + 8px, 42px);
  font-weight: 700;
  margin: 0 auto 10px;
  padding: 0;
  color: #f3f4f6;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-6px);
}
.hero-subtitle {
  font-size: 20px;
  margin: 0 auto 20px;
  max-width: 720px;
  color: rgba(249, 250, 251, 0.9);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.hero > .container {
  overflow: visible;
}
html[data-theme=dark] .hero-title {
  text-shadow: none;
}
html[data-theme=dark] .hero-subtitle {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.6), 0 0 22px rgba(79, 70, 229, 0.45);
}
html[data-theme=dark] .btn-primary {
  box-shadow: none;
}
html[data-theme=dark] .btn-primary:hover {
  box-shadow: none;
}
html:not([data-theme=dark]) .order-actions,
html:not([data-theme=dark]) .order-info {
  background: var(--card-bg, #ffffff) !important;
  border-color: var(--border-color, #d3d8ec) !important;
}
html:not([data-theme=dark]) .order-actions h3,
html:not([data-theme=dark]) .order-info h3 {
  color: var(--text-primary, #1f2335) !important;
}
html:not([data-theme=dark]) .order-actions .btn-outline,
html:not([data-theme=dark]) .order-actions a.btn.btn-outline,
html:not([data-theme=dark]) .order-info .btn-outline {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}
html:not([data-theme=dark]) .order-actions .btn-outline:hover,
html:not([data-theme=dark]) .order-actions a.btn.btn-outline:hover,
html:not([data-theme=dark]) .order-info .btn-outline:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}
html:not([data-theme=dark]) .order-actions .btn-primary,
html:not([data-theme=dark]) .order-info .btn-primary {
  background: var(--primary-color) !important;
  color: #fff !important;
}
html:not([data-theme=dark]) .order-actions .btn-danger,
html:not([data-theme=dark]) .order-info .btn-danger {
  background: var(--danger-color) !important;
  color: #fff !important;
}
html:not([data-theme=dark]) .order-rating,
html:not([data-theme=dark]) #orderRatingSection {
  background: var(--card-bg) !important;
  border-color: var(--border-color) !important;
}
html:not([data-theme=dark]) .order-rating-comment-input,
html:not([data-theme=dark]) #ratingComment,
html:not([data-theme=dark]) .order-rating-comment-display,
html:not([data-theme=dark]) #displayRatingComment {
  background: #e8eaef !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}
.search-box {
  display: flex;
  max-width: 650px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(99, 102, 241, 0.2);
  border: 2px solid #2d2d2d;
  transition: all 0.3s ease;
}
.search-box:focus-within {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(99, 102, 241, 0.4);
  border-color: #6366f1;
  transform: translateY(-2px);
}
.search-input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 16px;
  color: #e5e7eb;
  background: transparent;
  font-weight: 500;
}
.search-input::placeholder {
  color: #9ca3af;
}
.search-input:focus {
  outline: none;
}
.search-btn {
  padding: 18px 32px;
  background:
    linear-gradient(
      135deg,
      #6366f1 0%,
      #8b5cf6 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}
.search-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}
.search-btn:hover {
  background:
    linear-gradient(
      135deg,
      #5558e3 0%,
      #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.search-btn:hover::before {
  left: 100%;
}
.search-btn:active {
  transform: translateY(0);
}
.category-search-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  z-index: 100;
  gap: 16px;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 12px 0;
  box-sizing: border-box;
}
.category-search-box {
  flex: none;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(99, 102, 241, 0.15);
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.category-search-box:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(99, 102, 241, 0.4);
  border-color: #6366f1;
  transform: translateY(-2px);
}
.quick-categories {
  flex: none;
  width: 100%;
  padding: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
.quick-categories:not(:has(.quick-category-tag)) {
  display: none;
}
html[data-theme=dark] .quick-categories {
  padding: 4px 0 0 0;
}
.quick-category-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}
.quick-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}
.quick-category-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  border-radius: 999px 999px 0 0;
  z-index: 0;
  pointer-events: none;
}
.quick-category-tag:nth-child(6n+1)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(99, 102, 241, 0.35),
      transparent);
}
.quick-category-tag:nth-child(6n+2)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(34, 197, 94, 0.28),
      transparent);
}
.quick-category-tag:nth-child(6n+3)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(234, 88, 12, 0.28),
      transparent);
}
.quick-category-tag:nth-child(6n+4)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(168, 85, 247, 0.28),
      transparent);
}
.quick-category-tag:nth-child(6n+5)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(59, 130, 246, 0.28),
      transparent);
}
.quick-category-tag:nth-child(6n+6)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(236, 72, 153, 0.28),
      transparent);
}
.quick-category-tag:hover {
  background: var(--primary-color);
  color: #fff;
}
.quick-category-tag:hover::before {
  opacity: 0;
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+1)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(99, 102, 241, 0.4),
      transparent);
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+2)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(34, 197, 94, 0.35),
      transparent);
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+3)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(251, 146, 60, 0.35),
      transparent);
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+4)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(192, 132, 252, 0.35),
      transparent);
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+5)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(96, 165, 250, 0.35),
      transparent);
}
html[data-theme=dark] .quick-category-tag:nth-child(6n+6)::before {
  background:
    linear-gradient(
      to bottom,
      rgba(244, 114, 182, 0.35),
      transparent);
}
@media (max-width: 900px) {
  .category-search-wrapper {
    flex-direction: column;
  }
  .quick-categories {
    flex: none;
    width: 100%;
  }
}
.categories-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  margin-left: -0.6px;
  background:
    linear-gradient(
      135deg,
      #6F42C1 0%,
      #8B5CF6 50%,
      #9966CC 100%);
  border: 1px solid rgba(167, 139, 250, 0.6);
  border-radius: 7px 7px 7px 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(111, 66, 193, 0.4);
}
.categories-btn:hover {
  background:
    linear-gradient(
      135deg,
      #7C4FCC 0%,
      #9D6BF7 50%,
      #A873D9 100%);
  border-color: rgba(167, 139, 250, 0.8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(111, 66, 193, 0.5);
  transform: scale(1.06) translateY(-1px);
}
.categories-btn:active {
  transform: scale(1) translateY(0);
}
.categories-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}
html[data-theme=dark] .hero .categories-btn {
  background:
    linear-gradient(
      135deg,
      #6F42C1 0%,
      #8B5CF6 50%,
      #9966CC 100%);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(111, 66, 193, 0.35);
}
html[data-theme=dark] .hero .categories-btn:hover {
  background:
    linear-gradient(
      135deg,
      #7C4FCC 0%,
      #9D6BF7 50%,
      #A873D9 100%);
  border-color: rgba(167, 139, 250, 0.7);
  color: #fff;
  box-shadow: 0 4px 16px rgba(111, 66, 193, 0.45);
}
.category-search-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-right: 12px;
  overflow: visible;
}
.search-divider {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
  margin: 0 12px;
  flex-shrink: 0;
}
.category-search-box:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  border-color: var(--primary-hover);
}
.search-icon-wrapper {
  padding: 0 20px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.category-search-box:focus-within .search-icon-wrapper {
  color: #6366f1;
}
.category-search-input,
.category-search-input:focus,
.category-search-input:focus-visible {
  flex: 1;
  padding: 20px 0;
  border: none !important;
  background: transparent !important;
  font-size: 16px;
  color: #1f2937;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  font-weight: 500;
}
.category-search-input::placeholder {
  color: #9ca3af;
}
.category-search-results {
  position: fixed;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  max-height: min(480px, 58vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 999999;
  display: none;
  padding: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  box-shadow:
    0 22px 56px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.category-search-results.category-search-results--flush {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.08);
}
@media (min-width: 769px) {
  html.sellpay-search-open .header > .container {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
  }
  html.sellpay-search-open .category-search-results.category-search-results--flush {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
  }
}
html.sellpay-search-open,
body.sellpay-search-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
html.sellpay-search-open .category-search-results,
body.sellpay-search-open .category-search-results {
  touch-action: pan-y;
}
.category-search-results::-webkit-scrollbar {
  width: 6px;
}
.category-search-results::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.category-search-results::-webkit-scrollbar-corner {
  background: transparent;
}
.category-search-results::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 12px 20px;
  margin-inline: 2px;
  border-radius: 999px;
}
.category-search-results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  min-height: 36px;
}
.category-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.58);
  background-clip: padding-box;
}
html[data-theme=dark] .category-search-results {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
html[data-theme=dark] .category-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}
html[data-theme=dark] .category-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
  background-clip: padding-box;
}
.sellpay-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: none;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: auto;
}
.sellpay-search-backdrop.is-visible {
  display: block;
  opacity: 1;
}
html[data-theme=dark] .sellpay-search-backdrop {
  background: rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .sellpay-search-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, 0.55);
  }
  html[data-theme=dark] .sellpay-search-backdrop {
    background: rgba(0, 0, 0, 0.65);
  }
}
html[data-theme=dark] .category-search-inner {
  background: transparent;
}
html[data-theme=dark] .search-box {
  background: #0a0a0a;
  border-color: #2d2d2d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(99, 102, 241, 0.3);
}
html[data-theme=dark] .search-box:focus-within {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(99, 102, 241, 0.5);
}
html[data-theme=dark] .search-input {
  color: #f3f4f6;
}
html[data-theme=dark] .category-search-box {
  background: #0a0a0a;
  border-color: #2d2d2d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(99, 102, 241, 0.3);
}
html[data-theme=dark] .category-search-box:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(99, 102, 241, 0.5);
}
html[data-theme=dark] .category-search-input {
  color: #f3f4f6;
}
html[data-theme=dark] .search-icon-wrapper {
  color: #6b7280;
}
html[data-theme=dark] .category-search-box:focus-within .search-icon-wrapper {
  color: #8b5cf6;
}
html[data-theme=dark] .search-divider {
  background: #4d4d4d;
}
html[data-theme=dark] .category-search-results {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme=dark] .category-search-results.category-search-results--flush {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-top: none;
}
@media (min-width: 769px) {
  html[data-theme=dark].sellpay-search-open .category-search-results.category-search-results--flush {
    background: var(--bg-primary);
    border-color: var(--border-color);
    border-top: none;
  }
}
html[data-theme=dark] .category-result-item {
  color: #f3f4f6;
  border-bottom-color: transparent;
}
html[data-theme=dark] .category-result-item:hover {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
html[data-theme=dark] .category-result-item:active {
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme=dark] .category-result-subtitle {
  color: #9ca3af;
}
html[data-theme=dark] .category-result-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.35);
}
html[data-theme=dark] .category-search-empty {
  color: #9ca3af;
}
html[data-theme=dark] .category-search-empty__icon {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.category-search-results.active {
  display: block;
}
@media (max-width: 768px) {
  .category-search-results.is-fullscreen-mobile,
  .category-search-results.is-fullscreen-mobile.active {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .category-search-results.is-fullscreen-mobile.category-search-results--flush,
  .category-search-results.is-fullscreen-mobile.category-search-results--flush.active {
    border-radius: 0;
    box-shadow: none;
  }
  html[data-theme=dark] .category-search-results.is-fullscreen-mobile {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4);
  }
  html[data-theme=dark] .category-search-results.is-fullscreen-mobile.category-search-results--flush {
    box-shadow: none;
  }
}
.category-result-item {
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #1f2937;
  justify-content: flex-start;
  margin: 0 0 2px;
  border-radius: 13px;
  border: none;
  min-height: 52px;
}
.category-result-item:first-child {
  margin-top: 0;
}
.category-result-item:last-child {
  margin-bottom: 0;
}
.category-result-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: inherit;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.1);
}
.category-result-item:active {
  background: rgba(99, 102, 241, 0.14);
}
.category-result-item.game-result {
  font-weight: 500;
  flex-wrap: nowrap;
}
.category-result-item.category-result {
  padding-left: 48px;
  color: #000;
  font-size: 14px;
}
.category-result-thumb {
  width: 64px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  background:
    linear-gradient(
      145deg,
      rgba(99, 102, 241, 0.28),
      rgba(30, 41, 59, 0.9)),
    #1f2937;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 3px 10px rgba(15, 23, 42, 0.12);
}
.category-result-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(280px, 38%);
  gap: 3px;
  padding-right: 4px;
}
.category-result-title {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-result-subtitle {
  font-size: 12.5px;
  color: #6B7280;
  margin-top: 0;
  line-height: 1.3;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-result-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 58%;
}
.category-result-cat {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #374151;
  font: inherit;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}
.category-result-cat:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  color: #312e81;
}
.category-result-cat:active {
  background: rgba(99, 102, 241, 0.24);
}
html[data-theme=dark] .category-result-cat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}
html[data-theme=dark] .category-result-cat:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
  color: #f3f4f6;
}
@media (max-width: 720px) {
  .category-result-item.game-result {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .category-result-text {
    max-width: none;
    flex: 1 1 auto;
  }
  .category-result-cats {
    width: 100%;
    max-width: none;
    margin-left: 77px;
    justify-content: flex-start;
  }
}
.category-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
  color: #6b7280;
  cursor: default;
}
.category-search-empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  margin-bottom: 2px;
}
.category-search-empty__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #e5e7eb);
}
.category-search-empty__hint {
  font-size: 13px;
  line-height: 1.4;
  max-width: 280px;
  opacity: 0.85;
  color: var(--text-secondary, #9ca3af);
}
.category-search-empty--prompt {
  padding: 28px 20px 32px;
}
.category-search-section-label {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #9ca3af);
}
.category-result-item.category-recent-query {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.sellpay-test-lab-banner {
  position: sticky;
  top: 0;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 8px 14px;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sellpay-test-lab-banner strong {
  letter-spacing: 0.04em;
  font-size: 12px;
}
.sellpay-test-lab-banner span {
  flex: 1 1 220px;
  opacity: 0.95;
}
.sellpay-test-lab-banner a {
  color: #ffedd5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quick-categories {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.quick-category-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}
.quick-categories-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-category-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.quick-category-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.stats {
  background: var(--bg-primary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item {
  padding: 12px;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
}
html[data-theme=dark] .stat-number {
  color: var(--primary-color);
}
html[data-theme=dark] .stat-label {
  color: var(--text-primary);
}
.games-section {
  padding: 60px 0;
}
html:not([data-theme=dark]) body.home-page > .games-section {
  background: var(--bg-primary);
}
html[data-theme=dark] body.home-page > .games-section {
  background: #121212;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}
.alphabet-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.alphabet-btn {
  padding: 7px 11px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.alphabet-btn:hover,
.alphabet-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  outline: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}
.games-section #gamesGrid .game-card[data-game-bg]:not([data-has-bg]),
.games-section #gamesGrid .game-card[data-bg-pending] {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: rgba(148, 163, 184, 0.08);
}
body.home-page #allGamesSection #gamesGrid.all-games-catalog {
  display: block;
  column-count: 4;
  column-gap: 28px;
  column-fill: balance;
}
body.home-page #allGamesSection #gamesGrid .all-games-letter-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 18px;
  display: block;
  contain: layout style;
  content-visibility: visible;
}
body.home-page #allGamesSection #gamesGrid.is-catalog-scrolling .game-card {
  pointer-events: none;
}
body.home-page #allGamesSection #gamesGrid .game-card,
body.home-page #allGamesSection #gamesGrid .game-card[data-has-bg],
body.home-page #allGamesSection #gamesGrid .game-card[data-game-bg]:not([data-has-bg]),
body.home-page #allGamesSection #gamesGrid .game-card[data-bg-pending] {
  position: relative;
  aspect-ratio: auto;
  width: 100%;
  min-height: 0;
  height: 40px;
  margin: 0 0 6px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: rgba(18, 18, 18, 0.55);
  background-image: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: none;
  box-shadow: none;
  contain: layout paint style;
  transition: border-color 0.15s ease;
}
body.home-page #allGamesSection #gamesGrid .all-games-letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  margin: 0 auto 12px;
  padding: 0;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  box-sizing: border-box;
  flex: 0 0 40px;
  align-self: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
body.home-page #allGamesSection #gamesGrid .all-games-letter--cyr {
  font-size: 24px;
}
body.home-page #allGamesSection #gamesGrid .all-games-letter-group[hidden] {
  display: none !important;
}
body.home-page #allGamesSection #gamesGrid.all-games-catalog.is-letter-filtered {
  display: block;
  column-count: 1;
  column-gap: 0;
}
body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter-group:not([hidden]) {
  display: block;
  width: 100%;
  break-inside: auto;
}
body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter {
  margin-bottom: 8px;
}
body.home-page #allGamesSection #gamesGrid .all-games-letter-items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 14px;
}
body.home-page #allGamesSection #gamesGrid .game-card[data-has-bg] {
  background-image: var(--game-bg);
}
body.home-page #allGamesSection #gamesGrid .game-card[data-has-bg]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
}
body.home-page #allGamesSection #gamesGrid .game-card .game-title,
body.home-page #allGamesSection #gamesGrid .game-card[data-has-bg] .game-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
body.home-page #allGamesSection #gamesGrid .game-card:hover,
body.home-page #allGamesSection #gamesGrid .game-card:focus-visible {
  transform: none;
  border-color: var(--primary-color);
  filter: none;
  box-shadow: none;
}
@media (max-width: 1100px) {
  body.home-page #allGamesSection #gamesGrid.all-games-catalog {
    column-count: 3;
    column-gap: 18px;
  }
  body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  body.home-page #allGamesSection #gamesGrid.all-games-catalog {
    column-count: 2;
    column-gap: 12px;
  }
  body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.game-card[data-has-bg] {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(1.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.game-card[data-has-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: brightness(1.08);
  z-index: 0;
}
.game-card[data-has-bg]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      transparent 70%);
  z-index: 0;
}
html[data-theme=dark] .game-card[data-has-bg]::after {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.3) 42%,
      transparent 70%);
}
.game-card[data-has-bg] .game-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(10px + 12px + 1.2em * 2);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.game-card[data-has-bg]::before,
.game-card[data-has-bg]::after {
  pointer-events: none;
}
html[data-theme=dark] .game-card[data-has-bg] .game-title {
  background: none;
  color: #fff;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.game-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(57, 108, 255, 0.25), var(--shadow-lg);
}
.game-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.game-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-tag {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
}
.category-tag:hover {
  background: var(--primary-color);
  color: white;
}
.game-category-hero {
  padding: 17px 0 160px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 400px;
  background:
    linear-gradient(
      180deg,
      var(--primary-color) 0%,
      var(--secondary-color) 50%,
      transparent 100%);
  background-attachment: local;
}
.game-category-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      var(--bg-secondary) 0%,
      var(--bg-secondary) 20%,
      transparent 100%);
}
html:not([data-theme=dark]) .game-category-hero {
  background:
    linear-gradient(
      180deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%);
  padding-bottom: 32px;
}
html:not([data-theme=dark]) .game-category-hero::after {
  content: "";
  display: block;
  height: 15px;
  background:
    linear-gradient(
      to top,
      var(--bg-secondary) 0%,
      color-mix(in srgb, var(--bg-secondary) 72%, transparent) 55%,
      transparent 100%);
}
@media (min-width: 769px) {
  html:not([data-theme=dark]) .category-section {
    margin-top: -15px;
  }
}
@media (max-width: 768px) {
  html:not([data-theme=dark]) .category-section {
    margin-top: -15px;
  }
}
.game-category-hero__strip {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1450px;
  z-index: 0;
  pointer-events: none;
}
.game-category-hero__strip.has-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hero-game-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 14%,
      black 86%,
      transparent 100%);
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 14%,
      black 86%,
      transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.game-category-hero__strip.has-hero-bg::after {
  content: none;
}
.game-category-hero .container {
  position: relative;
  z-index: 1;
}
.game-category-hero__text-blocks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}
.game-category-hero__text-blocks .game-category-label,
.game-category-hero__text-blocks .game-category-title,
.game-category-hero__text-blocks .game-category-description {
  margin-bottom: 0;
}
.game-category-hero__text-bg {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.game-category-hero__text-bg.game-category-title {
  padding: 10px 18px;
  border-radius: 12px;
}
.game-category-hero__text-bg.game-category-description {
  padding: 10px 16px;
  border-radius: 12px;
  max-width: 600px;
}
html[data-theme=dark] .game-category-hero__text-bg {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-theme=dark] .game-category-hero {
  background:
    linear-gradient(
      180deg,
      #020617 0%,
      #0b1120 30%,
      #1d2448 65%,
      rgba(49, 46, 129, 0.4) 85%,
      transparent 100%);
  padding-bottom: 140px;
}
@media (max-width: 768px) {
  .game-category-hero {
    padding: 5px 0 16px;
    min-height: 220px;
    margin-top: 0;
    margin-bottom: 0;
  }
  html[data-theme=dark] .game-category-hero {
    padding: 5px 0 14px;
    min-height: 220px;
  }
  .game-category-hero::after {
    display: block;
    height: 48px;
    background:
      linear-gradient(
        to top,
        var(--bg-secondary) 0%,
        transparent 100%);
  }
  html:not([data-theme=dark]) .game-category-hero::after {
    display: block;
    height: 15px;
    background:
      linear-gradient(
        to top,
        var(--bg-secondary) 0%,
        color-mix(in srgb, var(--bg-secondary) 70%, transparent) 55%,
        transparent 100%);
  }
  html:not([data-theme=dark]) .game-category-hero {
    padding-bottom: 20px;
  }
  .game-category-hero__strip.has-hero-bg::before {
    background-position: center top;
    background-size: cover;
  }
  .game-category-hero__strip {
    width: 100%;
  }
  body:has(#gameCategoryHero:not([hidden])) .header {
    padding-bottom: 0;
    border-bottom-color: transparent;
  }
  body:has(#gameCategoryHero:not([hidden])) .header .header-content {
    padding-bottom: 4px;
    padding-top: 8px;
  }
  .category-section .lots-toolbar-wrap {
    margin-top: 0;
  }
}
.category-section {
  padding: 0 0 60px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
  overflow: visible;
}
@media (min-width: 769px) {
  .category-section {
    margin-top: -48px;
  }
}
@media (max-width: 768px) {
  .category-section {
    margin-top: -48px;
    padding-top: 0;
    padding-bottom: 16px;
  }
}
.game-category-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.game-category-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 5px 0 0;
}
.game-category-platform-chip {
  appearance: none;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.game-category-platform-chip:hover {
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.45);
}
.game-category-platform-chip.is-active {
  background: rgba(124, 58, 237, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 14px rgba(76, 29, 149, 0.35);
}
.game-category-platform-chip[aria-disabled=true] {
  cursor: default;
}
.game-category-platforms[hidden] {
  display: none !important;
}
.game-category-platform-chip:focus {
  outline: none;
}
.game-category-platform-chip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.game-category-title {
  font-size: 36px;
  margin: 0 0 12px;
  color: white;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.game-category-description {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.game-category-strip-wrapper {
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-strip-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1024px) {
  .category-strip-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}
@media (max-width: 768px) {
  .category-strip-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .category-strip-btn {
    padding: 6px 7px;
    border-radius: 8px !important;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 3px 14px rgba(139, 92, 246, 0.35), 0 0 20px rgba(147, 51, 234, 0.15);
  }
  .game-category-description {
    margin-bottom: 14px;
  }
  .game-category-strip-wrapper {
    gap: 8px;
  }
  .game-category-title {
    font-size: 24px;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .game-category-hero__text-blocks {
    align-items: flex-start;
  }
  .game-category-hero__text-bg {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }
  #gameCategoryHero .container > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  #mySalesBtn {
    margin-left: 0 !important;
  }
}
html:not([data-theme=dark]) #mySalesBtn {
  border: none !important;
  color: #fff !important;
  background:
    linear-gradient(
      to right,
      #6F42C1,
      #8B5CF6,
      #9966CC) !important;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35), 0 0 26px rgba(147, 51, 234, 0.18) !important;
}
html:not([data-theme=dark]) #mySalesBtn:hover,
html:not([data-theme=dark]) #mySalesBtn:active {
  background:
    linear-gradient(
      to right,
      #7C3AED,
      #9966CC,
      #A78BFA) !important;
}
.category-strip-btn {
  padding: 14px 24px;
  border-radius: 48px;
  border: none;
  background:
    linear-gradient(
      to right,
      #6F42C1,
      #8B5CF6,
      #9966CC);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), 0 0 30px rgba(147, 51, 234, 0.2);
}
.category-strip-btn:hover,
.category-strip-btn:focus-visible {
  transform: translateY(-1px);
  background:
    linear-gradient(
      to right,
      #7C3AED,
      #9966CC,
      #A78BFA);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55), 0 0 40px rgba(147, 51, 234, 0.25);
}
.category-strip-btn.active {
  background:
    linear-gradient(
      to right,
      #6F42C1,
      #8B5CF6,
      #9966CC);
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6), 0 0 40px rgba(147, 51, 234, 0.3);
  transform: translateY(-1px) scale(1.02);
}
html[data-theme=dark] .game-category-strip-wrapper {
  padding-bottom: 40px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: calc(var(--site-header-h) + 16px) 16px 16px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-fullscreen {
  z-index: 10000020;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.modal-fullscreen .modal-content {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  padding: 48px 64px;
  overflow-y: auto;
}
.banned-user-modal .modal-content {
  max-width: 480px;
}
.banned-user-modal-content {
  padding: 24px 24px 20px;
}
.banned-reason-text {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.banned-user-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
body.account-banned-page .header {
  display: none !important;
}
body.account-banned-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-secondary);
}
.banned-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-secondary);
}
.banned-bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  transform: perspective(600px) rotateX(12deg) scale(1.15);
  transform-origin: center top;
  animation: banned-bg-grid-drift 28s linear infinite;
  mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 40%,
      #000 20%,
      transparent 75%);
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 60% at 50% 40%,
      #000 20%,
      transparent 75%);
}
.banned-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}
.banned-bg-orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: 50%;
  margin-left: calc(min(52vw, 420px) / -2);
  background: rgba(107, 126, 248, 0.28);
  animation: banned-bg-orb-a 16s ease-in-out infinite;
}
.banned-bg-orb--b {
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  right: -8%;
  bottom: 8%;
  background: rgba(239, 68, 68, 0.16);
  animation: banned-bg-orb-b 20s ease-in-out infinite;
}
.banned-bg-orb--c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  left: -6%;
  bottom: 18%;
  background: rgba(155, 108, 246, 0.14);
  animation: banned-bg-orb-c 22s ease-in-out infinite;
}
.banned-bg-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.03) 48%,
      transparent 62%);
  background-size: 220% 100%;
  animation: banned-bg-shine 12s ease-in-out infinite;
}
@keyframes banned-bg-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}
@keyframes banned-bg-orb-a {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  40% {
    transform: translate3d(4%, 8%, 0) scale(1.08);
    opacity: 1;
  }
  70% {
    transform: translate3d(-5%, 3%, 0) scale(0.96);
    opacity: 0.75;
  }
}
@keyframes banned-bg-orb-b {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  35% {
    transform: translate3d(-10%, -6%, 0) scale(1.12);
    opacity: 0.95;
  }
  65% {
    transform: translate3d(6%, 4%, 0) scale(0.92);
    opacity: 0.6;
  }
}
@keyframes banned-bg-orb-c {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  45% {
    transform: translate3d(12%, -8%, 0) scale(1.1);
    opacity: 0.9;
  }
  80% {
    transform: translate3d(4%, 6%, 0) scale(0.94);
    opacity: 0.55;
  }
}
@keyframes banned-bg-shine {
  0%, 100% {
    background-position: 100% 0;
    opacity: 0.35;
  }
  50% {
    background-position: 0% 0;
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .banned-bg-grid,
  .banned-bg-orb,
  .banned-bg-shine {
    animation: none !important;
  }
}
.banned-page {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  flex: 1;
}
body.account-banned-page .banned-page {
  display: flex;
  align-items: center;
}
body.account-banned-page .banned-page-footer {
  position: relative;
  z-index: 1;
}
.banned-card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface-elevated, var(--bg-primary));
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: banned-card-in 0.45s ease-out both;
}
@keyframes banned-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.banned-card-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.banned-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.banned-card-emoji {
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  user-select: none;
  overflow: visible;
}
.banned-card-emoji img,
.banned-card-emoji .banned-card-emoji-anim {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.banned-card-emoji .banned-card-emoji-anim svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.banned-status-badge {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
[data-theme=dark] .banned-status-badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}
.banned-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.banned-card p {
  margin: 0 0 8px;
}
.banned-reason-text {
  margin-bottom: 18px !important;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}
.banned-permaban-text {
  margin: 0 0 18px !important;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
body.account-banned-permaban .banned-card-brand {
  letter-spacing: 0.08em;
}
body.account-banned-permaban #bannedTitle {
  font-size: clamp(22px, 6.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 8px 0 16px;
  text-transform: uppercase;
  word-break: break-word;
  background:
    linear-gradient(
      90deg,
      #ff0040,
      #ff9900,
      #ffe600,
      #00e676,
      #00e5ff,
      #2979ff,
      #d500f9,
      #ff0040);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: permaban-rgb-shift 1.5s linear infinite;
}
body.account-banned-permaban .banned-card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 88px;
}
body.account-banned-permaban .banned-card-emoji-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
body.account-banned-permaban .banned-card-emoji-slot {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}
body.account-banned-permaban .banned-card-emoji-slot img,
body.account-banned-permaban .banned-card-emoji-slot svg {
  width: 72px !important;
  height: 72px !important;
  display: block;
}
@keyframes permaban-rgb-shift {
  to {
    background-position: 300% 0;
  }
}
body.account-banned-permaban .banned-permaban-text {
  color: #fecaca;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}
body.account-banned-permaban .banned-bg {
  background: #120808;
}
body.account-banned-permaban .banned-bg-orb--a {
  background: rgba(255, 0, 64, 0.22);
}
body.account-banned-permaban .banned-bg-orb--b {
  background: rgba(255, 230, 0, 0.14);
}
body.account-banned-permaban .banned-bg-orb--c {
  background: rgba(0, 229, 255, 0.12);
}
.banned-bg-laughs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
body.account-banned-permaban .banned-bg-laugh {
  opacity: 0.28;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.banned-bg-laugh {
  position: absolute;
  font-size: clamp(22px, 5vw, 42px);
  line-height: 1;
  opacity: 0.22;
  user-select: none;
  animation: banned-laugh-float linear infinite;
  will-change: transform, opacity;
}
@keyframes banned-laugh-float {
  0% {
    transform: translate3d(0, 110vh, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  8% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.18;
  }
  100% {
    transform: translate3d(8vw, -20vh, 0) rotate(28deg) scale(1.15);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.account-banned-permaban #bannedTitle {
    animation: none;
    background: none;
    color: #f87171;
    -webkit-text-fill-color: #f87171;
  }
  .banned-bg-laugh {
    animation: none;
    opacity: 0.16;
  }
}
.banned-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
}
.banned-meta-item {
  flex: 1;
  max-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color);
  text-align: center;
}
.banned-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.banned-balance {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.banned-support-note {
  margin: 0 0 12px !important;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.banned-withdraw-note {
  margin: 0 0 4px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(107, 126, 248, 0.08);
  border: 1px solid rgba(107, 126, 248, 0.16);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.banned-withdraw-note.is-unlocked {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}
.banned-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.banned-support-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 600;
}
.banned-page-footer {
  padding: 16px 0 24px;
  border-top: none;
  background: transparent;
}
.banned-page-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
  text-align: center;
}
.banned-page-footer .footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}
@media (max-width: 480px) {
  .banned-card {
    padding: 28px 18px 22px;
    border-radius: 16px;
  }
  .banned-card h1 {
    font-size: 20px;
  }
}
.modal-fullscreen .modal-close {
  top: 32px;
  right: 48px;
}
@media (max-width: 768px) {
  .modal-fullscreen .modal-content {
    padding: 24px 16px;
  }
  .lot-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .lot-modal-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .lot-modal-close-btn {
    width: 100%;
  }
}
.modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
  max-height: calc(100vh - var(--site-header-h) - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.modal .modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal .modal-content::-webkit-scrollbar-track {
  background: transparent;
  border: none;
  margin-top: 14px;
  margin-bottom: 14px;
}
.modal .modal-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0 !important;
  line-height: 0 !important;
  font-weight: 400;
  color: #111;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.modal-close:hover {
  background: var(--bg-secondary);
  color: #000;
}
[data-theme=dark] .modal-close,
.dark-theme .modal-close,
html[data-theme=dark] .modal-close {
  background: transparent;
  color: #f5f5f5;
}
[data-theme=light] .modal-close,
.light-theme .modal-close,
html:not([data-theme=dark]) .modal-close {
  background: transparent;
  color: #111;
}
[data-theme=dark] .modal-close:hover,
.dark-theme .modal-close:hover,
html[data-theme=dark] .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
[data-theme=light] .modal-close:hover,
.light-theme .modal-close:hover,
html:not([data-theme=dark]) .modal-close:hover {
  background: var(--bg-secondary);
  color: #000;
}
#settingsModal .modal-close,
.modal.modal-above-settings .modal-close,
#changePasswordModal .modal-close,
#changeEmailModal .modal-close,
#telegramLinkedModal .modal-close {
  color: #111 !important;
}
#settingsModal .modal-close:hover,
.modal.modal-above-settings .modal-close:hover,
#changePasswordModal .modal-close:hover,
#changeEmailModal .modal-close:hover,
#telegramLinkedModal .modal-close:hover {
  color: #000 !important;
  background: rgba(15, 23, 42, 0.08) !important;
}
[data-theme=dark] #settingsModal .modal-close,
.dark-theme #settingsModal .modal-close,
[data-theme=dark] .modal.modal-above-settings .modal-close,
.dark-theme .modal.modal-above-settings .modal-close,
[data-theme=dark] #changePasswordModal .modal-close,
.dark-theme #changePasswordModal .modal-close,
[data-theme=dark] #changeEmailModal .modal-close,
.dark-theme #changeEmailModal .modal-close,
[data-theme=dark] #telegramLinkedModal .modal-close,
.dark-theme #telegramLinkedModal .modal-close,
html[data-theme=dark] #settingsModal .modal-close,
html[data-theme=dark] .modal.modal-above-settings .modal-close,
html[data-theme=dark] #changePasswordModal .modal-close,
html[data-theme=dark] #changeEmailModal .modal-close,
html[data-theme=dark] #telegramLinkedModal .modal-close {
  color: #f5f5f5 !important;
}
[data-theme=dark] #settingsModal .modal-close:hover,
.dark-theme #settingsModal .modal-close:hover,
[data-theme=dark] .modal.modal-above-settings .modal-close:hover,
.dark-theme .modal.modal-above-settings .modal-close:hover,
[data-theme=dark] #changePasswordModal .modal-close:hover,
.dark-theme #changePasswordModal .modal-close:hover,
[data-theme=dark] #changeEmailModal .modal-close:hover,
.dark-theme #changeEmailModal .modal-close:hover,
[data-theme=dark] #telegramLinkedModal .modal-close:hover,
.dark-theme #telegramLinkedModal .modal-close:hover,
html[data-theme=dark] #settingsModal .modal-close:hover,
html[data-theme=dark] .modal.modal-above-settings .modal-close:hover,
html[data-theme=dark] #changePasswordModal .modal-close:hover,
html[data-theme=dark] #changeEmailModal .modal-close:hover,
html[data-theme=dark] #telegramLinkedModal .modal-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
#settingsModal.active {
  z-index: 10000;
}
.seller-channel-tabs {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0 0 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--text-primary) 28%, transparent);
  box-sizing: border-box;
  overflow: visible;
}
.seller-channel-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 10px 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.seller-channel-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 999px;
  pointer-events: none;
  transition: background 0.2s ease;
}
.seller-channel-tab:hover {
  color: var(--text-primary, #e5e7eb);
}
.seller-channel-tab.active {
  color: var(--primary-color, #5c6ef8);
}
.seller-channel-tab.active::after {
  background: var(--primary-color, #5c6ef8);
}
.seller-channel-tab:disabled,
.seller-channel-tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--text-secondary, #9ca3af);
}
.seller-channel-tab:disabled:hover,
.seller-channel-tab.is-disabled:hover {
  color: var(--text-secondary, #9ca3af);
}
.seller-messenger-block {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-secondary, #161616);
  margin-bottom: 16px;
  font-size: 14px;
}
.seller-rule-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.seller-rule-checkbox input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  display: grid;
  place-content: center;
  border: 1px solid #51545c;
  border-radius: 5px;
  background: #1b1c20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.seller-rule-checkbox input[type=checkbox]::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}
.seller-rule-checkbox:hover input[type=checkbox] {
  border-color: #858990;
  background: #26272c;
}
.seller-rule-checkbox input[type=checkbox]:checked {
  border-color: #777b84;
  background:
    linear-gradient(
      145deg,
      #858991,
      #5f636b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.seller-rule-checkbox input[type=checkbox]:checked::after {
  transform: rotate(-45deg) scale(1);
}
.seller-rule-checkbox input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(150, 154, 164, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.modal.modal-above-settings,
#passkeysManagerModal,
#changePasswordModal,
#changeEmailModal,
#sellerApiModal {
  z-index: 10050 !important;
}
#settingsModal.settings-guest.active {
  background-color: transparent;
  backdrop-filter: none;
}
.modal-content h2 {
  margin-bottom: 24px;
  font-size: 24px;
}
#ddosCaptchaModal {
  z-index: 99999 !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: none;
  align-items: center;
  justify-content: center;
}
#ddosCaptchaModal[style*=flex] {
  display: flex !important;
}
#ddosCaptchaModal .modal-content {
  pointer-events: auto;
  position: relative;
  z-index: 100000;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}
body.ddos-captcha-active {
  overflow: hidden !important;
}
body.ddos-captcha-active > *:not(#ddosCaptchaModal) {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
body.ddos-captcha-active header,
body.ddos-captcha-active main,
body.ddos-captcha-active section,
body.ddos-captcha-active footer {
  filter: blur(2px);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.otp-digit-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 0;
  flex-wrap: nowrap;
  width: 100%;
}
.otp-digit-group .otp-digit {
  width: 44px;
  height: 52px;
  box-sizing: border-box;
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 10px;
  border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-secondary, rgba(0, 0, 0, 0.22));
  color: var(--text-primary, #fff);
  outline: none;
  caret-color: var(--primary, #66c0f4);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  padding: 0;
  -moz-appearance: textfield;
}
.otp-digit-group .otp-digit::-webkit-outer-spin-button,
.otp-digit-group .otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.otp-digit-group .otp-digit:focus {
  border-color: var(--primary, #66c0f4);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #66c0f4) 28%, transparent);
  background: var(--bg-primary, rgba(0, 0, 0, 0.28));
}
.otp-digit-group .otp-digit.is-filled {
  border-color: color-mix(in srgb, var(--primary, #66c0f4) 55%, var(--border-color, #444));
}
.otp-digit-group.is-error .otp-digit {
  border-color: var(--danger-color, #e74c3c);
  animation: otp-shake 0.35s ease;
}
@keyframes otp-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
@media (max-width: 420px) {
  .otp-digit-group {
    gap: 6px;
  }
  .otp-digit-group .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
    border-radius: 8px;
  }
}
@media (max-width: 768px) {
  .profile-section .profile-header {
    min-height: 0 !important;
    padding: 14px 16px 13px !important;
    gap: 12px !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(127, 137, 166, 0.14);
  }
  .profile-section .profile-name-row {
    min-height: 28px;
    overflow: visible !important;
    column-gap: 7px !important;
    row-gap: 4px !important;
    padding: 2px 0 !important;
  }
  .profile-section .profile-name-row .profile-username,
  .profile-section .profile-username {
    max-width: calc(100% - 10.8rem) !important;
    line-height: 1.28 !important;
    padding-block: 1px !important;
    overflow: hidden !important;
  }
  .profile-section .profile-name-row .profile-level-badge,
  .profile-section .profile-name-row .profile-staff-badge {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 24px !important;
    min-height: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 3px 9px !important;
  }
  .profile-section .profile-header-content {
    gap: 4px !important;
  }
  .profile-section .profile-stats {
    gap: 2px 10px !important;
    opacity: 0.84;
  }
  .profile-section .profile-description:not([hidden]) {
    margin-top: 5px !important;
    padding: 3px 0 !important;
    background: transparent !important;
    border: 0 !important;
    opacity: 0.9;
  }
  .profile-section .profile-meta {
    margin-top: 5px !important;
    opacity: 0.78;
  }
}
#loginVerificationForm.auth-form,
#emailConfirmForm.auth-form,
#forgotPasswordForm2.auth-form,
#changePasswordForm2.auth-form,
#changeEmailForm2.auth-form,
#changeEmailForm4.auth-form,
.auth-form.login-verification-code-form,
.code-verify-panel {
  gap: 0;
  align-items: stretch;
}
.auth-form.login-verification-code-form .form-group,
.code-verify-panel .form-group {
  align-items: center;
  margin-bottom: 0 !important;
  gap: 6px;
}
.auth-form.login-verification-code-form .form-group > label,
.code-verify-panel .form-group > label {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}
.auth-form.login-verification-code-form .form-group > input[type=text],
.auth-form.login-verification-code-form .form-group > input[type=email],
.code-verify-panel .form-group > input[type=text] {
  width: 100%;
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 18px;
  font-weight: 600;
}
#loginVerificationForm .login-verification-resend,
#emailConfirmForm .login-verification-resend,
#forgotPasswordForm2 .login-verification-resend,
#changePasswordForm2 .login-verification-resend,
#changeEmailForm2 .login-verification-resend,
#changeEmailForm4 .login-verification-resend,
.auth-form.login-verification-code-form .login-verification-resend,
.auth-form.login-verification-code-form .form-footer.login-verification-resend,
.code-verify-panel .login-verification-resend {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 10px 0 22px !important;
  text-align: center;
}
.auth-form.login-verification-code-form .login-verification-resend .link,
.code-verify-panel .login-verification-resend .link,
.auth-form.login-verification-code-form .login-verification-resend button.link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--primary, var(--primary-color, #66c0f4));
  font-size: 13px;
  line-height: 1.3;
}
.auth-form.login-verification-code-form > .btn,
.code-verify-panel > .btn {
  margin-top: 0;
}
.auth-form.login-verification-code-form .code-verify-back,
.code-verify-panel .code-verify-back,
#changePasswordBackToChoice,
#loginVerificationBackToChoice,
#loginVerificationTelegramBackToChoice {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.3;
}
.auth-form.login-verification-code-form .form-note,
.code-verify-panel .form-note {
  text-align: center;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
#changePasswordStep2 > .form-note,
#changePasswordStepChoice > .form-note,
#changeEmailStep2 > .form-note,
#changeEmailStep4 > .form-note,
#loginVerificationEmailStep > p,
#loginVerificationTelegramStep > p,
#loginVerificationChoiceStep > p,
#forgotPasswordStep2 > p,
#emailConfirmModal .modal-content > p {
  text-align: center;
  line-height: 1.45;
  margin-bottom: 18px;
}
#changePasswordStepChoice .btn,
#loginVerificationChoiceStep .btn {
  margin-bottom: 10px;
}
#changePasswordStepChoice .btn:last-of-type,
#loginVerificationChoiceStep .btn:last-of-type {
  margin-bottom: 0;
}
#loginVerificationTelegramStep {
  text-align: center;
}
#loginVerificationTelegramStep .form-group {
  align-items: center;
}
#loginVerificationTelegramStep .form-group > label {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
#loginVerificationTelegramStep > .btn {
  margin-top: 22px;
}
.loginVerificationModalBox {
  position: relative;
  background: var(--bg-primary);
  border-radius: 12px;
  width: calc(100% - 32px);
  max-width: min(420px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.loginVerificationModalScroll,
#loginVerificationModal .modal-content.loginVerificationModalScroll {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.loginVerificationModalScroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.loginVerificationModalScroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
#loginVerificationModal .loginVerificationModalBox .modal-close,
#closeLoginVerificationModal {
  flex-shrink: 0;
  z-index: 10;
  pointer-events: auto !important;
  position: absolute !important;
  top: 12px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: var(--text-secondary) !important;
  background: none !important;
  border: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
#loginModal .modal-content {
  width: calc(100% - 32px);
  max-width: min(420px, calc(100vw - 32px));
}
#registerModal .modal-content {
  width: calc(100% - 32px);
  max-width: min(460px, calc(100vw - 32px));
}
#loginModal .modal-close,
#closeLoginModal,
#registerModal .modal-close,
#closeRegisterModal {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}
#registerModal .modal-close,
#closeRegisterModal {
  color: #4b5563 !important;
}
#registerModal .modal-close:hover,
#closeRegisterModal:hover {
  color: #111827 !important;
}
[data-theme=dark] #registerModal .modal-close,
[data-theme=dark] #closeRegisterModal,
.dark-theme #registerModal .modal-close,
.dark-theme #closeRegisterModal {
  color: var(--text-primary, #e5e7eb) !important;
}
[data-theme=dark] #registerModal .modal-close:hover,
[data-theme=dark] #closeRegisterModal:hover,
.dark-theme #registerModal .modal-close:hover,
.dark-theme #closeRegisterModal:hover {
  color: #ffffff !important;
}
.password-field-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.password-field-wrapper input[type=password],
.password-field-wrapper input[type=text] {
  flex: 1;
}
.password-toggle {
  padding: 6px 8px;
  font-size: 0;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.password-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.password-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-icon svg {
  display: block;
}
.password-toggle-icon--hidden {
  display: inline-flex;
}
.password-toggle-icon--visible {
  display: none;
}
.password-toggle.is-visible .password-toggle-icon--hidden {
  display: none;
}
.password-toggle.is-visible .password-toggle-icon--visible {
  display: inline-flex;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.checkbox-label input[type=checkbox] {
  margin-top: 3px;
}
.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}
.checkbox-label a:hover {
  text-decoration: underline;
}
#registerModal .checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  letter-spacing: -0.15px !important;
  margin: 6px 0 2px !important;
  width: 100% !important;
}
#registerModal .checkbox-label > span {
  white-space: nowrap !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}
#registerModal .checkbox-label input[type=checkbox] {
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
}
#registerModal .checkbox-label a {
  white-space: nowrap !important;
  display: inline !important;
  color: var(--primary-color, #6366f1) !important;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#loginModal .auth-form .form-group,
#registerModal .auth-form .form-group {
  margin-bottom: 2px;
}
#loginModal .auth-form .form-group:last-child,
#registerModal .auth-form .form-group:last-child {
  margin-bottom: 0 !important;
}
@media (max-height: 860px) {
  .modal {
    padding: 12px 16px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #loginModal .modal-content,
  #registerModal .modal-content,
  #forgotPasswordModal .modal-content,
  #emailConfirmModal .modal-content,
  #loginVerificationModal .modal-content,
  #passkeysManagerModal .modal-content {
    padding: 22px 24px 18px !important;
    max-width: 440px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: hidden !important;
  }
  #loginModal .modal-content h2,
  #registerModal .modal-content h2,
  #forgotPasswordModal .modal-content h2,
  #emailConfirmModal .modal-content h2 {
    font-size: 20px !important;
    margin: 0 0 12px 0 !important;
  }
  #loginModal .auth-form .form-group,
  #registerModal .auth-form .form-group,
  #forgotPasswordModal .auth-form .form-group {
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  #loginModal .auth-form .form-group label:not(.checkbox-label),
  #registerModal .auth-form .form-group label:not(.checkbox-label) {
    font-size: 12.5px !important;
    margin-bottom: 2px !important;
  }
  #loginModal .auth-form input[type=text],
  #loginModal .auth-form input[type=email],
  #loginModal .auth-form input[type=password],
  #registerModal .auth-form input[type=text],
  #registerModal .auth-form input[type=email],
  #registerModal .auth-form input[type=password] {
    min-height: 40px !important;
    height: 40px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
  #loginModal #loginSubmitBtn,
  #registerModal #registerSubmitBtn,
  #loginModal #loginPasskeyBtn {
    min-height: 40px !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
  }
  #loginModal .passkey-login-divider {
    margin: 10px 0 6px !important;
  }
  #registerModal #registerCaptchaContainer {
    margin: 4px 0 4px !important;
    transform: scale(0.9);
    transform-origin: center top;
  }
  #loginModal .form-footer,
  #registerModal .form-footer {
    margin-top: 8px !important;
    font-size: 13px !important;
  }
  #registerModal .checkbox-label {
    font-size: 12px !important;
    margin: 4px 0 2px !important;
  }
  #registerModal .checkbox-label > span {
    font-size: 12px !important;
  }
}
@media (max-height: 720px) {
  .modal {
    padding: 8px 12px !important;
  }
  #loginModal .modal-content,
  #registerModal .modal-content,
  #forgotPasswordModal .modal-content,
  #emailConfirmModal .modal-content,
  #loginVerificationModal .modal-content,
  #passkeysManagerModal .modal-content {
    padding: 16px 20px 14px !important;
    max-width: 420px !important;
    max-height: calc(100vh - 16px) !important;
    overflow-y: hidden !important;
  }
  #loginModal .modal-content h2,
  #registerModal .modal-content h2,
  #forgotPasswordModal .modal-content h2,
  #emailConfirmModal .modal-content h2 {
    font-size: 18px !important;
    margin: 0 0 8px 0 !important;
  }
  #loginModal .auth-form .form-group,
  #registerModal .auth-form .form-group,
  #forgotPasswordModal .auth-form .form-group {
    gap: 3px !important;
    margin-bottom: 4px !important;
  }
  #loginModal .auth-form .form-group label:not(.checkbox-label),
  #registerModal .auth-form .form-group label:not(.checkbox-label) {
    font-size: 12px !important;
    margin-bottom: 1px !important;
  }
  #loginModal .auth-form input[type=text],
  #loginModal .auth-form input[type=email],
  #loginModal .auth-form input[type=password],
  #registerModal .auth-form input[type=text],
  #registerModal .auth-form input[type=email],
  #registerModal .auth-form input[type=password] {
    min-height: 36px !important;
    height: 36px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
  }
  #loginModal #loginSubmitBtn,
  #registerModal #registerSubmitBtn,
  #loginModal #loginPasskeyBtn {
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
  #loginModal .passkey-login-divider {
    margin: 6px 0 4px !important;
  }
  #registerModal #registerCaptchaContainer {
    transform: scale(0.82) !important;
    margin: 2px 0 2px !important;
  }
  #registerModal .checkbox-label {
    font-size: 11.5px !important;
    margin: 3px 0 1px !important;
  }
  #registerModal .checkbox-label > span {
    font-size: 11.5px !important;
  }
  #loginModal .form-footer,
  #registerModal .form-footer {
    margin-top: 6px !important;
    font-size: 12px !important;
  }
}
@media (max-height: 600px) {
  #loginModal .modal-content,
  #registerModal .modal-content,
  #forgotPasswordModal .modal-content,
  #emailConfirmModal .modal-content,
  #loginVerificationModal .modal-content,
  #passkeysManagerModal .modal-content {
    padding: 12px 16px 10px !important;
    max-height: calc(100vh - 12px) !important;
    overflow-y: auto !important;
  }
  #loginModal .modal-content h2,
  #registerModal .modal-content h2 {
    font-size: 16px !important;
    margin: 0 0 6px 0 !important;
  }
  #loginModal .auth-form input[type=text],
  #loginModal .auth-form input[type=password],
  #registerModal .auth-form input[type=text],
  #registerModal .auth-form input[type=email],
  #registerModal .auth-form input[type=password] {
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 8px !important;
    font-size: 12.5px !important;
  }
  #loginModal #loginSubmitBtn,
  #registerModal #registerSubmitBtn,
  #loginModal #loginPasskeyBtn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }
  #registerModal #registerCaptchaContainer {
    transform: scale(0.74) !important;
    margin: 0 !important;
  }
  #registerModal .checkbox-label,
  #registerModal .checkbox-label > span {
    font-size: 10.5px !important;
  }
}
@media (max-width: 768px) {
  #loginModal,
  #registerModal,
  #forgotPasswordModal,
  #emailConfirmModal {
    align-items: center;
    justify-content: center;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #loginModal .modal-content,
  #registerModal .modal-content,
  #forgotPasswordModal .modal-content,
  #emailConfirmModal .modal-content {
    width: calc(100% - 16px);
    max-width: 100%;
    margin: auto;
    padding: 16px 14px 14px;
    max-height: min(92dvh, calc(100% - 16px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  #registerModal .modal-content h2,
  #loginModal .modal-content h2 {
    font-size: 18px;
    margin: 0 36px 10px 0;
    padding-right: 0;
  }
  #registerModal .auth-form .form-group,
  #loginModal .auth-form .form-group {
    gap: 4px;
    margin-bottom: 0 !important;
  }
  #registerModal .auth-form .form-group label:not(.checkbox-label),
  #loginModal .auth-form .form-group label:not(.checkbox-label) {
    font-size: 13px;
  }
  #registerModal .auth-form input[type=text],
  #registerModal .auth-form input[type=email],
  #registerModal .auth-form input[type=password],
  #loginModal .auth-form input[type=text],
  #loginModal .auth-form input[type=password] {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 15px;
  }
  #registerModal .checkbox-label {
    font-size: 12px;
    gap: 6px;
  }
  #registerModal .checkbox-label a {
    white-space: nowrap;
  }
  #registerModal #registerCaptchaContainer,
  #registerModal #registerCaptcha {
    transform-origin: center top;
    max-width: 100%;
  }
  #registerModal .form-footer,
  #loginModal .form-footer {
    margin-top: 8px;
    font-size: 13px;
  }
  #registerModal .btn-block,
  #loginModal .btn-block {
    margin-top: 4px;
    padding: 10px 14px;
  }
}
#registerCaptchaContainer,
#loginCaptchaContainer,
#emailConfirmCaptchaContainer,
#ddosCaptchaContainer,
.captcha-widget-frame,
.partner-embedded-modal #registerCaptchaContainer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 14px auto 10px !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
#registerCaptcha,
#loginCaptcha,
#emailConfirmCaptcha,
#ddosCaptcha,
.captcha-widget-frame > #captcha,
.partner-embedded-modal #registerCaptcha {
  display: block !important;
  width: 304px !important;
  height: 78px !important;
  overflow: hidden !important;
  border-radius: 3px !important;
  background: #222 !important;
  margin: 0 auto !important;
  border: none !important;
  box-shadow: none !important;
}
html[data-theme=dark] #registerCaptcha,
html[data-theme=dark] #loginCaptcha,
html[data-theme=dark] #emailConfirmCaptcha,
html[data-theme=dark] #ddosCaptcha,
html[data-theme=dark] .captcha-widget-frame > #captcha,
html[data-theme=dark] .partner-embedded-modal #registerCaptcha,
[data-theme=dark] #registerCaptcha,
[data-theme=dark] #loginCaptcha,
[data-theme=dark] #emailConfirmCaptcha,
[data-theme=dark] #ddosCaptcha,
[data-theme=dark] .captcha-widget-frame > #captcha,
[data-theme=dark] .partner-embedded-modal #registerCaptcha,
html:not([data-theme=light]) #registerCaptcha,
html:not([data-theme=light]) #loginCaptcha,
html:not([data-theme=light]) #emailConfirmCaptcha,
html:not([data-theme=light]) #ddosCaptcha,
html:not([data-theme=light]) .captcha-widget-frame > #captcha,
html:not([data-theme=light]) .partner-embedded-modal #registerCaptcha {
  width: 300px !important;
  height: 76px !important;
  clip-path: inset(2px 4px 2px 2px) !important;
  -webkit-clip-path: inset(2px 4px 2px 2px) !important;
  background: #222 !important;
}
html[data-theme=light] #registerCaptcha,
html[data-theme=light] #loginCaptcha,
html[data-theme=light] #emailConfirmCaptcha,
html[data-theme=light] #ddosCaptcha,
html[data-theme=light] .captcha-widget-frame > #captcha,
html[data-theme=light] .partner-embedded-modal #registerCaptcha {
  background: #f9f9f9 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}
#registerCaptcha:empty::before,
#loginCaptcha:empty::before,
#emailConfirmCaptcha:empty::before,
#ddosCaptcha:empty::before {
  content: "\417\430\433\440\443\437\43a\430  \43a\430\43f\447\438...";
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  font-size: 13px !important;
  color: var(--text-secondary, #9ca3af) !important;
}
#registerCaptcha > div,
#loginCaptcha > div,
#emailConfirmCaptcha > div,
#ddosCaptcha > div,
.captcha-widget-frame > #captcha > div,
.partner-embedded-modal #registerCaptcha > div,
#registerCaptcha iframe,
#loginCaptcha iframe,
#emailConfirmCaptcha iframe,
#ddosCaptcha iframe,
.captcha-widget-frame > #captcha iframe,
.partner-embedded-modal #registerCaptcha iframe {
  display: block !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 400px) {
  #registerCaptcha,
  #loginCaptcha,
  #emailConfirmCaptcha,
  #ddosCaptcha,
  .captcha-widget-frame > #captcha,
  .partner-embedded-modal #registerCaptcha {
    transform: scale(0.92) !important;
    transform-origin: center top !important;
  }
}
.field-error-tooltip {
  position: relative;
  margin-top: 6px;
  padding: 8px 10px 8px 36px;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-primary);
  background: var(--bg-secondary, #374151);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.field-error-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--bg-secondary, #374151);
}
.field-error-tooltip .field-error-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: #ea580c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.field-error-tooltip .field-error-text {
  color: var(--danger-color, #ef4444);
}
.form-group label,
.form-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}
.form-group input {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: var(--field-font-size);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-size: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-input,
.form-textarea,
.sheet-input,
.search-input,
.category-search-input,
.lots-toolbar-search-input,
.game-search-input,
.request-form textarea,
.support-form textarea,
.profile-report-modal-content .profile-report-textarea,
.withdraw-form .form-group input,
.auth-form .form-group input,
.auth-form .form-group textarea {
  font-size: var(--field-font-size);
}
.form-input::placeholder,
.form-textarea::placeholder,
.sheet-input::placeholder,
.search-input::placeholder,
.category-search-input::placeholder,
.lots-toolbar-search-input::placeholder,
.game-search-input::placeholder,
.request-form textarea::placeholder,
.support-form textarea::placeholder,
.profile-report-modal-content .profile-report-textarea::placeholder,
.withdraw-form .form-group input::placeholder,
.auth-form .form-group input::placeholder,
.auth-form .form-group textarea::placeholder {
  font-size: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  :root {
    --field-font-size: clamp(13px, 2.6vw + 6px, 16px);
  }
  .form-group input:focus,
  .form-group input:focus-visible,
  .form-input:focus,
  .form-input:focus-visible,
  .form-textarea:focus,
  .form-textarea:focus-visible,
  .sheet-input:focus,
  .sheet-input:focus-visible,
  .search-input:focus,
  .search-input:focus-visible,
  .category-search-input:focus,
  .category-search-input:focus-visible,
  .lots-toolbar-search-input:focus,
  .lots-toolbar-search-input:focus-visible,
  .game-search-input:focus,
  .game-search-input:focus-visible,
  .request-form textarea:focus,
  .support-form textarea:focus,
  .profile-report-modal-content .profile-report-textarea:focus,
  .withdraw-form .form-group input:focus,
  .auth-form .form-group input:focus,
  .auth-form .form-group textarea:focus {
    font-size: 16px !important;
  }
}
.form-group select {
  padding: 12px 2.4em 12px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.15);
  background-color: var(--bg-primary);
}
.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}
.btn-block {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}
.link:hover {
  text-decoration: underline;
}
.footer {
  background: var(--bg-primary);
  border-top: none;
  padding: 16px 0 12px;
  margin-top: auto;
  overflow: hidden;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 6px;
}
.footer-section h3 {
  font-size: 24px;
  margin-bottom: 16px;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 12px;
  padding-top: 0;
}
.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section ul li a:hover {
  color: var(--primary-color);
}
.footer-section p {
  color: var(--text-secondary);
}
.footer-socials {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
body.home-page .footer-socials {
  display: inline-flex;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover {
  background: transparent;
  border: none;
  color: var(--primary-color);
  transform: translateY(-1px);
}
.footer-social--tg:hover {
  color: #2aabee;
}
.footer-social--tt:hover {
  color: var(--text-primary);
}
.footer-social--yt:hover {
  color: #ff0033;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.social-link:hover {
  background: color-mix(in srgb, var(--primary-color) 18%, var(--bg-primary));
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
  color: var(--primary-color);
  transform: translateY(-1px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.social-link--tg:hover {
  color: #2aabee;
  border-color: color-mix(in srgb, #2aabee 50%, var(--border-color));
}
.social-link--tt:hover {
  color: #111;
  border-color: color-mix(in srgb, #111 35%, var(--border-color));
}
.social-link--yt:hover {
  color: #ff0033;
  border-color: color-mix(in srgb, #ff0033 45%, var(--border-color));
}
html[data-theme=dark] .social-link--tt:hover {
  color: #fff;
  border-color: color-mix(in srgb, #fff 35%, var(--border-color));
}
.footer-content > .footer-section:first-child {
  display: none;
}
body:not(.home-page) .footer-section.footer-links {
  display: none !important;
}
body:not(.home-page) .footer-content {
  display: none;
}
body:not(.home-page) .footer-bottom {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.footer-section.footer-links ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  justify-content: center;
}
.footer-section.footer-links ul li {
  margin-bottom: 0;
}
.footer-bottom {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding-top: 10px;
  margin-top: 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-bottom > p {
  margin: 0;
  display: inline-block;
}
.footer > .container {
  position: relative;
  overflow: hidden;
}
.footer-online {
  position: absolute !important;
  right: 0 !important;
  bottom: 10px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}
.footer-online__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}
.footer-online__count {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .footer-online {
    display: none !important;
  }
}
@media (max-width: 992px) {
  .footer {
    padding: 8px 12px !important;
  }
  .footer .container {
    max-width: 100%;
  }
  .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 4px !important;
  }
  .footer-content .footer-section {
    margin: 0 !important;
  }
  .footer-content > .footer-section:first-child {
    display: none !important;
  }
  .footer-section.footer-links ul {
    gap: 2px 14px !important;
    row-gap: 2px !important;
    align-items: center !important;
  }
  .footer-section.footer-links ul li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }
  .footer-section.footer-links ul li a {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .footer-bottom {
    padding-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.3;
  }
  .footer-bottom p {
    margin: 0;
  }
  .footer-online {
    font-size: 10px !important;
    bottom: 4px !important;
  }
  .footer-online__dot {
    width: 6px;
    height: 6px;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(13px, 4.2vw, 28px);
    white-space: nowrap;
    line-height: 1.2;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .lot-view-page > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero {
    padding: 14px 0 10px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-btn {
    border-radius: 0 0 12px 12px;
  }
}
@media (max-width: 768px) {
  .btn,
  .btn-primary,
  .btn-outline,
  a.btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .btn-block {
    min-height: 48px;
    padding: 14px 20px;
  }
  .payment-card {
    padding: 20px 16px !important;
  }
  #paymentContent .payment-card h2 {
    font-size: 20px !important;
  }
  #yookassaPayment .btn {
    min-height: 52px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  #app .container {
    margin: 20px auto !important;
    padding: 0 12px !important;
  }
  .payment-card h2 {
    font-size: 18px !important;
  }
  .payment-invoice-row {
    flex-wrap: wrap;
    gap: 4px;
  }
}
.rules-section {
  padding: 60px 0;
  background: var(--bg-secondary, #eef1fb);
}
.rules-section.profile-section {
  background: var(--bg-secondary, #eef1fb);
}
.rules-content {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.rules-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.rules-toc {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
}
.rules-toc h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.rules-toc ul {
  list-style: none;
  padding-left: 0;
}
.rules-toc ul li {
  margin-bottom: 8px;
}
.rules-toc ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.rules-toc ul li a:hover {
  color: var(--primary-color);
}
.rules-toc ul ul {
  margin-top: 8px;
  margin-left: 20px;
}
.rules-section-content {
  margin-bottom: 48px;
}
.rules-section-content p,
.rules-section-content li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}
.rules-section-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}
.rules-section-content .data-subsection-title {
  font-size: 22px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
  max-width: 100%;
  width: 100%;
  line-height: 1.6;
}
.rules-section-content .smaller-section {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  margin-top: 24px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.rules-section-content .smaller-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.rules-section-content a,
.rules-content a {
  color: #2563eb;
  text-decoration: underline;
}
.rules-section-content a:hover,
.rules-content a:hover {
  color: #1d4ed8;
}
[data-theme=dark] .rules-section-content a,
[data-theme=dark] .rules-content a {
  color: #60a5fa;
}
[data-theme=dark] .rules-section-content a:hover,
[data-theme=dark] .rules-content a:hover {
  color: #93c5fd;
}
.rules-subsection {
  margin-bottom: 32px;
}
.rules-subsection h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.rules-table {
  margin-bottom: 24px;
}
.rules-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.rules-table thead {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.rules-table th {
  padding: 20px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}
.rules-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}
.rules-table th:first-child,
.rules-table td:first-child {
  white-space: normal;
}
.rules-table th:last-child,
.rules-table td:last-child {
  white-space: normal;
  word-wrap: break-word;
}
.rules-table tbody tr:last-child td {
  border-bottom: none;
}
.rules-table tbody tr:hover {
  background: var(--bg-tertiary);
}
.rules-note {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 6px;
  margin-top: 24px;
}
.rules-note p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.rules-note p:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .rules-content {
    padding: 24px;
  }
  .rules-title {
    font-size: 28px;
  }
  .rules-section-content h2 {
    font-size: 24px;
  }
  .rules-table {
    font-size: 12px;
  }
  .rules-table th,
  .rules-table td {
    padding: 12px 8px;
  }
}
.profile-section {
  padding: 40px 0;
  background: var(--bg-secondary, #eef1fb);
}
@media (min-width: 769px) {
  .profile-section > .container {
    max-width: 1400px;
    width: 100%;
  }
  .profile-section .sales-section {
    max-width: none;
    width: 100%;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-left: 16px !important;
    padding-right: 8px !important;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header.game-header--has-bg {
    padding: 0 !important;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header .game-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: static;
    box-sizing: border-box;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header.game-header--has-bg .game-header-inner {
    position: relative;
    padding: 12px 20px;
  }
  .profile-section .sales-table .game-header-center {
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .profile-section .sales-table .game-header-name {
    max-width: none;
    text-align: center;
  }
}
.profile-header {
  background: var(--bg-primary, #f4f5fb);
  border-radius: 12px;
  padding: 32px 32px 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  --profile-bg-dim: 0;
}
.profile-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: calc(var(--profile-bg-dim, 0) / 100);
  pointer-events: none;
  z-index: 0;
}
.profile-header > *:not(.profile-actions) {
  position: relative;
  z-index: 2;
}
.profile-header.profile-header--has-dim {
  color: #fff;
}
.profile-header.profile-header--has-dim::after {
  background:
    radial-gradient(
      ellipse 105% 105% at 50% 50%,
      transparent 58%,
      rgba(0, 0, 0, 0.5) 100%),
    #000;
}
.profile-header.profile-header--has-dim .profile-username,
.profile-header.profile-header--has-dim .profile-stats .stat-label,
.profile-header.profile-header--has-dim .profile-meta,
.profile-header.profile-header--has-dim .profile-stats .stat-value {
  color: #fff;
}
.profile-header.profile-header--has-dim .profile-stats .stat-value.online {
  color: #4ade80;
}
.profile-avatar {
  flex-shrink: 0;
}
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}
.profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.profile-header > .profile-actions {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  width: auto !important;
}
.profile-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.profile-report-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.75);
}
.profile-report-btn__icon {
  display: block;
  flex-shrink: 0;
}
.profile-report-btn[hidden] {
  display: none !important;
}
.profile-section .sales-table tbody tr.game-header-row {
  overflow: hidden;
  isolation: isolate;
}
.profile-section .sales-table tbody tr.sales-lot-row,
.profile-section .sales-table tbody tr.sales-lot-row td {
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}
.profile-section .sales-table tbody tr.sales-lot-row:hover,
.profile-section .sales-table tbody tr.sales-lot-row:hover td {
  background: var(--bg-secondary);
}
.profile-section .game-header.game-header--has-bg {
  border-bottom-color: transparent !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: hidden;
  vertical-align: middle;
}
.profile-section .game-header.game-header--has-bg .game-header-inner {
  position: relative;
  overflow: hidden;
  contain: paint;
  width: 100%;
  min-height: 48px;
  height: 100%;
  max-height: none;
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.profile-section .game-header.game-header--has-bg .game-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--game-header-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(1px) saturate(1.1);
  pointer-events: none;
}
.profile-section .game-header.game-header--has-bg .game-header-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      135deg,
      rgba(1, 4, 9, 0.78) 0%,
      rgba(1, 4, 9, 0.58) 55%,
      rgba(1, 4, 9, 0.7) 100%);
  pointer-events: none;
}
html[data-theme=dark] .profile-section .game-header.game-header--has-bg .game-header-inner::after {
  background:
    linear-gradient(
      135deg,
      rgba(1, 4, 9, 0.78) 0%,
      rgba(1, 4, 9, 0.58) 55%,
      rgba(1, 4, 9, 0.7) 100%);
}
.profile-section .game-header.game-header--has-bg .game-header-center {
  position: relative;
  z-index: 1;
  gap: 8px;
}
.profile-section .game-header.game-header--has-bg .game-header-name {
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
html:not([data-theme=dark]) .profile-section .game-header.game-header--has-bg .game-header-name {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.profile-section .game-header.game-header--has-bg .game-header-count {
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
html:not([data-theme=dark]) .profile-section .game-header.game-header--has-bg .game-header-count {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}
.profile-section .clickable-game-header.game-header--has-bg:hover {
  background: transparent !important;
  border-color: transparent !important;
}
.profile-section .clickable-game-header.game-header--has-bg:hover .game-header-inner::after {
  background:
    linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.28) 0%,
      rgba(1, 4, 9, 0.68) 100%);
}
html[data-theme=dark] .profile-section .clickable-game-header.game-header--has-bg:hover .game-header-inner::after {
  background:
    linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.28) 0%,
      rgba(1, 4, 9, 0.68) 100%);
}
.profile-description {
  margin-top: 8px;
  margin-bottom: 0;
  margin-left: 0;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
  max-width: min(100%, 520px);
  background: rgba(0, 0, 0, calc(var(--profile-desc-dim, 72) / 100));
  color: #ffffff;
  font-size: 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  line-height: 1.35;
  white-space: pre-wrap;
  align-self: flex-start;
}
.profile-description.profile-description--no-bg {
  background: transparent !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.profile-description[hidden],
.profile-section .profile-description[hidden],
#profileDescription[hidden] {
  display: none !important;
  visibility: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}
.profile-settings-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.profile-settings-modal-content {
  max-width: 720px;
  width: 94vw;
}
@media (max-width: 768px) {
  #profileSettingsModal .profile-settings-modal-content {
    width: min(96vw, 100%);
    max-width: 100%;
    max-height: min(92vh, 100%);
    margin: 8px auto;
    border-radius: 14px;
    padding: 12px 12px 14px;
    box-sizing: border-box;
  }
  #profileSettingsModal .profile-settings-modal-content .modal-header {
    padding: 0;
    margin-bottom: 6px;
    gap: 8px;
    min-height: 32px;
  }
  #profileSettingsModal .profile-settings-modal-content .modal-header h2 {
    font-size: 18px;
    line-height: 1.2;
  }
  #profileSettingsModal .profile-settings-modal-content .modal-close {
    width: 32px;
    height: 32px;
  }
  #profileSettingsModal .profile-settings-kicker {
    font-size: 10px;
    margin-bottom: 2px;
  }
  #profileSettingsModal .profile-settings-subtitle {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
  }
  #profileSettingsModal .profile-settings-form {
    margin-top: 0;
  }
  #profileSettingsModal .profile-settings-body {
    gap: 12px;
  }
  #profileSettingsModal .profile-settings-section {
    padding: 12px;
    border-radius: 12px;
  }
  #profileSettingsModal .section-heading--with-cooldown {
    align-items: stretch;
    flex-wrap: nowrap;
  }
  #profileSettingsModal .section-heading--with-cooldown .section-heading-row {
    align-items: baseline;
    gap: 8px;
  }
  #profileSettingsModal .section-heading--with-cooldown .description-cooldown-notice {
    flex: 1 1 auto;
    text-align: right;
    font-size: 0.72rem;
    margin-top: 6px;
  }
  #profileSettingsModal .section-heading {
    margin-bottom: 10px;
    gap: 8px;
  }
  #profileSettingsModal .section-heading h3 {
    font-size: 15px;
  }
  #profileSettingsModal .section-kicker {
    font-size: 10px;
  }
  #profileSettingsModal .nickname-current-banner {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
    width: 100%;
  }
  #profileSettingsModal .nickname-current-banner.is-editing {
    column-gap: 8px;
    row-gap: 8px;
  }
  #profileSettingsModal .nickname-input-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  #profileSettingsModal .nickname-input-row .form-input {
    min-width: 0;
    flex: 1 1 auto;
  }
  #profileSettingsModal .nickname-input-row .btn-soft,
  #profileSettingsModal .nickname-banner-actions .btn-soft {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 12px;
  }
  #profileSettingsModal .nickname-current-value {
    font-size: 18px;
  }
  #profileSettingsModal .nickname-note,
  #profileSettingsModal .form-hint,
  #profileSettingsModal .nickname-allowed-note {
    font-size: 11px;
  }
  #profileSettingsModal .profile-dim-settings {
    margin-top: 12px;
    padding-top: 12px;
  }
  #profileSettingsModal .profile-dim-label {
    font-size: 13px;
  }
  #profileSettingsModal .profile-dim-preview {
    height: 76px;
    border-radius: 10px;
  }
  #profileSettingsModal .profile-dim-preview-nick {
    font-size: 14px;
  }
  #profileSettingsModal .profile-dim-preview-stats {
    font-size: 11px;
    gap: 8px 12px;
  }
  #profileSettingsModal .avatar-grid,
  #profileSettingsModal .background-grid {
    gap: 8px;
  }
  #profileSettingsModal .avatar-preview {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  #profileSettingsModal .background-preview {
    height: 52px;
  }
  #profileSettingsModal .avatar-option,
  #profileSettingsModal .background-option {
    min-height: 100px;
    padding: 10px;
  }
  #profileSettingsModal .avatar-option span,
  #profileSettingsModal .background-option span {
    font-size: 11px;
  }
  #profileSettingsModal .upload-card-body {
    padding: 0;
    gap: 10px;
    min-height: 40px;
  }
  #profileSettingsModal .upload-thumb,
  #profileSettingsModal .upload-thumb.large {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  #profileSettingsModal .form-actions {
    gap: 8px;
    margin-top: 4px;
  }
  #profileSettingsModal .form-actions .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}
.profile-settings-kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: 4px;
  font-weight: 600;
}
.profile-settings-subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}
.profile-settings-form {
  margin-top: 0;
}
.profile-settings-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profile-settings-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.section-kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  font-weight: 600;
}
.section-heading h3 {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--text-primary);
}
.section-note {
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 220px;
}
.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.profile-settings-grid > .profile-settings-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.avatar-selection,
.background-selection {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 16px;
}
.avatar-selection .avatar-grid,
.background-selection .background-grid {
  flex: 1 1 auto;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.avatar-selection .custom-upload-row,
.background-selection .custom-upload-row {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}
.avatar-selection .avatar-cooldown-notice,
.background-selection .background-cooldown-notice {
  margin-top: 8px;
  min-height: 1.35em;
  line-height: 1.35;
}
.profile-settings-section.full-width-section {
  grid-column: 1 / -1;
}
.description-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.description-card .form-textarea,
#profileSettingsDescription {
  min-height: 44px !important;
  height: 44px;
  max-height: 72px;
  padding: 10px 12px !important;
  resize: none !important;
  overflow-y: auto;
  line-height: 1.35;
}
@media (max-width: 768px) {
  .description-card .form-textarea,
  #profileSettingsDescription {
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    padding: 8px 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    field-sizing: fixed;
  }
}
.form-textarea {
  width: 100%;
  min-height: 96px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.15);
}
.description-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
#profileDescriptionCounter {
  font-weight: 600;
  color: var(--text-primary);
}
.description-meta--admin {
  display: none;
}
#profileSettingsDescription.profile-description-unlimited {
  min-height: 96px !important;
  height: auto !important;
  max-height: 220px !important;
  white-space: pre-wrap;
  overflow-y: auto;
  field-sizing: content;
}
@media (max-width: 768px) {
  #profileSettingsDescription.profile-description-unlimited {
    min-height: 88px !important;
    height: auto !important;
    max-height: 180px !important;
    white-space: pre-wrap;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
.nickname-allowed-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nickname-allowed-note.has-error {
  color: var(--danger-color);
}
.form-input.input-error {
  border-color: var(--danger-color);
}
.profile-settings-modal-content .modal-header {
  position: relative;
  top: auto;
  z-index: 1;
  background: transparent;
  border-bottom: none;
  margin-bottom: 8px;
  padding: 0;
  display: block;
  min-height: 0;
}
.profile-settings-modal-content .modal-header h2 {
  margin: 0;
  padding-right: 40px;
  line-height: 1.2;
}
.profile-settings-modal-content .modal-close,
#profileSettingsModal .modal-close,
#closeProfileSettingsModal {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  overflow: hidden !important;
  transition: color 0.2s ease, background 0.2s ease;
}
.profile-settings-modal-content .modal-close:hover,
#profileSettingsModal .modal-close:hover,
#closeProfileSettingsModal:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: none;
}
#profileSettingsModal .modal-content,
.profile-settings-modal-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#profileSettingsModal .modal-content::-webkit-scrollbar,
.profile-settings-modal-content::-webkit-scrollbar {
  display: none;
}
#profileSettingsModal {
  z-index: 1000000;
}
.nickname-current-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-tertiary);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
.nickname-wrapper {
  width: 100%;
}
.nickname-panel-main {
  flex: 1 1 auto;
  min-width: 0;
}
.nickname-current-banner.is-editing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title title" "input actions" "meta meta";
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
}
.nickname-current-banner.is-editing .nickname-panel-main,
.nickname-current-banner.is-editing .nickname-edit-mode {
  display: contents;
}
.nickname-current-banner.is-editing .nickname-card-title {
  grid-area: title;
  margin: 0;
}
.nickname-current-banner.is-editing .nickname-input-row {
  grid-area: input;
  min-width: 0;
}
.nickname-current-banner.is-editing .nickname-banner-actions {
  grid-area: actions;
  align-self: center;
  padding-top: 0;
  flex-shrink: 0;
}
.nickname-current-banner.is-editing .nickname-edit-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.nickname-current-banner.is-editing .nickname-edit-meta .nickname-cooldown-notice,
.nickname-current-banner.is-editing .nickname-edit-meta .nickname-allowed-note,
.nickname-current-banner.is-editing .nickname-edit-meta .form-hint {
  margin: 0;
}
.nickname-edit-meta .nickname-allowed-note {
  margin-top: 0;
}
.nickname-edit-meta .form-hint {
  margin-top: 0;
}
.nickname-view-mode[hidden],
.nickname-edit-mode[hidden] {
  display: none !important;
}
.nickname-current-value {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.nickname-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 280px;
}
.nickname-edit-mode {
  width: 100%;
}
.nickname-edit-mode.hidden {
  display: none !important;
}
.nickname-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.nickname-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nickname-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.nickname-input-row .form-input {
  flex: 1;
  min-width: 220px;
}
.btn-soft {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-soft:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.avatar-grid,
.background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.avatar-option,
.background-option {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-secondary);
  min-height: 118px;
  box-sizing: border-box;
}
.avatar-option.active,
.background-option.active {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.18);
}
.avatar-option.option-disabled,
.background-option.option-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
  box-shadow: none;
}
.avatar-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.avatar-option.option-disabled .avatar-option-label {
  pointer-events: none;
}
.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  position: relative;
  overflow: hidden;
}
.avatar-preview.has-image,
.background-preview.has-image,
.upload-thumb.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.avatar-preview span,
.background-preview span,
.upload-thumb span {
  font-size: 24px;
  font-weight: 600;
}
.avatar-preview.has-image span,
.background-preview.has-image .background-custom-plus,
.upload-thumb.has-image {
  color: transparent;
}
.background-preview {
  width: 100%;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 600;
}
.background-preview.custom-bg {
  position: relative;
  overflow: hidden;
  font-size: 32px;
}
.background-option[data-background=custom] .background-custom-edit-hint {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.background-option[data-background=custom].active .background-preview.custom-bg.has-image .background-custom-edit-hint {
  display: flex;
}
.background-option[data-background=custom].active:has(.background-preview.has-image):hover .background-custom-edit-hint {
  opacity: 1;
}
.custom-upload-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: nowrap;
}
.upload-card {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--bg-tertiary);
  box-sizing: border-box;
}
.upload-card:hover {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.04);
}
.upload-card input {
  display: none;
}
.upload-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}
.upload-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upload-card-body p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.25;
}
.upload-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.upload-card-meta > span {
  font-size: inherit;
  color: inherit;
}
.avatar-option > span,
.avatar-option-label > span,
.background-option > span {
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}
.upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 22px;
  font-weight: 600;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.upload-thumb.disabled {
  opacity: 0.4;
  border-style: dashed;
}
.upload-thumb.large {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.text-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.text-link:hover {
  color: var(--primary-color);
}
.text-link.danger-text {
  color: var(--danger-color);
}
.text-link.danger-text:hover {
  color: #c53030;
}
.profile-header.default-background {
  background: var(--bg-primary);
}
html:not([data-theme=dark]) .profile-header.profile-header--has-dim.default-background {
  background: #121212;
}
.profile-header.gradient1-background {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #312e81);
}
.profile-header.gradient2-background {
  background:
    linear-gradient(
      135deg,
      #312e81,
      #db2777);
}
.profile-header.gradient3-background {
  background:
    linear-gradient(
      135deg,
      #065f46,
      #0ea5e9);
}
.profile-header.custom-background {
  color: #fff;
}
.profile-header.gradient1-background,
.profile-header.gradient2-background,
.profile-header.gradient3-background {
  color: #fff;
}
.profile-header.gradient1-background .profile-username,
.profile-header.gradient2-background .profile-username,
.profile-header.gradient3-background .profile-username,
.profile-header.custom-background .profile-username {
  color: #fff;
}
.profile-header.gradient1-background .profile-stats .stat-label,
.profile-header.gradient2-background .profile-stats .stat-label,
.profile-header.gradient3-background .profile-stats .stat-label,
.profile-header.custom-background .profile-stats .stat-label,
.profile-header.gradient1-background .profile-meta,
.profile-header.gradient2-background .profile-meta,
.profile-header.gradient3-background .profile-meta,
.profile-header.custom-background .profile-meta {
  color: rgba(255, 255, 255, 0.85);
}
.profile-header.gradient1-background .profile-stats .stat-value,
.profile-header.gradient2-background .profile-stats .stat-value,
.profile-header.gradient3-background .profile-stats .stat-value,
.profile-header.custom-background .profile-stats .stat-value {
  color: #fff;
}
.profile-header.gradient1-background .profile-stats .stat-value.online,
.profile-header.gradient2-background .profile-stats .stat-value.online,
.profile-header.gradient3-background .profile-stats .stat-value.online,
.profile-header.custom-background .profile-stats .stat-value.online {
  color: var(--success-color, #22c55e) !important;
  -webkit-text-fill-color: var(--success-color, #22c55e);
}
.profile-rating-stars {
  font-size: 20px;
  letter-spacing: 0;
  margin: 0;
  line-height: 1;
}
.profile-rating-stars .profile-stars-filled {
  color: #fbbf24;
}
.profile-rating-stars .profile-stars-empty {
  color: #9ca3af;
}
.profile-avatar.default-avatar .avatar-placeholder,
.avatar-preview.default-preview {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.profile-avatar.gradient1-avatar .avatar-placeholder,
.avatar-preview.gradient1 {
  background:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.profile-avatar.gradient2-avatar .avatar-placeholder,
.avatar-preview.gradient2 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.profile-avatar.gradient3-avatar .avatar-placeholder,
.avatar-preview.gradient3 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.background-preview.default-bg {
  background: var(--bg-tertiary);
}
.background-preview.gradient1-bg {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #312e81);
}
.background-preview.gradient2-bg {
  background:
    linear-gradient(
      135deg,
      #312e81,
      #db2777);
}
.background-preview.gradient3-bg {
  background:
    linear-gradient(
      135deg,
      #065f46,
      #0ea5e9);
}
.profile-avatar.custom-avatar .avatar-placeholder,
.avatar-preview.custom {
  background-color: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
}
.avatar-preview.custom.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.avatar-placeholder.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-width: 0;
}
.profile-banned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  white-space: nowrap;
}
.profile-banned-badge[hidden] {
  display: none !important;
}
.profile-username.profile-username--banned {
  color: #fff !important;
}
.profile-header.profile-header--banned .profile-avatar::after {
  content: "\1f6ab";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.profile-header.profile-header--banned .profile-avatar {
  position: relative;
}
.sales-section.profile-sales-blocked .sales-table-wrap {
  display: none;
}
.sales-section.profile-sales-blocked .profile-search-wrapper {
  display: none !important;
}
.profile-banned-lots-notice {
  display: none;
  text-align: center;
  padding: 28px 16px;
  color: #f87171;
  font-size: 15px;
  font-weight: 600;
}
.sales-section.profile-sales-blocked .profile-banned-lots-notice {
  display: block;
}
.view-user-name-block .view-user-banned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.view-user-name-block strong.view-user-name--banned {
  color: #fff;
}
.chat-dialog-name-banned-icon {
  margin-right: 4px;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}
.chat-dialog-name-text.chat-dialog-name-banned {
  color: #fff;
}
.profile-report-modal-content {
  max-width: 440px;
}
#profileReportDescriptionGroup[hidden] {
  display: none !important;
}
.profile-report-modal-content .profile-report-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  background: var(--bg-primary);
  color: var(--text-primary);
  resize: none;
  min-height: 96px;
  max-height: 96px;
  overflow-y: auto;
  transition: border-color 0.2s;
}
.profile-report-modal-content .profile-report-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.profile-report-modal-content .profile-report-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.profile-report-modal-error {
  margin: 0 0 12px;
  color: var(--danger-color, #ef4444);
  font-size: 13px;
}
.profile-report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.profile-name-row .profile-username {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.15;
  min-width: 0;
}
.profile-name-row .profile-level-badge {
  flex-shrink: 0;
  align-self: center;
  margin-top: 2px;
}
.profile-name-row .profile-staff-badge {
  flex-shrink: 0;
  align-self: center;
  margin-top: 2px;
}
.profile-staff-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: #8b5cf6;
  color: #fff;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.profile-staff-badge[hidden] {
  display: none !important;
}
.profile-username {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.profile-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: rgba(20, 20, 24, 0.88);
  color: #c8c8d0;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.profile-level-badge[hidden] {
  display: none !important;
}
.profile-level-badge--novice {
  color: #aeb4c0;
  border-color: rgba(174, 180, 192, 0.55);
  background: rgba(36, 40, 48, 0.9);
}
.profile-level-badge--seller {
  color: #7eb6ff;
  border-color: rgba(126, 182, 255, 0.65);
  background:
    linear-gradient(
      180deg,
      rgba(28, 46, 78, 0.95),
      rgba(18, 28, 48, 0.95));
}
.profile-level-badge--trusted {
  color: #5fd4c8;
  border-color: rgba(95, 212, 200, 0.7);
  background:
    linear-gradient(
      180deg,
      rgba(18, 52, 50, 0.95),
      rgba(14, 32, 34, 0.95));
}
.profile-level-badge--pro {
  color: #6fdf8a;
  border-color: rgba(111, 223, 138, 0.7);
  background:
    linear-gradient(
      180deg,
      rgba(20, 52, 32, 0.95),
      rgba(14, 30, 22, 0.95));
}
.profile-level-badge--top {
  color: #c6f35a;
  border-color: rgba(198, 243, 90, 0.75);
  background:
    linear-gradient(
      180deg,
      rgba(42, 58, 16, 0.95),
      rgba(24, 34, 12, 0.95));
  text-shadow: 0 0 8px rgba(198, 243, 90, 0.35);
}
.profile-level-badge--master {
  color: #ffc857;
  border-color: rgba(255, 200, 87, 0.75);
  background:
    linear-gradient(
      180deg,
      rgba(64, 44, 12, 0.95),
      rgba(36, 24, 8, 0.95));
}
.profile-level-badge--expert {
  color: #ff9a4d;
  border-color: rgba(255, 154, 77, 0.8);
  background:
    linear-gradient(
      180deg,
      rgba(72, 36, 12, 0.96),
      rgba(40, 20, 8, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 120, 40, 0.12), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.profile-level-badge--elite {
  color: #e889ff;
  border-color: rgba(232, 137, 255, 0.75);
  background:
    linear-gradient(
      135deg,
      rgba(58, 20, 72, 0.96),
      rgba(28, 14, 42, 0.96));
  text-shadow: 0 0 10px rgba(232, 137, 255, 0.35);
}
.profile-level-badge--veteran {
  color: #9bb0ff;
  border-color: rgba(155, 176, 255, 0.75);
  background:
    linear-gradient(
      180deg,
      rgba(28, 32, 78, 0.96),
      rgba(16, 18, 44, 0.96));
  letter-spacing: 0.05em;
}
.profile-level-badge--champion {
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.8);
  background:
    linear-gradient(
      135deg,
      rgba(72, 16, 32, 0.96),
      rgba(40, 10, 22, 0.96));
  box-shadow: 0 0 12px rgba(255, 70, 110, 0.22);
}
.profile-level-badge--legend {
  color: #ffe08a;
  border-color: rgba(255, 214, 110, 0.9);
  background:
    linear-gradient(
      135deg,
      rgba(78, 54, 10, 0.98),
      rgba(42, 28, 6, 0.98));
  text-shadow: 0 0 12px rgba(255, 200, 80, 0.45);
  box-shadow: 0 0 14px rgba(255, 190, 60, 0.28), inset 0 1px 0 rgba(255, 240, 180, 0.2);
}
.profile-level-badge--unlimited {
  color: #ffffff;
  border-color: rgba(240, 245, 255, 0.95);
  background:
    linear-gradient(
      135deg,
      rgba(56, 62, 88, 0.98),
      rgba(28, 30, 48, 0.98));
  box-shadow:
    0 0 0 1px rgba(200, 220, 255, 0.35),
    0 0 18px rgba(160, 190, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  background-image:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.18),
      transparent 40%,
      rgba(180, 205, 255, 0.28) 60%,
      transparent 80%),
    linear-gradient(
      135deg,
      rgba(56, 62, 88, 0.98),
      rgba(28, 30, 48, 0.98));
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.profile-header-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.profile-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 32px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  width: 100%;
  flex: 1 1 100%;
}
.profile-achievements {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}
.achievements-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
}
.achievement-badge {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(
      135deg,
      #1a1a2e 0%,
      #16213e 100%);
  border: 2px solid rgba(100, 150, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(100, 150, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}
.achievement-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(100, 150, 255, 0.4),
    inset 0 0 20px rgba(100, 150, 255, 0.2);
  border-color: rgba(100, 150, 255, 0.6);
}
.achievement-badge.unlocked {
  background:
    linear-gradient(
      135deg,
      #2d3561 0%,
      #1e3a5f 100%);
  border-color: rgba(100, 200, 255, 0.5);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(100, 200, 255, 0.3),
    inset 0 0 20px rgba(100, 200, 255, 0.15);
}
.achievement-badge.unlocked:hover {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(100, 200, 255, 0.5),
    inset 0 0 20px rgba(100, 200, 255, 0.25);
}
.achievement-badge.locked {
  opacity: 0.4;
  filter: grayscale(100%);
}
.achievement-badge-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.achievement-badge-icon svg {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
}
.achievement-badge.unlocked .achievement-badge-icon svg {
  filter: drop-shadow(0 0 4px rgba(100, 200, 255, 0.6));
}
.achievement-badge[data-icon-type=seller] {
  background:
    linear-gradient(
      135deg,
      #2d3561 0%,
      #1e3a5f 100%);
}
.achievement-badge[data-icon-type=star] {
  background:
    linear-gradient(
      135deg,
      #3d2e1f 0%,
      #2d1e0f 100%);
}
.achievement-badge[data-icon-type=shield] {
  background:
    linear-gradient(
      135deg,
      #1a2e3d 0%,
      #0f1e2d 100%);
}
.achievement-badge[data-icon-type=money] {
  background:
    linear-gradient(
      135deg,
      #2d3d1f 0%,
      #1e2d0f 100%);
}
.achievement-badge[data-icon-type=money_gold] {
  background:
    linear-gradient(
      135deg,
      #3d2e1f 0%,
      #2d1e0f 100%);
}
.achievement-badge[data-icon-type=trophy] {
  background:
    linear-gradient(
      135deg,
      #3d2e1f 0%,
      #2d1e0f 100%);
}
.achievement-badge[data-icon-type=chat] {
  background:
    linear-gradient(
      135deg,
      #2d1e3d 0%,
      #1e0f2d 100%);
}
.achievement-badge[data-icon-type=veteran] {
  background:
    linear-gradient(
      135deg,
      #1a1a2e 0%,
      #0f0f1e 100%);
}
.achievement-badge[data-icon-type=check] {
  background:
    linear-gradient(
      135deg,
      #1a2e1a 0%,
      #0f1e0f 100%);
}
.achievement-badge[data-level="1"] {
  border-color: rgba(150, 200, 255, 0.4);
}
.achievement-badge[data-level="2"] {
  border-color: rgba(255, 215, 0, 0.5);
  background:
    linear-gradient(
      135deg,
      #3d2e1f 0%,
      #2d1e0f 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(255, 215, 0, 0.15);
}
.achievement-badge[data-level="3"] {
  border-color: rgba(200, 200, 255, 0.6);
  background:
    linear-gradient(
      135deg,
      #2d2d3d 0%,
      #1d1d2d 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(200, 200, 255, 0.4),
    inset 0 0 20px rgba(200, 200, 255, 0.2);
  animation: platinumGlow 2s ease-in-out infinite alternate;
}
@keyframes platinumGlow {
  from {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(200, 200, 255, 0.4),
      inset 0 0 20px rgba(200, 200, 255, 0.2);
  }
  to {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.3),
      0 0 40px rgba(200, 200, 255, 0.6),
      inset 0 0 20px rgba(200, 200, 255, 0.3);
  }
}
.achievements-modal-content {
  max-width: 900px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.achievement-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}
.achievement-card:hover {
  background: rgba(26, 26, 46, 0.95);
  border-color: rgba(100, 150, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.achievement-card.locked {
  opacity: 0.5;
}
.achievement-card-icon {
  flex-shrink: 0;
}
.achievement-card-info {
  flex: 1;
}
.achievement-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.achievement-card-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.achievement-card-reward {
  font-size: 13px;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.achievement-card-date {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}
.achievement-edit-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-primary);
}
.achievement-edit-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}
.achievement-add-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  margin-left: 8px;
}
.achievement-add-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: scale(1.05);
}
.achievement-add-btn svg {
  width: 24px;
  height: 24px;
}
.achievement-edit-card {
  position: relative;
  cursor: pointer;
}
.achievement-edit-card:hover {
  background: rgba(26, 26, 46, 0.95);
  border-color: var(--primary-color);
}
.achievement-card-order-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-color);
  color: var(--text-primary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.achievement-order-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--primary-color);
  color: var(--text-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}
.achievement-order-badge.selected {
  background: var(--success-color);
  transform: scale(1.1);
}
.achievement-order-badge:not(.selected) {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}
#achievementOrderPreview {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.achievement-order-slot {
  flex: 1;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  position: relative;
  transition: all 0.2s;
}
.achievement-order-slot:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}
.achievement-order-slot-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: var(--text-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.achievement-order-slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding-top: 8px;
}
.achievement-order-slot-name {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-order-slot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--error-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
}
.achievement-order-slot-remove:hover {
  background: var(--error-color);
  transform: scale(1.1);
}
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
  background: var(--bg-secondary);
  border-radius: 0 0 12px 12px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}
.profile-stats .stat-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  justify-content: flex-start;
  white-space: nowrap;
}
.profile-stats .stat-item--rating {
  margin: 0;
  gap: 3px;
  align-items: center;
  cursor: default;
  pointer-events: none;
}
.profile-stats .profile-rating-stars {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}
.profile-stats .stat-label--rating-link {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: default;
  pointer-events: none;
}
.profile-stats .stat-item--reviews-link {
  cursor: pointer;
}
.profile-stats .stat-label--reviews-link {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.profile-stats .stat-label--reviews-link:hover,
.profile-stats .stat-label--reviews-link:focus-visible,
.profile-stats .stat-item--reviews-link:hover .stat-label--reviews-link {
  color: var(--primary-color, #6366f1);
  border-bottom-color: currentColor;
}
.profile-stats .stat-label--reviews-link:focus {
  outline: none;
}
.profile-stats .stat-label--reviews-link:focus-visible {
  outline: 2px solid var(--primary-color, #7c3aed);
  outline-offset: 3px;
  border-radius: 2px;
}
.profile-reviews-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.profile-reviews-btn:hover,
.profile-stats .stat-item--reviews-link:hover .profile-reviews-btn {
  color: var(--primary-color, #6366f1);
  text-decoration-color: currentColor;
}
.profile-stats .stat-item--reviews-link:hover .stat-label,
.profile-stats .stat-item--reviews-link:hover .stat-value,
.profile-stats .profile-stat-scroll-reviews:hover {
  color: var(--primary-color, #6366f1);
}
.profile-stats .profile-stat-scroll-reviews {
  cursor: pointer;
}
.profile-stats .stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}
.profile-stats .stat-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}
.profile-stats .stat-value.positive {
  color: var(--success-color);
}
.profile-stats .stat-value.online {
  color: var(--success-color, #22c55e) !important;
  -webkit-text-fill-color: var(--success-color, #22c55e);
  font-size: 16px;
}
.profile-stats .stat-value.offline {
  color: var(--text-secondary);
  font-size: 16px;
}
.profile-meta {
  display: flex;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
  margin-left: 0;
  padding-bottom: 0;
  align-items: center;
  justify-content: flex-start;
}
.profile-meta-separator {
  color: var(--text-secondary);
}
.sales-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.profile-reviews-section {
  margin: 40px 0 6px;
  scroll-margin-top: calc(var(--site-header-h, 68px) + 16px);
}
.profile-section > .container > .sales-section {
  margin-bottom: 0;
}
.profile-section > .container > .sales-section + .profile-reviews-section {
  margin-top: 40px;
}
.lot-content .lot-reviews-section {
  margin: 18px 0 8px;
  width: 100%;
}
.lot-content .lot-reviews-section .profile-reviews-wrap {
  margin-top: 0;
  padding: 10px 14px;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
}
.profile-reviews-wrap {
  padding: 14px 16px;
  margin-bottom: 0;
}
.profile-reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .profile-reviews-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    min-height: var(--profile-reviews-min-h, 0px);
  }
  .profile-reviews-list::-webkit-scrollbar {
    display: none;
  }
  .profile-review-card {
    flex: 0 0 calc(100% - 28px);
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    touch-action: auto;
  }
  .profile-reviews-body.has-more-reviews .profile-reviews-list {
    padding-bottom: 4px;
  }
  .profile-reviews-body.has-more-reviews::after {
    display: none;
  }
  .profile-reviews-body.has-more-reviews {
    padding-bottom: 0;
  }
  .profile-reviews-body.has-more-reviews .profile-reviews-actions {
    display: none !important;
  }
}
.profile-review-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
}
.profile-review-card.has-game-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--review-game-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: saturate(1.05) blur(0.2px);
  pointer-events: none;
}
.profile-review-card.has-game-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--bg-secondary) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg-secondary) 72%, transparent) 55%,
      color-mix(in srgb, var(--bg-secondary) 82%, transparent) 100%);
  pointer-events: none;
}
.profile-review-card-inner {
  position: relative;
  z-index: 1;
}
.profile-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.profile-review-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.profile-review-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  user-select: none;
  background-image:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.profile-review-avatar--default {
  background-image:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.profile-review-avatar--gradient1 {
  background-image:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.profile-review-avatar--gradient2 {
  background-image:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.profile-review-avatar--gradient3 {
  background-image:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.profile-review-avatar.has-image {
  color: transparent;
  font-size: 0;
  border-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.profile-review-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-review-avatar-initials {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
  user-select: none;
}
.profile-review-author-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  flex: 1;
}
.profile-review-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-review-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.profile-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.profile-review-stars {
  color: #fbbf24;
  letter-spacing: 0.5px;
  font-size: 14px;
}
.profile-review-rating-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-review-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}
.profile-review-comment {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.profile-review-seller-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color, #3b82f6);
  background: color-mix(in srgb, var(--input-bg, rgba(127,127,127,0.12)) 88%, transparent);
}
.profile-review-seller-reply--empty {
  padding: 0;
  border-left: none;
  background: transparent;
}
.profile-review-seller-reply-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 4px;
}
.profile-review-seller-reply-text {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.profile-review-seller-reply-preview {
  display: none;
}
.profile-review-seller-reply-full {
  display: inline;
}
@media (max-width: 768px) {
  .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-preview {
    display: inline;
  }
  .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-full {
    display: none;
  }
  .profile-review-card.has-collapsible-reply {
    cursor: pointer;
  }
  .profile-review-card.has-collapsible-reply:not(.is-reply-expanded) .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-text {
    opacity: 0.92;
  }
  .profile-review-card.has-collapsible-reply .profile-review-seller-reply.is-collapsible::after {
    content: "\41d\430\436\43c\438\442\435, \447\442\43e\431\44b  \440\430\441\43a\440\44b\442\44c";
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
  }
  .profile-review-card.has-collapsible-reply.is-reply-expanded .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-preview {
    display: none;
  }
  .profile-review-card.has-collapsible-reply.is-reply-expanded .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-full {
    display: inline;
  }
  .profile-review-card.has-collapsible-reply.is-reply-expanded .profile-review-seller-reply.is-collapsible::after {
    content: "\41d\430\436\43c\438\442\435, \447\442\43e\431\44b  \441\432\435\440\43d\443\442\44c";
  }
}
.profile-review-reply-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-color, #3b82f6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.profile-review-reply-btn:hover {
  text-decoration: underline;
}
.profile-review-reply-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  text-decoration: none;
}
.profile-reviews-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
  min-height: 0;
}
.profile-reviews-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.profile-reviews-empty-inline {
  display: none;
  margin: 0;
  position: static;
  left: auto;
  top: auto;
  transform: none;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: left;
  pointer-events: none;
  white-space: nowrap;
}
.profile-reviews-wrap.profile-reviews-is-empty:not(.profile-reviews-is-loading) .profile-reviews-empty-inline {
  display: block;
  position: static;
  left: auto;
  top: auto;
  transform: none;
  grid-column: 2;
  justify-self: center;
  text-align: center;
  margin: 0;
  z-index: 1;
}
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-list,
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-actions {
  display: none !important;
}
.profile-reviews-wrap.profile-reviews-is-loading .profile-reviews-empty-inline {
  display: none !important;
}
.profile-reviews-wrap.profile-reviews-is-loading .profile-reviews-body {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.profile-reviews-wrap.profile-reviews-is-loading.profile-reviews-is-empty .profile-reviews-header {
  margin-bottom: 0;
}
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 0;
  position: static;
  min-height: 0;
}
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-header-left {
  grid-column: 1;
  justify-self: start;
  flex: none;
}
.profile-reviews-header.sales-header,
.sales-header.profile-reviews-header {
  margin-bottom: 12px;
}
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-header.sales-header,
.profile-reviews-wrap.profile-reviews-is-empty .sales-header.profile-reviews-header {
  margin-bottom: 0;
}
.profile-reviews-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-secondary);
  font-weight: 400;
}
.profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-body {
  display: none;
}
.profile-reviews-header .section-title {
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.profile-reviews-section.profile-reviews-collapsed .profile-reviews-header,
.lot-reviews-section.profile-reviews-collapsed .profile-reviews-header {
  margin-bottom: 0;
}
.lot-content .lot-reviews-section .profile-reviews-toggle-btn.btn,
.profile-reviews-section .profile-reviews-toggle-btn.btn {
  min-height: 30px;
  min-width: 0;
  height: auto;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .profile-reviews-header.sales-header,
  .sales-header.profile-reviews-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .profile-reviews-section.profile-reviews-collapsed .profile-reviews-header,
  .lot-reviews-section.profile-reviews-collapsed .profile-reviews-header,
  .profile-reviews-wrap.profile-reviews-is-empty .profile-reviews-header {
    margin-bottom: 0;
  }
  .profile-reviews-header .profile-reviews-toggle-btn {
    width: auto;
    flex: 0 0 auto;
  }
  html[data-theme=dark] .lot-content .lot-reviews-section .profile-reviews-wrap {
    padding: 8px 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-reviews-wrap {
    margin: 0 14px;
    padding: 16px 14px !important;
  }
  .lot-content .lot-reviews-section .profile-reviews-header .section-title {
    font-size: 15px;
  }
  .lot-content .lot-reviews-section .profile-reviews-toggle-btn.btn {
    min-height: 28px;
    padding: 3px 10px;
    font-size: 12px;
  }
}
.profile-reviews-toggle-btn,
html:not([data-theme=dark]) .profile-reviews-toggle-btn,
.profile-reviews-toggle-btn:hover,
html:not([data-theme=dark]) .profile-reviews-toggle-btn:hover {
  display: none !important;
}
.profile-reviews-body {
  position: relative;
}
.profile-reviews-scroll-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}
.profile-reviews-body.has-more-reviews .profile-reviews-list {
  padding-bottom: 28px;
}
.profile-reviews-body.has-more-reviews::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(30, 35, 45, 0.55) 0%,
      rgba(30, 35, 45, 0.18) 42%,
      rgba(30, 35, 45, 0) 100%);
  border-radius: 0 0 10px 10px;
}
html:not([data-theme=dark]) .profile-reviews-body.has-more-reviews::after {
  background:
    linear-gradient(
      to top,
      rgba(248, 250, 252, 0.78) 0%,
      rgba(248, 250, 252, 0.32) 45%,
      rgba(248, 250, 252, 0) 100%);
}
.profile-reviews-actions {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.profile-reviews-actions.is-hidden {
  display: none !important;
}
.profile-reviews-more-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 16px;
  min-width: 0;
  min-height: 0;
  height: auto;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(148, 163, 184, 0.28);
  color: rgba(203, 213, 225, 0.95);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
html:not([data-theme=dark]) .profile-reviews-more-btn {
  border: none;
  background: rgba(148, 163, 184, 0.32);
  color: rgba(71, 85, 105, 0.95);
  box-shadow: none;
}
.profile-reviews-more-btn:hover {
  background: rgba(148, 163, 184, 0.4);
  border: none;
  color: rgba(241, 245, 249, 0.98);
  box-shadow: none;
  transform: translateY(-1px);
}
html:not([data-theme=dark]) .profile-reviews-more-btn:hover {
  background: rgba(148, 163, 184, 0.45);
  border: none;
  color: rgba(51, 65, 85, 0.98);
  box-shadow: none;
}
.profile-reviews-more-btn:active {
  transform: translateY(0);
}
.profile-reviews-more-btn:focus {
  outline: none;
  border: none;
  box-shadow: none;
}
.profile-reviews-more-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}
.profile-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.profile-page > .profile-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 16px;
}
.profile-page .profile-section > .container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  gap: 0;
}
.profile-page .profile-section .sales-section {
  margin-bottom: 0;
}
.profile-page .profile-section > .container > .sales-section:not(.profile-reviews-wrap) {
  margin-bottom: 40px !important;
}
.profile-page .profile-section .profile-reviews-section {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  background: transparent !important;
  scroll-margin-top: calc(var(--site-header-h, 68px) + 16px);
  transform: none;
}
.profile-page .profile-section .profile-reviews-section .profile-reviews-wrap.sales-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 32px;
}
.profile-page .profile-section .profile-reviews-section:has(.profile-reviews-wrap.profile-reviews-is-empty),
.profile-page .profile-section .profile-reviews-section:has(.profile-reviews-wrap.profile-reviews-is-loading) {
  transform: none;
}
.profile-page .profile-section .profile-reviews-section .profile-reviews-wrap.sales-section.profile-reviews-is-empty,
.profile-page .profile-section .profile-reviews-section .profile-reviews-wrap.sales-section.profile-reviews-is-loading {
  padding: 8px 20px !important;
  margin-bottom: 0;
}
.profile-page .profile-reviews-wrap.profile-reviews-is-empty.sales-section,
.profile-page .profile-reviews-wrap.profile-reviews-is-loading.sales-section {
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 0;
}
.profile-page .profile-reviews-wrap.profile-reviews-is-loading.profile-reviews-is-empty .profile-reviews-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 0;
}
.profile-page .profile-reviews-wrap.profile-reviews-is-loading.profile-reviews-is-empty .profile-reviews-empty-inline {
  display: block !important;
  grid-column: 2;
  justify-self: center;
  text-align: center;
  margin: 0;
}
body.profile-page > footer.footer {
  display: block !important;
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 0 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: var(--bg-primary);
  border-top: none;
  min-height: 0;
  height: auto;
}
body.profile-page > footer.footer .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.profile-page > footer.footer .footer-bottom {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0 !important;
  border-top: none;
  text-align: center;
}
body.profile-page > footer.footer .footer-bottom p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.profile-reviews-wrap:not(.profile-reviews-is-empty) #profileNoReviewsMessage,
.profile-reviews-wrap:not(.profile-reviews-is-empty) #lotNoReviewsMessage,
.profile-reviews-wrap.profile-reviews-is-loading #profileNoReviewsMessage,
.profile-reviews-wrap.profile-reviews-is-loading #lotNoReviewsMessage {
  display: none;
}
html:not([data-theme=dark]) .profile-reviews-empty-inline {
  color: #6b7280;
}
html:not([data-theme=dark]) .profile-reviews-empty {
  color: #6b7280;
}
html:not([data-theme=dark]) .profile-reviews-wrap {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 2px solid rgba(99, 102, 241, 0.28);
  border-right: 2px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
}
html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-reviews-wrap {
  background: var(--card-bg, #ffffff) !important;
  border: 1px solid var(--border-color) !important;
  border-left: 1px solid var(--border-color) !important;
  border-right: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: 12px !important;
  padding: 24px !important;
}
html[data-theme=dark] .lot-content .lot-reviews-section .profile-reviews-wrap {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg),
html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-review-card:not(.has-game-bg) {
  background: var(--card-bg, #ffffff) !important;
  border-color: var(--border-color, #e5e7eb) !important;
}
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-author,
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-price,
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-comment,
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-text,
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-rating-value {
  color: #000000 !important;
}
html:not([data-theme=dark]) .profile-review-card:not(.has-game-bg) .profile-review-meta {
  color: #111827 !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg {
  background: #181b24 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg::before {
  opacity: 0.28 !important;
  filter: saturate(1.15) contrast(1.05) !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg::after {
  background:
    linear-gradient(
      135deg,
      rgba(10, 12, 18, 0.82) 0%,
      rgba(10, 12, 18, 0.62) 42%,
      rgba(10, 12, 18, 0.78) 100%) !important;
}
html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-review-card.has-game-bg {
  background: #181b24 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-review-card.has-game-bg::before {
  opacity: 0.3 !important;
}
html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-review-card.has-game-bg::after {
  background:
    linear-gradient(
      135deg,
      rgba(10, 12, 18, 0.82) 0%,
      rgba(10, 12, 18, 0.65) 42%,
      rgba(10, 12, 18, 0.78) 100%) !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-author,
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-price,
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-comment,
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-text,
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-rating-value,
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-game {
  color: #ffffff !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-meta {
  color: rgba(255, 255, 255, 0.92) !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-price {
  color: rgba(255, 255, 255, 0.95) !important;
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
html:not([data-theme=dark]) .profile-review-card.has-game-bg .profile-review-stars {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
html:not([data-theme=dark]) .profile-reviews-wrap .section-title {
  color: #000000 !important;
}
html:not([data-theme=dark]) .profile-review-seller-reply {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-left: 3px solid var(--primary-color, #5c6ef8) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
html:not([data-theme=dark]) .profile-review-seller-reply-label {
  color: #000000 !important;
  font-weight: 700 !important;
}
html:not([data-theme=dark]) .profile-review-seller-reply-text,
html:not([data-theme=dark]) .profile-review-seller-reply-preview,
html:not([data-theme=dark]) .profile-review-seller-reply-full {
  color: #000000 !important;
  opacity: 1 !important;
}
html:not([data-theme=dark]) .profile-review-card.has-collapsible-reply:not(.is-reply-expanded) .profile-review-seller-reply.is-collapsible .profile-review-seller-reply-text {
  opacity: 1 !important;
}
html:not([data-theme=dark]) .profile-review-card.has-collapsible-reply .profile-review-seller-reply.is-collapsible::after {
  color: #000000 !important;
  font-weight: 600;
}
html:not([data-theme=dark]) .profile-review-reply-btn {
  color: #2563eb !important;
  font-weight: 600 !important;
}
html:not([data-theme=dark]) .order-rating-seller-reply-label {
  color: #000000 !important;
  font-weight: 700 !important;
}
html:not([data-theme=dark]) .order-rating-comment-display,
html:not([data-theme=dark]) #displayRatingComment,
html:not([data-theme=dark]) #displaySellerReply {
  color: #000000 !important;
}
html:not([data-theme=dark]) .order-participant-label {
  color: #000000 !important;
  font-weight: 600;
}
html:not([data-theme=dark]) .profile-reviews-empty.profile-reviews-empty-visible {
  color: #111827;
  font-weight: 500;
}
.sales-table-wrapper {
  overflow-x: hidden;
  margin-top: 24px;
}
.sales-table-wrapper > .no-lots-message {
  width: 100%;
  box-sizing: border-box;
}
.sales-table {
  width: 100%;
  border-collapse: collapse;
}
.sales-table thead {
  background: var(--bg-tertiary);
}
.sales-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  vertical-align: middle;
  line-height: 1.5;
  height: auto;
}
.sales-table th:nth-child(3),
.sales-table td:nth-child(3) {
  min-width: 100px;
  max-width: 100px;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.sales-table th:nth-child(3) {
  padding-left: 33px;
}
.sales-table th:nth-child(4),
.sales-table td:nth-child(4) {
  min-width: 80px;
  max-width: 80px;
  text-align: center;
  padding-left: 8px;
  padding-right: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.sales-table th:nth-child(5),
.sales-table td:nth-child(5) {
  padding-left: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.sales-table th:nth-child(5) {
  padding-left: 40px;
}
.sales-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.5;
  height: auto;
}
.sales-table td:last-child {
  white-space: nowrap;
}
.sales-table tbody tr:hover {
  background: var(--bg-tertiary);
}
.sales-table tbody tr:last-child td {
  border-bottom: none;
}
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.2;
}
.status-badge.moderation {
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.status-badge.inactive {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.status-badge.active {
  background: var(--success-color);
  color: white;
}
.categories-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.category-search {
  display: flex;
  max-width: 400px;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.category-search .search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
}
.category-search .search-input:focus {
  outline: none;
}
.category-search .search-btn {
  padding: 12px 16px;
  background: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.category-search .search-btn:hover {
  background: var(--primary-hover);
}
.categories-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}
.categories-table {
  width: 100%;
  border-collapse: collapse;
}
.categories-table thead {
  background: var(--bg-tertiary);
}
.categories-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}
.categories-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
}
.categories-table tbody tr:hover {
  background: var(--bg-tertiary);
}
.categories-table tbody tr:last-child td {
  border-bottom: none;
}
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}
.pagination-info {
  color: var(--text-secondary);
  font-size: 14px;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-ellipsis {
  padding: 8px 4px;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .help-hero {
    padding: 28px 0 32px;
  }
  .help-hero-content {
    gap: 12px;
  }
  .help-hero-content h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .help-hero-content p {
    font-size: 13px;
    line-height: 1.5;
  }
  .help-kicker {
    font-size: 11px;
  }
  .help-hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .pill-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
    font-size: 13px;
  }
  .rules-accordion-section,
  .faq-section {
    padding-top: 16px;
    --section-wide-width: 100%;
  }
  .rules-accordion-section > .container,
  .faq-section > .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .rules-accordion-section .section-accordion-btn,
  .faq-section .section-accordion-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
  .rules-accordion-section .rules-table,
  .rules-accordion-section .faq-table,
  .faq-section .faq-table,
  .section-accordion + .collapsible > .rules-table,
  .section-accordion + .collapsible > .faq-table,
  .section-accordion + .collapsible > .rules-note {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
  .rules-accordion-section .rules-table table,
  .rules-accordion-section .faq-table table,
  .faq-section .faq-table table {
    width: 100% !important;
    max-width: 100% !important;
  }
  .section-accordion {
    margin-bottom: 8px;
  }
  .section-accordion + .collapsible {
    margin-bottom: 24px;
  }
  .section-accordion-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .section-accordion-desc {
    font-size: 0.8125rem;
    line-height: 1.35;
    margin-top: 4px;
  }
  .section-accordion + .collapsible > .rules-table,
  .section-accordion + .collapsible > .faq-table {
    width: 100%;
    max-width: 100%;
  }
  .faq-table table,
  .rules-table table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
  }
  .faq-table th:first-child,
  .faq-table td:first-child {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .faq-table th,
  .faq-table td,
  .rules-table th,
  .rules-table td {
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.45;
  }
  .faq-table th,
  .rules-table th {
    font-size: 11px;
    font-weight: 600;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-stats {
    justify-content: space-between;
  }
  .categories-header {
    flex-direction: column;
    align-items: stretch;
  }
  .category-search {
    max-width: 100%;
  }
  .pagination-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination {
    justify-content: center;
  }
  .sales-table,
  .categories-table {
    font-size: 12px;
  }
  .sales-table th,
  .sales-table td,
  .categories-table th,
  .categories-table td {
    padding: 12px 8px;
  }
}
.sales-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.sales-header .section-title {
  margin: 0;
}
.sales-header-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.sales-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sales-bump-btn {
  width: 100%;
  justify-content: center;
}
@media (min-width: 769px) {
  .sales-header-controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sales-bump-btn {
    order: -1;
    width: auto;
    justify-content: center;
    white-space: nowrap;
  }
}
.profile-sold-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: default;
}
.profile-sold-btn:disabled {
  opacity: 1;
  cursor: default;
}
.profile-stats .stat-label--sold-link {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: default;
}
.profile-stats .stat-label--sold-link--active {
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.profile-stats .stat-label--sold-link--active:hover,
.profile-stats .stat-label--sold-link--active:focus-visible {
  color: var(--primary-color, #6366f1);
  border-bottom-color: currentColor;
}
.profile-stats .stat-label--sold-link:focus {
  outline: none;
}
.profile-stats .stat-label--sold-link--active:focus-visible {
  outline: 2px solid var(--primary-color, #7c3aed);
  outline-offset: 3px;
  border-radius: 2px;
}
.profile-sold-btn.profile-sold-btn--clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.profile-sold-btn.profile-sold-btn--clickable:hover {
  color: var(--primary-color, #6366f1);
  text-decoration-color: currentColor;
}
.stat-item--sold-clickable {
  cursor: pointer;
}
.bump-lots-modal-content,
.seller-progress-modal-content {
  max-width: 520px;
  width: calc(100% - 32px);
}
.bump-lots-lead {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.45;
}
.bump-lots-meta {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.bump-lots-warn {
  color: var(--danger-color, #ef4444);
  margin-top: 6px;
}
.bump-lots-muted,
.bump-lots-empty {
  color: var(--text-secondary);
  font-size: 13px;
}
.bump-lots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}
.bump-game-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  user-select: none;
}
.bump-game-row:hover {
  border-color: rgba(99, 102, 241, 0.55);
}
.bump-game-row.is-checked {
  border-color: var(--primary-color, #6366f1);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}
.bump-game-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.bump-game-check-ui {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid var(--border-color);
  background: var(--bg-primary, #1a1a1a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.bump-game-check-ui::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.bump-game-row:hover .bump-game-check-ui {
  border-color: var(--primary-color, #6366f1);
}
.bump-game-row.is-checked .bump-game-check-ui {
  border-color: var(--primary-color, #6366f1);
  background: var(--primary-color, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}
.bump-game-row.is-checked .bump-game-check-ui::after {
  border-color: #fff;
  opacity: 1;
}
.bump-game-row:focus-within {
  outline: none;
}
.bump-game-row:focus-within .bump-game-check-ui {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}
.bump-game-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bump-game-info strong {
  color: var(--text-primary);
  font-size: 14px;
}
.bump-game-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.bump-lots-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seller-progress-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seller-progress-level {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.seller-progress-level strong {
  font-size: 18px;
}
.seller-progress-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.seller-progress-panel {
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  min-width: 0;
}
.seller-progress-panel-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0.01em;
}
.seller-progress-panel-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 10px;
  word-break: break-word;
}
.seller-progress-panel-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.seller-progress-stat {
  font-size: 14px;
  color: var(--text-secondary);
}
.seller-progress-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.seller-progress-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-tertiary, rgba(127, 127, 127, 0.25));
  overflow: hidden;
}
.seller-progress-bar {
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--primary-color, #6366f1),
      var(--success-color, #22c55e));
  transition: width 0.25s ease;
}
.seller-progress-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.3;
}
.seller-progress-cooldown {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
  margin-top: 2px;
}
.seller-progress-muted {
  color: var(--text-secondary);
  font-size: 12px;
}
.seller-progress-help-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--primary-color, #6366f1);
  text-decoration: none;
}
.seller-progress-help-link:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .seller-progress-panels {
    grid-template-columns: 1fr;
  }
  .seller-progress-panel-value {
    font-size: 24px;
  }
}
.volume-discount-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.volume-discount-row-num {
  min-width: 22px;
  color: var(--text-secondary);
  font-size: 14px;
}
.volume-discount-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.volume-discount-label input {
  width: 100px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
}
.volume-discount-label input.vol-disc-pct {
  width: 72px;
}
.checkout-invoice-amount {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
  max-width: 100%;
}
.checkout-invoice-amount .price-old-strike {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95em;
}
.checkout-invoice-amount .price-new-inline {
  color: var(--discount-color);
  font-weight: 700;
}
.profile-search-wrapper {
  display: flex;
  flex: 1;
  max-width: 400px;
  margin-left: auto;
}
.profile-search-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}
.no-lots-message {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}
.no-lots-message p {
  font-size: 16px;
}
@media (min-width: 769px) {
  .profile-section .sales-table-wrapper > .no-lots-message p {
    white-space: nowrap;
  }
}
.selected-game-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 8px;
}
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin: 0 4px;
  transition: all 0.2s;
}
.btn-edit {
  background: var(--primary-color);
  color: white;
}
.btn-edit:hover {
  background: var(--primary-hover);
}
.btn-delete {
  background: var(--danger-color);
  color: white;
}
.btn-delete:hover {
  background: #dc2626;
}
.lot-modal-content {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.lot-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.lot-modal-summary {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}
.lot-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lot-modal-close-btn {
  min-width: 140px;
}
.lot-modal-body {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.language-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid color-mix(in srgb, var(--text-primary) 28%, transparent);
}
.lang-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.lang-tab:hover {
  color: var(--primary-color);
}
.lang-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.lot-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lot-form .form-group {
  position: relative;
}
.search-results {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  top: calc(100% + 2px);
  border-top: none;
}
#gameSearch {
  border: 1px solid var(--border-color);
}
#gameSearch:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.1);
}
.search-results::before {
  display: none;
}
.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-result-item:hover {
  background: var(--bg-tertiary);
}
.price-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
}
.price-info span {
  display: flex;
  justify-content: space-between;
}
.price-info strong {
  color: var(--primary-color);
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.category-section {
  padding: 0 0 60px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
  overflow: visible;
}
@media (max-width: 768px) {
  .category-section {
    padding-bottom: 16px;
  }
}
.category-section .container {
  position: relative;
  z-index: 1;
  overflow: visible;
}
.category-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.lot-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.lot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.lot-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}
#orderLotTitle,
#lotTitle,
#checkoutLotTitle,
#paymentLotTitle,
.lot-title-wrap,
.product-title-wrap,
.lot-title,
.category-lot-title,
.game-lot-title,
.purchase-title,
.sale-title {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}
.lot-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}
.lot-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
}
.lot-info {
  margin-bottom: 20px;
}
.lot-description {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.lot-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.category-section #lotsContainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 0;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .category-section #lotsContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .category-section #lotsContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .category-section #lotsContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
.lots-loading-center {
  width: 100% !important;
  flex: 0 0 100% !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 220px !important;
  padding: 60px 0 !important;
  color: var(--text-secondary, #a1a1aa) !important;
  font-size: 15px !important;
  gap: 12px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.lots-loading-spinner {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  border: 2.5px solid rgba(255, 255, 255, 0.15) !important;
  border-top-color: var(--accent-primary, #6366f1) !important;
  border-radius: 50% !important;
  animation: sellpayLoadSpin 0.75s linear infinite !important;
}
.lots-loading-text {
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .category-section .lots-toolbar-wrap {
    margin-top: 0;
    margin-bottom: 8px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow: visible;
  }
  .category-section #lotsContainer {
    margin-top: 0;
    padding-top: 0;
    clear: both;
  }
  .category-section > .container {
    overflow-x: visible;
  }
  .lots-toolbar-wrap {
    background: transparent;
    padding-bottom: 4px;
    box-sizing: border-box;
  }
  .lots-toolbar {
    border-radius: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .lots-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }
  .lots-quick-filters.lots-quick-filters--admin-three {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }
  .lots-quick-filters .lots-chip {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 6px 11px;
    font-size: 12px;
  }
}
.lots-toolbar-wrap {
  position: sticky;
  top: 64px;
  z-index: 10002;
  margin-bottom: 12px;
}
.lots-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin: 0 0 12px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  border-radius: 4px;
  min-height: 48px;
  flex-shrink: 0;
}
html[data-theme=dark] .lots-toolbar {
  background: var(--bg-primary);
}
.lots-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.lots-toolbar-my-sales {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--primary-color);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lots-toolbar-my-sales:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-color);
}
.lots-toolbar-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.lots-toolbar-center {
  flex: 1.25;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
@media (max-width: 768px) {
  .category-section .lots-toolbar-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .lots-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    margin-bottom: 6px;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-radius: 0 !important;
  }
  .lots-toolbar-my-sales {
    width: 100% !important;
    max-width: 100%;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .lots-toolbar-main {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas: "search search" "count actions" !important;
    align-items: center;
    justify-content: stretch !important;
    column-gap: 8px;
    row-gap: 4px;
    width: 100% !important;
    flex: none !important;
    min-width: 0;
    gap: 4px 8px !important;
  }
  .lots-toolbar-center {
    grid-area: search !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    display: flex !important;
  }
  .lots-toolbar-filters {
    display: none !important;
  }
  .lots-toolbar-count {
    grid-area: count !important;
    font-size: 13px;
    white-space: nowrap;
  }
  .lots-toolbar-right {
    grid-area: actions !important;
    justify-self: end;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 2px;
    margin-left: 0 !important;
    min-width: 0;
    flex-shrink: 0;
  }
  .lots-toolbar-right .sort-menu-container {
    order: 1;
  }
  .lots-toolbar-right #openFilterSheetBtn {
    order: 2;
  }
  .lots-toolbar-search-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 7px 12px;
    font-size: 13px;
  }
  .lots-toolbar-btn {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .lots-toolbar-icon {
    font-size: 13px;
  }
}
.lots-toolbar-search-input {
  width: 100%;
  max-width: min(100%, 720px);
  min-width: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
html[data-theme=dark] .lots-toolbar-search-input {
  background: rgba(255, 255, 255, 0.06);
}
.lots-toolbar-search-input:hover {
  background: rgba(128, 128, 128, 0.14);
}
html[data-theme=dark] .lots-toolbar-search-input:hover {
  background: rgba(255, 255, 255, 0.09);
}
.lots-toolbar-search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.55;
}
.lots-toolbar-search-input:focus {
  outline: none;
  background: rgba(128, 128, 128, 0.12);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12), 0 2px 12px rgba(0, 0, 0, 0.06);
}
html[data-theme=dark] .lots-toolbar-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 2px 16px rgba(0, 0, 0, 0.25);
}
.lots-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .filter-select-btn,
  .filter-select-menu {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .lots-toolbar {
    padding: 8px 16px 8px 22px;
    align-items: center;
    min-height: 52px;
  }
  .lots-toolbar-my-sales {
    margin-left: 4px;
    height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .lots-toolbar-count {
    height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .lots-toolbar-main {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .lots-toolbar-center {
    flex: 1 1 320px;
    min-width: 200px;
    max-width: none;
    justify-content: flex-start;
    padding: 0;
    align-self: center;
    height: 36px;
  }
  .lots-toolbar-search-input {
    max-width: 100%;
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .lots-toolbar-filters {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
  }
  .lots-toolbar-filters .lots-filter-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
  }
  .lots-toolbar-filters #filterAttributeGroups {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .lots-toolbar-filters .lot-attr-filter-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .lots-toolbar-filters .lot-attr-filter-group--deal .filter-select-btn {
    height: 36px;
  }
  .lots-toolbar-filters .sheet-group {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
    height: 36px;
  }
  .lots-toolbar-filters #filterCategoryGroup,
  .lots-toolbar-filters #filterEditionGroup,
  .lots-toolbar-filters #filterConsoleBrandGroup,
  .lots-toolbar-filters .lot-attr-filter-group {
    flex: 0 1 auto;
    height: 36px;
  }
  .lots-toolbar-filters .sheet-group .sheet-label,
  .lots-toolbar-filters #filterCategoryGroup > .sheet-label,
  .lots-toolbar-filters #filterEditionGroup > .sheet-label,
  .lots-toolbar-filters #filterConsoleBrandGroup > .sheet-label,
  .lots-toolbar-filters #filterAttributeGroups .sheet-label,
  .lots-toolbar-filters .lot-attr-filter-group > .sheet-label {
    display: none;
  }
  .lots-toolbar-filters .sheet-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
  }
  .lots-toolbar-filters .sheet-input {
    width: 72px;
    flex: 0 0 72px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .lots-toolbar-filters .sheet-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
  .lots-toolbar-filters .filter-select-wrap {
    position: relative;
    width: var(--filter-fit, max-content);
    min-width: 68px;
    max-width: min(188px, 100%);
    flex: 0 1 auto;
    height: 36px;
    display: flex;
    align-items: center;
  }
  .lots-toolbar-filters .filter-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 26px 0 10px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition:
      border-color 0.15s ease,
      background-color 0.15s ease,
      box-shadow 0.15s ease;
  }
  .lots-toolbar-filters .filter-select-btn:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background-color: rgba(255, 255, 255, 0.07);
  }
  .lots-toolbar-filters .filter-select-btn.active {
    border-color: rgba(139, 92, 246, 0.55);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18);
  }
  .lots-toolbar-filters .filter-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 280px;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    padding: 6px;
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity 0.12s ease,
      visibility 0.12s ease,
      transform 0.12s ease;
  }
  .lots-toolbar-filters .filter-select-wrap.open .filter-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .lots-toolbar-filters .filter-select-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: none;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
  }
  .lots-toolbar-filters .filter-select-item:hover {
    background: var(--bg-secondary);
  }
  .lots-toolbar-filters .filter-select-item.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary-color);
    font-weight: 600;
  }
  html[data-theme=light] .lots-toolbar-filters .filter-select-btn {
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6ef8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
  }
  html[data-theme=light] .lots-toolbar-filters .filter-select-btn:hover,
  html[data-theme=light] .lots-toolbar-filters .filter-select-btn.active {
    background-color: #fff;
  }
  html[data-theme=light] .lots-toolbar-filters .filter-select-menu {
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
  }
  .lots-toolbar-filters .filter-select-menu::-webkit-scrollbar {
    width: 8px;
  }
  .lots-toolbar-filters .filter-select-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }
  .lots-toolbar-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    min-width: 0;
    margin-left: auto;
    height: 36px;
  }
  .lots-toolbar-right #openFilterSheetBtn {
    display: none;
  }
  .lots-toolbar-right .sort-menu-btn,
  .lots-toolbar-right .sort-menu-btn:hover,
  .lots-toolbar-right .sort-menu-btn:active,
  .lots-toolbar-right .sort-menu-btn.active,
  html[data-theme=light] .lots-toolbar-right .sort-menu-btn {
    width: 28px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }
  .lots-toolbar-right .sort-menu-btn .lots-toolbar-icon {
    font-size: 17px;
    opacity: 0.72;
    line-height: 1;
    color: var(--text-secondary);
  }
  .lots-toolbar-right .sort-menu-btn:hover .lots-toolbar-icon {
    opacity: 1;
    color: var(--text-primary);
  }
  .lots-toolbar-right .sort-menu-btn.is-sorted .lots-toolbar-icon,
  .lots-toolbar-right .sort-menu-btn.active .lots-toolbar-icon {
    opacity: 1;
    color: var(--primary-color, #8b5cf6);
  }
}
.sort-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-menu-btn.active {
  background: transparent;
  color: var(--primary-color, #8b5cf6);
}
.sort-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.12s ease-out,
    visibility 0.12s ease-out,
    transform 0.12s ease-out;
  z-index: 10003;
  padding: 6px 0;
}
.sort-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sort-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.sort-menu-item:hover {
  background: var(--bg-secondary);
}
.sort-menu-item.active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-color);
  font-weight: 500;
}
.lots-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lots-toolbar-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.lots-toolbar-btn:active {
  background: var(--border-color);
}
.lots-toolbar-icon {
  opacity: 0.85;
  font-size: 14px;
  line-height: 1;
}
.lots-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 14px;
  padding: 0 16px;
  align-items: center;
  background: transparent;
}
.lots-quick-filters.lots-quick-filters--admin-three {
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}
.lots-quick-filters.lots-quick-filters--admin-three .lots-chip {
  flex-shrink: 0;
}
.lots-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.lots-chip:hover {
  border-color: var(--primary-color);
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary-color);
}
.lots-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
html[data-theme=dark] .lots-chip.active {
  color: #fff;
}
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  backdrop-filter: blur(2px);
}
.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000001;
  background: var(--bg-primary);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(110%);
  transition: transform 0.2s ease-out;
  max-height: 80vh;
  overflow: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-sheet.open {
  transform: translateY(0);
}
.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.bottom-sheet-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sheet-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.bottom-sheet-body {
  padding: 8px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s ease;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
}
.sheet-radio:hover {
  background: var(--bg-secondary);
}
.sheet-radio input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}
.sheet-radio input:checked + span {
  font-weight: 500;
}
.sheet-group {
  margin-top: 12px;
}
.sheet-group:first-child {
  margin-top: 4px;
}
.sheet-group .sheet-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sheet-sep {
  color: var(--text-secondary);
  font-size: 14px;
  flex-shrink: 0;
}
.sheet-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease;
}
.sheet-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.sheet-input::placeholder {
  color: var(--text-secondary);
}
.sheet-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    background-position 0.2s ease,
    box-shadow 0.2s ease;
}
.sheet-select:hover {
  background-color: var(--bg-secondary);
  border-color: rgba(124, 58, 237, 0.45);
  background-position: right 10px calc(50% + 2px);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.15);
}
.sheet-select:focus {
  outline: none;
  border-color: var(--primary-color);
}
.sheet-select:focus:hover {
  background-position: right 10px calc(50% + 2px);
}
html[data-theme=dark] .sheet-select,
html[data-theme=dark] .sheet-select:focus,
html[data-theme=dark] .sheet-select:hover {
  background-color: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme=dark] .sheet-select:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background-position: right 10px calc(50% + 2px);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}
.sheet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 4px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
}
.sheet-toggle:hover {
  background: var(--bg-secondary);
}
.sheet-toggle input[type=checkbox] {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  appearance: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sheet-toggle input[type=checkbox]::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  top: 50%;
  left: 2px;
  margin-top: -9px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.sheet-toggle input[type=checkbox]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.sheet-toggle input[type=checkbox]:checked::before {
  transform: translateX(22px);
  background: #fff;
}
.sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.sheet-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-weight: 500;
  border-radius: 8px;
}
.sheet-actions .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.sheet-actions .btn-outline {
  background: transparent;
}
.sheet-actions .btn-outline:hover {
  background: var(--bg-secondary);
}
@media (min-width: 769px) {
  .lots-toolbar-wrap {
    position: static;
    top: auto;
    overflow: visible;
  }
  .category-section .container {
    overflow: visible;
  }
  .lots-toolbar,
  .lots-toolbar-main,
  .lots-toolbar-center,
  .lots-toolbar-filters,
  .lots-toolbar-filters .lots-filter-controls,
  .lots-toolbar-right,
  .sort-menu-container,
  .lots-toolbar-filters .filter-select-wrap {
    overflow: visible;
  }
  .lots-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 22px;
    min-height: 52px;
    margin-bottom: 8px;
    box-sizing: border-box;
  }
  .lots-toolbar-my-sales,
  .lots-toolbar-count,
  .lots-toolbar-center,
  .lots-toolbar-filters,
  .lots-toolbar-right,
  .sort-menu-container {
    height: 36px;
    min-height: 36px;
    margin: 0;
    display: flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
  }
  .lots-toolbar-filters .lots-filter-controls,
  .lots-toolbar-filters .sheet-group,
  .lots-toolbar-filters .sheet-group:first-child,
  .lots-toolbar-filters .sheet-row,
  .lots-toolbar-filters .filter-select-wrap,
  .lots-toolbar-filters #filterCategoryGroup,
  .lots-toolbar-filters #filterConsoleBrandGroup,
  .lots-toolbar-filters .lot-attr-filter-group,
  .lots-toolbar-filters #filterAttributeGroups {
    margin: 0 !important;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
  }
  .lots-toolbar-search-input,
  .lots-toolbar-filters .sheet-input,
  .lots-toolbar-filters .filter-select-btn {
    height: 36px;
    min-height: 36px;
    margin: 0;
    box-sizing: border-box;
  }
  .lots-toolbar-search-input {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 36px;
  }
  .lots-toolbar-right .sort-menu-btn,
  .lots-toolbar-right .sort-menu-btn:hover,
  .lots-toolbar-right .sort-menu-btn:active,
  .lots-toolbar-right .sort-menu-btn.active {
    width: 28px;
    height: 36px;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .bottom-sheet {
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    width: 90%;
    max-width: 400px;
    margin: 0;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    transform: translate(-50%, -50%);
  }
  .bottom-sheet.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }
}
.category-lot-card {
  flex: none;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
}
.category-lot-link {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
}
.category-lot-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.category-lot-card--hot .category-lot-link {
  border-color: #d4a017;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.35);
}
.category-lot-card--hot .category-lot-link:hover {
  border-color: #c4930f;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.55), var(--shadow-md);
}
.category-lot-hot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3b2a05;
  background:
    linear-gradient(
      135deg,
      #f5d76e 0%,
      #d4a017 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.top-lots-section {
  padding: 28px 0 8px;
}
.top-lots-section[hidden] {
  display: none !important;
}
.top-lots-section .section-header {
  margin-bottom: 12px;
  border-bottom: none !important;
  padding-bottom: 0;
}
.leaders-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.leaders-live-pill {
  display: none !important;
}
.leaders-live {
  display: block !important;
  width: 100%;
  margin-top: 4px;
  grid-template-columns: none !important;
}
.top-lots-section--live #topLotsGrid.leaders-live {
  display: block !important;
  width: 100%;
  grid-template-columns: none !important;
  gap: 0 !important;
}
.leaders-live__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1.1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
}
.leaders-live__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  align-self: stretch;
  height: auto;
}
.leaders-live__row {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex: 0 0 auto;
}
.leaders-live__row:hover,
.leaders-live__row.is-active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.3);
}
.leaders-live__media {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background-color: #141721;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.leaders-live__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.leaders-live__row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.leaders-live__seller {
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaders-live__seller-presence {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 4px 1px 0;
  border-radius: 50%;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.28);
}
.leaders-live__seller-presence.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.14);
}
.leaders-live__seller-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.leaders-live__seller-link:hover,
.leaders-live__seller-link:focus,
.leaders-live__seller-link:active,
.leaders-live__seller-link:visited {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}
.leaders-live__feature-seller .leaders-live__seller-link,
.leaders-live__feature-seller .leaders-live__seller-link:hover,
.leaders-live__feature-seller .leaders-live__seller-link:focus {
  color: #fff;
  text-decoration: none;
}
.leaders-live__seller-rating {
  font-weight: 600;
  color: rgba(251, 191, 36, 0.92);
}
.leaders-live__feature {
  cursor: pointer;
}
.leaders-live__feature .leaders-live__seller-link {
  position: relative;
  z-index: 2;
}
.leaders-live__name {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.leaders-live__row-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #9aa7ff;
}
.leaders-live__preview {
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  display: flex;
  align-self: stretch;
}
.leaders-live__feature {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.leaders-live__feature-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 42%;
  min-height: 140px;
  background-color: #0a0a0a;
  overflow: hidden;
}
.sellpay-side-blur,
.leaders-live__feature-blur,
.lot-main-image-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  transform: scaleX(1.12);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.leaders-live__feature-img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.leaders-live__feature-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.leaders-live__feature-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}
.leaders-live__photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.leaders-live__photo-prev {
  left: 8px;
}
.leaders-live__photo-next {
  right: 8px;
}
.leaders-live__photo-nav:hover {
  background: rgba(0, 0, 0, 0.78);
}
.leaders-live__photo-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.leaders-live__feature-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
  min-height: 0;
}
.leaders-live__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #ef4444 0%,
      #b91c1c 100%);
  pointer-events: none;
}
.leaders-live__pager,
.leaders-live__pager-btn,
.leaders-live__pager-label,
.leaders-live__feature-shots,
.leaders-live__feature-shot,
.leaders-live__feature-foot {
  display: none !important;
}
.leaders-live__feature-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.leaders-live__feature-cat {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}
.leaders-live__feature-stock {
  font-size: 0.88rem;
  font-weight: 700;
  color: #86efac;
}
.leaders-live__feature-seller {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}
.leaders-live__feature-seller strong {
  color: #fff;
  font-weight: 650;
}
.leaders-live__feature-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 0;
  max-height: calc(1.45em * 7);
  flex: 1 1 auto;
}
.leaders-live__feature-desc br {
  content: "";
}
.leaders-live__feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}
.leaders-live__feature-price {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.leaders-live__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
}
.leaders-live__rating--empty {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.leaders-live__stars {
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.leaders-live__stars-filled {
  color: #fbbf24;
}
.leaders-live__stars-empty {
  color: rgba(156, 163, 175, 0.7);
}
.leaders-live__rating-value {
  color: rgba(255, 255, 255, 0.92);
}
.leaders-live__rating-count {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.leaders-live__preview-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  color: var(--text-secondary);
}
.top-lots-section .new-games-more-btn {
  margin-top: 14px;
}
@media (max-width: 900px) {
  .leaders-live__panel {
    grid-template-columns: 1fr;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    gap: 10px;
  }
  .leaders-live__preview {
    display: none !important;
  }
  .leaders-live__list {
    max-height: none;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .leaders-live__row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: none;
  }
  .leaders-live__row:hover,
  .leaders-live__row:focus,
  .leaders-live__row:focus-visible,
  .leaders-live__row:active,
  .leaders-live__row.is-active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: none;
  }
  .leaders-live__media {
    width: 96px;
    border-radius: 8px;
  }
  .leaders-live__name {
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .leaders-live__row-price {
    font-size: 0.9rem;
  }
  .leaders-live__feature-title {
    font-size: 1.05rem;
  }
  .leaders-live__feature-desc {
    -webkit-line-clamp: 5;
    min-height: calc(1.5em * 5);
    max-height: calc(1.5em * 5);
  }
}
.leader-lot-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  position: relative;
  z-index: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.leader-lot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.leader-lot-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
}
.leader-lot-link:hover {
  color: inherit;
}
.leader-lot-game {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 72px;
  padding: 12px 12px 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background-color: var(--bg-tertiary);
  background-image: var(--game-bg, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  pointer-events: auto;
  flex: 0 0 auto;
}
.leader-lot-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}
.leader-lot-game-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  text-align: left;
}
.leader-lot-game-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-lot-game-cat {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-lot-image {
  position: relative;
  width: calc(100% - 20px);
  margin: 0 10px;
  padding-top: 62%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.leader-lot-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-lot-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.leader-lot-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.leader-lot-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}
.leader-lot-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.leader-lot-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}
.leader-lot-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  letter-spacing: 0;
}
.leader-lot-star {
  display: inline-flex;
  color: rgba(148, 163, 184, 0.45);
}
.leader-lot-star.is-on {
  color: #f5c542;
}
.leader-lot-star svg {
  display: block;
}
.leader-lot-stars-filled {
  color: #f5c542;
}
.leader-lot-stars-empty {
  color: rgba(148, 163, 184, 0.45);
}
.leader-lot-reviews {
  color: var(--text-secondary);
}
html[data-theme=dark] .leader-lot-card {
  background: rgba(18, 18, 18, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme=dark] .leader-lot-price {
  color: #9aa7ff;
}
@media (max-width: 1100px) {
  .top-lots-section .top-lots-grid,
  .leaders-lots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .top-lots-section .top-lots-grid,
  .leaders-lots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .top-lots-section {
    padding: 16px 0 6px;
  }
  .top-lots-section .section-header {
    margin-bottom: 8px;
  }
  .top-lots-section .section-title {
    font-size: 20px;
  }
  .top-lots-section .top-lots-grid,
  .leaders-lots-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
    flex-wrap: unset;
    padding-bottom: 0;
  }
  .top-lots-section .leader-lot-card,
  .leaders-lots-grid .leader-lot-card {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 10px;
  }
  .leader-lot-game {
    min-height: 54px;
    padding: 8px 8px 7px;
  }
  .leader-lot-game-name {
    font-size: 13px;
  }
  .leader-lot-game-cat {
    margin-top: 2px;
    font-size: 11px;
  }
  .leader-lot-image {
    width: calc(100% - 12px);
    margin: 0 6px;
    padding-top: 50%;
    border-radius: 8px;
  }
  .leader-lot-image-placeholder {
    font-size: 11px;
  }
  .leader-lot-body {
    padding: 6px 8px 8px;
    gap: 2px;
  }
  .leader-lot-price {
    font-size: 16px;
  }
  .leader-lot-title {
    font-size: 12px;
    line-height: 1.25;
  }
  .leader-lot-rating {
    margin-top: 0;
    font-size: 11px;
    gap: 3px;
  }
  .top-lots-section .new-games-more-btn {
    margin-top: 10px;
  }
}
html[data-theme=dark] .category-lot-card--hot .category-lot-link {
  border-color: #e6c35c;
  box-shadow: 0 0 0 1px rgba(230, 195, 92, 0.4);
}
html[data-theme=dark] .category-lot-hot-badge {
  color: #1a1408;
}
.category-lot-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding-top: 0;
  background: #141724;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.category-lot-image-wrapper > .sellpay-side-blur {
  display: none;
}
.category-lot-image {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  background: transparent;
}
.category-lot-image-wrapper:has(.category-lot-image-placeholder) {
  aspect-ratio: 16 / 9;
}
.category-lot-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: inherit;
}
.category-lot-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  height: auto;
}
.category-lot-price-row {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.05;
}
.category-lot-price {
  font-size: inherit;
  line-height: 1.1;
}
.category-lot-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  height: 35px;
  min-height: 35px;
  max-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-lot-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.category-lot-attr,
.lot-attr-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lot-attr-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.category-lot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 6px;
  min-width: 0;
}
html:not([data-theme=dark]) .category-lot-meta,
html:not([data-theme=dark]) .lot-rating-count {
  color: #111827;
}
.category-lot-qty {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: visible;
  max-width: none;
  text-overflow: clip;
  font-size: 11px;
  line-height: 1.2;
}
.category-lot-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.lot-rating-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
.lot-rating-stars .lot-stars-filled {
  color: #fbbf24;
}
.lot-rating-stars .lot-stars-empty {
  color: #9ca3af;
}
.lot-rating-count {
  color: var(--text-secondary);
  font-size: 11px;
}
.category-lot-footer {
  margin-top: auto;
}
.category-lot-buy-btn {
  width: 100%;
  text-align: center;
  padding: 8px 8px;
  font-size: 12px;
}
@media (max-width: 1200px) {
  .category-lot-card {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .category-lot-card {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .category-lot-card {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}
.no-lots {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  min-height: 200px;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 18px;
}
@media (max-width: 768px) {
  .sales-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .sales-header .section-title {
    margin-bottom: 0;
    font-size: 1.1rem;
  }
  .sales-header-controls {
    width: 100%;
    gap: 10px;
  }
  .sales-header-actions {
    width: 100%;
  }
  .sales-header-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .sales-bump-btn {
    width: 100%;
    justify-content: center;
  }
  .profile-search-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 0;
  }
  .profile-search-wrapper input {
    width: 100%;
  }
  .profile-section {
    padding: 14px 0 20px;
    background: var(--bg-secondary);
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }
  body.profile-page > .profile-section {
    padding-left: 0;
    padding-right: 0;
  }
  body.profile-page .profile-section > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  body.profile-page .profile-section .profile-header {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  body.profile-page .profile-section .sales-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  body.profile-page .profile-section .profile-reviews-section {
    margin-top: 12px;
    padding: 0;
    width: 100%;
  }
  body.profile-page .profile-section .profile-reviews-section .profile-reviews-wrap.sales-section {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
  }
  .profile-section .profile-header {
    padding: 16px 14px 42px;
    margin-bottom: 12px;
    gap: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  }
  .profile-section .profile-header .profile-avatar .avatar-placeholder {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    font-size: 24px;
    flex-shrink: 0;
  }
  .profile-section .profile-header > .profile-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    align-self: flex-start;
  }
  html[data-theme=dark] .profile-section .profile-header {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
  .profile-section .sales-section {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 12px;
    padding: 10px 10px 12px !important;
    border-radius: 12px;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: visible;
  }
  .profile-section .profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .profile-section .profile-name-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 8px;
    gap: 8px !important;
  }
  .profile-section .profile-name-row .profile-username,
  .profile-section .profile-username {
    flex: 0 1 auto !important;
    width: fit-content !important;
    max-width: calc(100% - 7rem) !important;
    min-width: 0 !important;
    display: inline-block !important;
    font-size: clamp(1.15rem, 4.6vw, 1.4rem);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15;
    text-align: left !important;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: center !important;
  }
  .profile-section .profile-name-row .profile-level-badge,
  .profile-section .profile-level-badge {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    font-size: 10px;
    padding: 3px 9px;
    margin: 0 !important;
    align-self: center !important;
  }
  .profile-section .profile-description {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    font-size: 13px;
    font-family:
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    white-space: pre-line;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: manual;
    -webkit-hyphens: manual;
    text-align: left;
    line-height: 1.4;
  }
  .profile-section .profile-header > .profile-actions {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 6;
    flex-basis: auto !important;
    width: auto !important;
    margin: 0 !important;
    align-self: auto !important;
    text-align: right;
    justify-content: flex-end;
  }
  .profile-section .profile-achievements {
    min-width: 0;
    justify-content: flex-start;
    width: 100%;
  }
  .profile-section .profile-header-content {
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .profile-section .profile-stats {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: visible;
    align-items: center;
    justify-content: flex-start;
  }
  .profile-section .profile-stats::-webkit-scrollbar {
    display: none;
  }
  .profile-section .profile-stats .stat-item {
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: none !important;
    border: none !important;
    border-radius: 0;
    display: inline-flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    text-align: left;
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto !important;
  }
  .profile-section .profile-stats .stat-item:nth-child(1),
  .profile-section .profile-stats .stat-item:nth-child(2),
  .profile-section .profile-stats .stat-item:nth-child(3),
  .profile-section .profile-stats .stat-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    justify-content: flex-start;
    padding: 0;
  }
  .profile-section .profile-stats .stat-item button {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    line-height: inherit;
    vertical-align: baseline;
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
  }
  .profile-section .profile-stats .stat-label,
  .profile-section .profile-stats .stat-label--sold-link,
  .profile-section .profile-stats .stat-label--rating-link {
    font-size: 10px !important;
    display: inline;
    margin: 0;
    padding: 0;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.2;
    flex: 0 0 auto;
  }
  .profile-section .profile-stats .stat-value,
  .profile-section .profile-stats .profile-sold-btn {
    font-size: 11px !important;
    font-weight: 600 !important;
    opacity: 1;
    visibility: visible;
    -webkit-text-fill-color: currentColor;
    line-height: 1.2;
    flex: 0 0 auto;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
    font-variant-numeric: normal;
    letter-spacing: 0;
  }
  .profile-section .profile-stats .stat-item:nth-child(2) .stat-label {
    margin: 0;
  }
  .profile-section .profile-stats .stat-item:nth-child(2) .profile-rating-stars {
    font-size: 11px;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
  }
  .profile-section .profile-stats .stat-item:nth-child(2) .stat-value {
    margin: 0;
    padding: 0;
  }
  .profile-section .profile-header.default-background .profile-stats .stat-label {
    color: var(--text-secondary);
  }
  .profile-section .profile-header.default-background .profile-stats .stat-value {
    color: var(--text-primary) !important;
  }
  .profile-section .profile-header.default-background .profile-stats .stat-value.online {
    color: var(--success-color, #22c55e) !important;
    -webkit-text-fill-color: var(--success-color, #22c55e);
  }
  .profile-section .profile-header.default-background .profile-stats .stat-value.offline {
    color: var(--text-secondary);
  }
  .profile-section .profile-header.gradient1-background .profile-stats .stat-label,
  .profile-section .profile-header.gradient2-background .profile-stats .stat-label,
  .profile-section .profile-header.gradient3-background .profile-stats .stat-label,
  .profile-section .profile-header.custom-background .profile-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
  }
  .profile-section .profile-header.gradient1-background .profile-stats .stat-value,
  .profile-section .profile-header.gradient2-background .profile-stats .stat-value,
  .profile-section .profile-header.gradient3-background .profile-stats .stat-value,
  .profile-section .profile-header.custom-background .profile-stats .stat-value {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
  }
  .profile-section .profile-header.gradient1-background .profile-stats .stat-value.online,
  .profile-section .profile-header.gradient2-background .profile-stats .stat-value.online,
  .profile-section .profile-header.gradient3-background .profile-stats .stat-value.online,
  .profile-section .profile-header.custom-background .profile-stats .stat-value.online {
    color: var(--success-color, #22c55e) !important;
    -webkit-text-fill-color: var(--success-color, #22c55e);
  }
  .profile-section .profile-header.gradient1-background .profile-stats .stat-value.offline,
  .profile-section .profile-header.gradient2-background .profile-stats .stat-value.offline,
  .profile-section .profile-header.gradient3-background .profile-stats .stat-value.offline,
  .profile-section .profile-header.custom-background .profile-stats .stat-value.offline {
    color: rgba(255, 255, 255, 0.75);
  }
  .profile-section .profile-header.gradient1-background .profile-meta,
  .profile-section .profile-header.gradient2-background .profile-meta,
  .profile-section .profile-header.gradient3-background .profile-meta,
  .profile-section .profile-header.custom-background .profile-meta {
    color: rgba(255, 255, 255, 0.82);
    border-top-color: rgba(255, 255, 255, 0.15);
  }
  .profile-section .profile-header.gradient1-background .profile-meta-separator,
  .profile-section .profile-header.gradient2-background .profile-meta-separator,
  .profile-section .profile-header.gradient3-background .profile-meta-separator,
  .profile-section .profile-header.custom-background .profile-meta-separator {
    color: rgba(255, 255, 255, 0.45);
  }
  .profile-section .sales-table-wrapper {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .profile-section .sales-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    table-layout: auto !important;
  }
  .profile-section .sales-table thead th,
  .profile-section .sales-table tbody tr.sales-lot-row td,
  .profile-section .sales-table tbody tr.game-header-row td {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .profile-section .sales-table tbody tr.sales-lot-row:hover {
    background: var(--bg-primary);
  }
  .profile-section .sales-table thead {
    display: none;
  }
  .profile-section .sales-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .profile-section .sales-table tbody tr.game-separator-row {
    display: none;
  }
  .profile-section .sales-table tbody tr.game-header-row {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 14px 0 6px;
    box-sizing: border-box;
  }
  .profile-section .sales-table tbody tr.game-header-row:first-of-type {
    margin-top: 2px;
  }
  .profile-section .sales-table tbody tr.game-header-row td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header {
    display: block !important;
    padding: 2px 4px 4px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header.game-header--has-bg {
    padding: 0 !important;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header.game-header--has-bg .game-header-inner {
    padding: 10px 12px;
    min-height: 44px;
  }
  .profile-section .sales-table tbody tr.game-header-row td.game-header .game-header-inner {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .profile-section .sales-table tbody tr.game-header-row td .game-header-center {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    text-align: center;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    overflow-wrap: anywhere;
  }
  .profile-section .sales-table .game-header-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    max-width: 100%;
    line-height: 1.25;
    color: var(--text-primary);
  }
  .profile-section .sales-table .game-header-count {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 100%;
  }
  .profile-section .sales-table tbody tr.game-header-row + tr.sales-lot-row {
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .profile-section .sales-table tbody tr.sales-lot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 6px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(1) {
    flex: 1 1 100%;
    width: 100% !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    display: block;
    overflow: hidden;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(1) .sales-lot-cell-main {
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(1) .sales-lot-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    margin-top: 0;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(1) .sales-lot-title-wrap {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(2) {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    font-weight: 700;
    font-size: 14px !important;
    line-height: 1 !important;
    min-height: 32px;
    white-space: nowrap !important;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(3) {
    flex: 1 1 auto;
    text-align: right !important;
    color: var(--text-secondary);
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 32px;
    margin-left: auto;
    white-space: nowrap !important;
  }
  .profile-section .sales-table tbody tr.sales-lot-row td:nth-child(4) {
    display: none !important;
  }
  .profile-section .sales-lot-row .sales-lot-qty {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    line-height: 1;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
  .profile-section .sales-lot-row .owner-delete-lot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    margin: 0 !important;
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
  }
  .profile-section .sales-lot-row .status-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 5px;
    margin-top: 4px;
  }
  .lots-grid {
    grid-template-columns: 1fr;
  }
  .lot-modal-content {
    max-width: 95%;
    padding: 24px;
  }
}
.help-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}
.help-content {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.help-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-primary);
}
.help-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid color-mix(in srgb, var(--text-primary) 28%, transparent);
}
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-size: 16px;
}
.tab-btn:hover {
  color: var(--primary-color);
}
.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.help-login-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.help-hero {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}
.help-hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-primary);
  margin-left: 0;
  margin-right: auto;
}
.help-hero-content h1 {
  color: var(--text-primary);
}
.help-hero-content p {
  color: var(--text-secondary);
}
.help-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #4f5ddb;
  font-weight: 600;
}
.help-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.pill-btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-btn.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.pill-btn.btn-primary:hover {
  background: var(--primary-hover);
}
.pill-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
  background: transparent;
}
.pill-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.pill-ghost {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--bg-secondary);
}
.pill-ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.faq-section {
  padding: 10px 0 0;
  background: var(--bg-secondary);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--bg-primary);
  cursor: pointer;
}
.faq-item summary {
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}
.rules-accordion-section {
  padding: 30px 0 0px;
  background: var(--bg-secondary);
}
.help-rules-lead {
  margin: 0 0 16px;
  max-width: var(--section-wide-width, 960px);
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 15px;
}
.help-rules-lead a {
  color: var(--accent-primary, #6366f1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rules-header h2 {
  margin-bottom: 8px;
}
.section-accordion {
  margin-bottom: 12px;
}
.section-accordion + .collapsible {
  margin-bottom: 38px;
}
.section-accordion-btn {
  width: var(--section-wide-width);
  margin-left: 0;
  margin-right: auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-primary);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition:
    border 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.section-accordion-btn::after {
  content: "\203a";
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 0.2s, color 0.2s;
}
.section-accordion-btn.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.section-accordion-btn.active::after {
  color: var(--primary-color);
  transform: rotate(90deg);
}
@media (max-width: 768px) {
  .section-accordion-btn {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 16px;
    box-sizing: border-box;
  }
  .section-accordion + .collapsible > .rules-table,
  .section-accordion + .collapsible > .faq-table,
  .section-accordion + .collapsible > .rules-note {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}
.section-accordion-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.section-accordion-desc {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.collapsible {
  display: none;
}
.collapsible.open {
  display: block;
  margin-top: 16px;
}
.section-accordion + .collapsible > .rules-table,
.section-accordion + .collapsible > .faq-table {
  width: var(--section-wide-width);
  margin-left: 0;
  margin-right: auto;
}
.faq-table {
  margin-bottom: 24px;
}
.faq-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.faq-table thead {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.faq-table th,
.faq-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}
.faq-table th:first-child,
.faq-table td:first-child {
  white-space: nowrap;
}
.faq-table th:last-child,
.faq-table td:last-child {
  white-space: normal;
  word-wrap: break-word;
}
.faq-table tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .faq-table th:first-child,
  .faq-table td:first-child {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .section-accordion + .collapsible > .faq-table table,
  .section-accordion + .collapsible > .faq-table thead,
  .section-accordion + .collapsible > .faq-table tbody,
  .section-accordion + .collapsible > .faq-table tr,
  .section-accordion + .collapsible > .faq-table th,
  .section-accordion + .collapsible > .faq-table td,
  body.help-page .faq-table table,
  body.help-page .faq-table thead,
  body.help-page .faq-table tbody,
  body.help-page .faq-table tr,
  body.help-page .faq-table th,
  body.help-page .faq-table td,
  body.seller-help-page .faq-table table,
  body.seller-help-page .faq-table thead,
  body.seller-help-page .faq-table tbody,
  body.seller-help-page .faq-table tr,
  body.seller-help-page .faq-table th,
  body.seller-help-page .faq-table td,
  .rules-accordion-section .faq-table table,
  .rules-accordion-section .faq-table thead,
  .rules-accordion-section .faq-table tbody,
  .rules-accordion-section .faq-table tr,
  .rules-accordion-section .faq-table th,
  .rules-accordion-section .faq-table td,
  .faq-section .faq-table table,
  .faq-section .faq-table thead,
  .faq-section .faq-table tbody,
  .faq-section .faq-table tr,
  .faq-section .faq-table th,
  .faq-section .faq-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .section-accordion + .collapsible > .faq-table thead,
  body.help-page .faq-table thead,
  body.seller-help-page .faq-table thead,
  .rules-accordion-section .faq-table thead,
  .faq-section .faq-table thead {
    display: none;
  }
  .section-accordion + .collapsible > .faq-table tr,
  body.help-page .faq-table tr,
  body.seller-help-page .faq-table tr,
  .rules-accordion-section .faq-table tr,
  .faq-section .faq-table tr {
    margin: 0 0 14px;
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
  }
  .section-accordion + .collapsible > .faq-table td,
  body.help-page .faq-table td,
  body.seller-help-page .faq-table td,
  .rules-accordion-section .faq-table td,
  .faq-section .faq-table td {
    padding: 4px 0;
    border: none;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .section-accordion + .collapsible > .faq-table td:first-child,
  body.help-page .faq-table td:first-child,
  body.seller-help-page .faq-table td:first-child,
  .rules-accordion-section .faq-table td:first-child,
  .faq-section .faq-table td:first-child {
    font-weight: 700;
    padding-bottom: 8px;
    color: var(--text-primary);
  }
  .section-accordion + .collapsible > .faq-table td:last-child,
  body.help-page .faq-table td:last-child,
  body.seller-help-page .faq-table td:last-child,
  .rules-accordion-section .faq-table td:last-child,
  .faq-section .faq-table td:last-child {
    color: var(--text-secondary);
  }
  .rules-accordion-section .rules-table,
  .rules-content .rules-table {
    width: 100%;
    max-width: 100%;
  }
  .rules-accordion-section .rules-table table,
  .rules-content .rules-table table,
  .rules-accordion-section table.rules-table,
  .rules-content table.rules-table {
    display: table;
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
  }
  .rules-accordion-section .rules-table thead,
  .rules-content .rules-table thead {
    display: table-header-group;
  }
  .rules-accordion-section .rules-table tbody,
  .rules-content .rules-table tbody {
    display: table-row-group;
  }
  .rules-accordion-section .rules-table tr,
  .rules-content .rules-table tr {
    display: table-row;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  .rules-accordion-section .rules-table th,
  .rules-accordion-section .rules-table td,
  .rules-content .rules-table th,
  .rules-content .rules-table td {
    display: table-cell;
    width: auto !important;
    padding: 8px 6px;
    font-size: 11px;
    line-height: 1.35;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid var(--border-color);
  }
  .rules-accordion-section .rules-table th,
  .rules-content .rules-table th {
    font-size: 10px;
    font-weight: 600;
    background: var(--bg-secondary);
  }
  .rules-accordion-section .rules-table tbody td:first-child,
  .rules-content .rules-table tbody td:first-child {
    font-weight: inherit;
    background: transparent;
  }
}
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rule-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  overflow: hidden;
  box-shadow: var(--shadow-xs, 0 2px 6px rgba(15, 23, 42, 0.05));
}
.rule-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}
.rule-item summary::after {
  content: "\203a";
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 0.2s, color 0.2s;
}
.rule-item summary::-webkit-details-marker {
  display: none;
}
.rule-title {
  flex: 1;
  color: var(--text-primary);
}
.rule-item[open] summary::after {
  transform: rotate(90deg);
  color: var(--primary-color);
}
.rule-body {
  border-top: 1px solid var(--border-color);
  padding: 18px 20px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-secondary);
}
.rules-tabs-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}
.rules-tabs {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.rules-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.rules-tab-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.rules-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.rules-tab-content {
  display: none;
}
.rules-tab-content.active {
  display: block;
}
.seller-help-section,
.seller-responsibility-section {
  padding: 40px 0;
  background: var(--bg-primary);
}
.seller-help-header h2 {
  margin: 0 0 10px 0;
}
.seller-help-header p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.rules-table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.rules-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  box-sizing: border-box;
}
.rules-table th,
.rules-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  text-align: left;
}
.rules-table th:first-child,
.rules-table td:first-child {
  white-space: normal;
}
.rules-table th:last-child,
.rules-table td:last-child {
  white-space: normal;
  word-wrap: break-word;
}
.rules-table th {
  background: var(--bg-secondary);
  font-weight: 600;
}
.rules-note {
  color: var(--text-secondary);
  margin-top: -8px;
}
.requests-hero {
  background: var(--bg-primary);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-color);
}
.requests-hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.requests-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.requests-board {
  background: var(--bg-secondary);
  padding: 40px 0;
}
.request-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(15, 23, 42, 0.08));
}
.request-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.text-muted {
  color: var(--text-secondary);
  margin: 4px 0 0;
}
.request-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.request-filter-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.request-filter-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
}
.request-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.request-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
}
.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}
.request-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.request-id {
  font-weight: 600;
  color: var(--text-secondary);
}
.request-status {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.status-open {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
}
.status-answered {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.status-closed {
  background: rgba(248, 113, 113, 0.18);
  color: #dc2626;
}
.request-card h3 {
  margin: 0 0 8px 0;
}
.request-card p {
  margin: 0;
  color: var(--text-secondary);
}
.request-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.request-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.request-form-section {
  background: var(--bg-primary);
  padding: 40px 0 60px;
}
.request-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.request-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.request-modal {
  background: var(--bg-primary);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.request-modal-overlay.active .request-modal {
  transform: scale(1);
}
.request-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border-color);
  gap: 20px;
}
.request-modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.request-modal-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}
.request-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.request-modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.request-required-mark {
  color: var(--primary-color);
}
.request-quick-templates {
  margin-bottom: 4px;
}
.request-quick-templates-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.request-quick-templates-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.request-quick-template-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  font-family: inherit;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.request-quick-template-btn:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
}
@media (max-width: 640px) {
  .request-quick-templates-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-quick-template-btn {
    white-space: normal;
    font-size: 11px;
    padding: 6px 6px;
  }
}
.request-form {
  border: none;
  border-radius: 0;
  padding: 32px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.request-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.request-form label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
  font-size: 14px;
}
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  resize: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.request-form select {
  padding-right: 2.4em;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.1);
  background-color: var(--bg-primary);
}
.request-form input.is-preset-locked,
.request-form select.is-preset-locked {
  opacity: 0.72;
  cursor: default;
  background: var(--bg-tertiary, var(--bg-secondary));
}
.request-form textarea {
  min-height: 140px;
  font-family: inherit;
}
.request-form small {
  color: var(--text-secondary);
}
.request-evidence-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.request-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.request-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
}
.pagination-btn {
  padding: 10px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-info {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.support-modal-content {
  max-width: 560px;
  width: 90%;
}
.support-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.support-form .form-group {
  margin-bottom: 16px;
}
.support-form select,
.support-form textarea,
.support-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.support-form .radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.support-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.support-type-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.support-type-btn {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s;
}
.support-type-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}
.support-section {
  display: none;
}
.support-section.active {
  display: block;
}
.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}
.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.form-note {
  margin-top: 12px;
  color: var(--success-color);
  font-weight: 600;
}
.help-quick-section {
  padding: 40px 0 60px;
  background: var(--bg-primary);
}
.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.help-quick-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-quick-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}
.help-quick-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}
.help-quick-card .btn {
  align-self: flex-start;
}
.social-login h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
}
.g-signin2 {
  flex: 1;
  min-width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}
.g-signin2 > div {
  width: 100% !important;
  margin: 0 auto;
  min-height: 50px !important;
}
.g-signin2 iframe {
  min-width: 240px !important;
  min-height: 50px !important;
}
#googleSignInContainer,
#googleSignInContainerRegister {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  flex: 1;
}
.social-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}
.social-btn svg {
  width: 20px;
  height: 20px;
}
.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}
.divider span {
  position: relative;
  background: var(--bg-primary);
  padding: 0 16px;
  z-index: 2;
}
.help-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 768px) {
  .help-content {
    padding: 24px;
  }
  .help-title {
    font-size: 24px;
  }
  .social-buttons {
    flex-direction: column;
  }
  .social-btn {
    width: 100%;
  }
}
.main-content-highlight-wrap {
  position: relative;
  z-index: 1;
  width: 1480px;
  max-width: calc(100% - 40px);
  margin: 32px auto 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}
.main-content-highlight-wrap > section {
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 12px;
  background: #d1d5de;
  padding: 24px 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
html[data-theme=dark] .main-content-highlight-wrap > section {
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.main-content-highlight-wrap > .viewed-lots-section {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 0;
  padding-right: 0;
}
.main-content-highlight-wrap .stats {
  padding-top: 24px;
  padding-bottom: 24px;
}
.main-content-highlight-wrap .new-games-section {
  padding: 24px 20px;
}
.main-content-highlight-wrap .featured-categories-section {
  padding: 24px 20px;
}
.main-content-highlight-wrap .popular-games-section {
  padding: 10px 20px 16px;
}
.main-content-highlight-wrap .new-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.main-content-highlight-wrap .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.new-games-rows,
.popular-games-rows {
  display: none;
}
.new-games-section .new-games-rows {
  margin-top: 12px;
}
.main-content-highlight-wrap .game-card[data-has-bg],
.main-content-highlight-wrap .new-game-card[data-has-bg] {
  aspect-ratio: 16 / 11;
}
.main-content-highlight-wrap .game-card[data-has-bg] .game-title,
.main-content-highlight-wrap .new-game-card[data-has-bg] .game-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(10px + 12px + 1.2em * 2);
  box-sizing: border-box;
  min-width: 0;
}
.main-content-highlight-wrap,
.main-content-highlight-wrap .new-games-section,
.main-content-highlight-wrap .popular-games-section {
  overflow: visible;
}
.main-content-highlight-wrap .new-games-grid,
.main-content-highlight-wrap .games-grid {
  overflow: visible;
}
.new-games-section {
  padding: 60px 0;
  background: transparent;
}
.featured-categories-section {
  padding: 60px 0;
  background: transparent;
}
.popular-games-section {
  padding: 60px 0;
  background: transparent;
}
.section-header--highlight-tabs {
  margin-bottom: 6px !important;
  padding-bottom: 8px !important;
  border-bottom: 1.5px solid color-mix(in srgb, var(--text-primary) 32%, transparent) !important;
  gap: 0;
}
.highlight-main-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 0;
  padding: 0 2px;
  width: 100%;
}
.highlight-main-tab {
  position: relative;
  padding: 4px 2px 10px;
  border: none;
  background: transparent;
  color: color-mix(in srgb, var(--text-secondary) 82%, var(--text-primary));
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  cursor: pointer;
  transition: color 0.18s ease;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
.highlight-main-tab::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 42%;
  min-width: 22px;
  max-width: 40px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary-color);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.highlight-main-tab.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
@media (max-width: 640px) {
  .highlight-main-tab {
    font-size: 1.12rem;
    padding: 2px 2px 8px;
    letter-spacing: -0.015em;
  }
}
.highlight-main-tab:hover {
  color: var(--text-primary);
}
.highlight-main-tab.active {
  color: var(--text-primary);
  font-weight: 700;
}
.highlight-tab-panel[hidden] {
  display: none !important;
}
.recommendations-games-wrap {
  position: relative;
  margin-top: 12px;
}
.recommendations-games-grid-inner {
  position: relative;
}
#recommendedGamesGrid {
  min-height: 120px;
}
#recommendedGamesMoreBtn[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#recommendedGamesShowAllBtn[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.recommendations-placeholder-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  margin: 0;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-secondary, rgba(0, 0, 0, 0.02));
}
.recommendations-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
}
.recommendations-cookie-banner[hidden] {
  display: none !important;
}
.recommendations-cookie-banner__wrap {
  width: 100%;
  max-width: min(680px, calc(100vw - 32px));
  pointer-events: auto;
}
.recommendations-cookie-banner__card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
}
.recommendations-cookie-banner__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.recommendations-cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  width: auto;
}
.recommendations-cookie-banner__actions .btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  letter-spacing: 0.01em;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}
.recommendations-cookie-banner__actions .btn-outline {
  border-width: 1px;
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.recommendations-cookie-banner__actions .btn-outline:hover {
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.06));
  border-color: var(--border-color);
  color: var(--text-primary);
  transform: none;
}
.recommendations-cookie-banner__actions .btn-primary {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 14%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  box-shadow: none;
}
.recommendations-cookie-banner__actions .btn-primary:hover {
  background: color-mix(in srgb, var(--primary-color) 22%, var(--card-bg));
  border-color: color-mix(in srgb, var(--primary-color) 38%, var(--border-color));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transform: none;
  filter: none;
}
.recommendations-cookie-banner__actions .btn:active {
  opacity: 0.92;
}
.recommendations-cookie-banner__actions .btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-color) 55%, transparent);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .recommendations-cookie-banner__wrap {
    max-width: 100%;
  }
  .recommendations-cookie-banner__card {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 18px 16px;
    gap: 16px;
  }
  .recommendations-cookie-banner__text {
    text-align: center;
  }
  .recommendations-cookie-banner__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .recommendations-cookie-banner__actions .btn {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    min-height: 40px;
  }
}
body.recommendations-cookie-banner-open {
  padding-bottom: min(120px, 28vh);
}
.platform-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 20px;
  margin-top: 2px;
  margin-bottom: 10px;
  border-bottom: none;
  padding: 0 2px;
}
.platform-tabs-indicator {
  display: none !important;
}
.platform-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px 2px 10px;
  border: none;
  background: transparent;
  color: color-mix(in srgb, var(--text-secondary) 82%, var(--text-primary));
  font-weight: 550;
  cursor: pointer;
  transition: color 0.18s ease;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  box-sizing: border-box;
  font-family: inherit;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}
.platform-tab::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 42%;
  min-width: 18px;
  max-width: 36px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary-color);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.platform-tab:hover {
  color: var(--text-primary);
}
.platform-tab.active {
  color: var(--text-primary);
  font-weight: 700;
}
.platform-tab.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
html:not([data-theme=dark]) .highlight-main-tab,
html:not([data-theme=dark]) .highlight-main-tab:hover,
html:not([data-theme=dark]) .highlight-main-tab.active,
html:not([data-theme=dark]) .platform-tab,
html:not([data-theme=dark]) .platform-tab:hover,
html:not([data-theme=dark]) .platform-tab.active {
  color: #000;
}
@media (max-width: 768px) {
  .platform-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
    overflow-x: visible;
    overflow-y: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
  }
  .platform-tabs::-webkit-scrollbar {
    display: none;
  }
  .platform-tabs .platform-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 4px 0 9px !important;
    font-size: 0.82rem !important;
    font-weight: 550;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
  }
  .platform-tabs .platform-tab.active {
    font-weight: 650;
  }
}
@media (max-width: 380px) {
  .platform-tabs {
    gap: 8px;
  }
  .platform-tabs .platform-tab {
    font-size: 0.78rem !important;
    padding: 4px 0 8px !important;
    letter-spacing: -0.02em;
  }
}
.console-brand-tabs {
  display: flex;
  margin: 4px 0 18px;
}
.console-brand-tabs[hidden] {
  display: none !important;
}
.console-brand-tabs__track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
  max-width: 100%;
}
.console-brand-tab {
  appearance: none;
  margin: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1.2;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.console-brand-tab:hover {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}
.console-brand-tab.active {
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.console-brand-tab:focus {
  outline: none;
}
.console-brand-tab:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.console-brand-tab[data-console-brand=playstation].active {
  background:
    linear-gradient(
      135deg,
      #00439c 0%,
      #0070d1 100%);
  box-shadow: 0 6px 16px rgba(0, 70, 170, 0.35);
}
.console-brand-tab[data-console-brand=xbox].active {
  background:
    linear-gradient(
      135deg,
      #107c10 0%,
      #3ddc84 100%);
  box-shadow: 0 6px 16px rgba(16, 124, 16, 0.32);
}
.console-brand-tab[data-console-brand=nintendo].active {
  background:
    linear-gradient(
      135deg,
      #e60012 0%,
      #ff4d4d 100%);
  box-shadow: 0 6px 16px rgba(230, 0, 18, 0.3);
}
@media (max-width: 768px) {
  .console-brand-tabs__track {
    width: 100%;
  }
  .console-brand-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 9px 10px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .console-brand-tab {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-tabs-indicator {
    transition: none;
  }
}
.show-all-games-wrapper {
  text-align: center;
  margin-top: 20px;
}
.all-games-scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.55);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.all-games-scroll-top-btn__icon {
  display: block;
  flex-shrink: 0;
}
.all-games-scroll-top-btn[hidden] {
  display: none !important;
}
.all-games-scroll-top-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(241, 245, 249, 0.78);
  transform: translateY(-1px);
}
.all-games-scroll-top-btn:active {
  transform: translateY(0);
  color: rgba(241, 245, 249, 0.9);
}
html:not([data-theme=dark]) .all-games-scroll-top-btn {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(71, 85, 105, 0.55);
  box-shadow: none;
}
html:not([data-theme=dark]) .all-games-scroll-top-btn:hover {
  background: rgba(15, 23, 42, 0.1);
  color: rgba(51, 65, 85, 0.78);
}
@media (max-width: 768px) {
  .all-games-scroll-top-btn {
    right: 14px;
    bottom: calc(var(--sellpay-bottom-nav-h, 56px) + var(--sellpay-bottom-nav-safe, 0px) + 12px);
    width: 44px;
    height: 44px;
    z-index: 850;
  }
}
html.sellpay-mobile-nav-active .all-games-scroll-top-btn {
  right: 14px;
  bottom: calc(var(--sellpay-bottom-nav-h, 56px) + var(--sellpay-bottom-nav-safe, 0px) + 12px);
  width: 44px;
  height: 44px;
  z-index: 850;
}
.seller-rating {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  align-self: flex-start;
  color: var(--warning-color, #fbbf24);
  font-size: 13px;
}
.seller-rating-stars {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1;
}
.seller-rating-stars .seller-stars-filled {
  color: #fbbf24;
}
.seller-rating-stars .seller-stars-empty {
  color: #9ca3af;
}
.seller-rating-value {
  color: var(--text-primary);
}
.category-more {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-block;
  margin-left: 4px;
}
.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}
.featured-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.featured-category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.featured-category-card[data-has-bg] {
  aspect-ratio: 16 / 10;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(1.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.featured-category-card[data-has-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: brightness(1.08);
  z-index: 0;
}
.featured-category-card[data-has-bg]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      transparent 70%);
  z-index: 0;
}
html[data-theme=dark] .featured-category-card[data-has-bg]::after {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.3) 42%,
      transparent 70%);
}
.featured-category-card[data-has-bg] .category-name,
.featured-category-card[data-has-bg] .category-subname,
.featured-category-card[data-has-bg] .category-count {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  padding-left: 14px;
  padding-right: 14px;
}
.featured-category-card[data-has-bg] .category-name {
  color: #fff;
  font-weight: 700;
  padding-top: 12px;
  margin: 0;
}
.featured-category-card[data-has-bg] .category-subname {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.featured-category-card[data-has-bg] .category-count {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding-bottom: 12px;
  padding-top: 4px;
}
.featured-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.category-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.category-subname {
  font-size: 14px;
  color: var(--text-secondary);
}
.category-count {
  font-size: 12px;
  color: var(--primary-color);
  margin-top: auto;
  padding-top: 8px;
}
.new-games-grid-wrap {
  position: relative;
  margin-top: 12px;
}
.new-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.new-games-more-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  min-width: 88px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.48);
  color: rgba(241, 245, 249, 0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.new-games-more-btn:hover {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateY(-1px);
}
.new-games-more-btn:active {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.new-games-more-btn:focus {
  outline: none;
}
.new-games-more-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.35), 0 4px 18px rgba(0, 0, 0, 0.2);
}
html[data-theme=dark] .new-games-more-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 18, 0.55);
  color: rgba(226, 232, 240, 0.82);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
html[data-theme=dark] .new-games-more-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 18, 28, 0.68);
  color: rgba(241, 245, 249, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.new-game-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  touch-action: manipulation;
}
.new-game-card[data-has-bg] {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center 38%;
  filter: brightness(1.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.new-game-card[data-has-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center 38%;
  opacity: 1;
  filter: brightness(1.08);
  z-index: 0;
}
.new-game-card[data-has-bg]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      transparent 70%);
  z-index: 0;
}
html[data-theme=dark] .new-game-card[data-has-bg]::after {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.3) 42%,
      transparent 70%);
}
.new-game-card[data-has-bg] .game-title,
.new-game-card[data-has-bg] .new-badge,
.new-game-card[data-has-bg] .home-hub-badge {
  position: relative;
  z-index: 1;
}
.new-game-card[data-has-bg] .game-title {
  z-index: 2;
  margin: 0;
  padding: 10px 12px 12px;
  padding-right: 48px;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(10px + 12px + 1.2em * 2);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.new-game-card[data-has-bg]::before,
.new-game-card[data-has-bg]::after {
  pointer-events: none;
}
html[data-theme=dark] .new-game-card[data-has-bg] .game-title {
  background: none;
  color: #fff;
}
.new-game-card:hover,
.new-game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.new-game-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(57, 108, 255, 0.25), var(--shadow-lg);
}
.new-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 0 12px 0 10px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
}
.new-game-card .game-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-right: 55px;
  overflow-wrap: break-word;
  word-break: normal;
}
.new-game-card .game-categories {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .featured-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .featured-category-card {
    padding: 14px;
  }
  .new-games-grid {
    grid-template-columns: 1fr;
  }
  .category-search-wrapper {
    margin: 12px 16px 0;
    gap: 10px;
    max-height: none;
  }
  .category-search-box {
    border-radius: 8px;
    height: 48px;
    max-height: 48px;
    min-height: 48px;
    padding: 0;
    align-items: center;
    box-sizing: border-box;
  }
  .categories-btn {
    padding: 10px 12px;
    max-width: 52px;
    min-width: 52px;
  }
  .categories-btn span {
    display: none;
  }
  .category-search-inner {
    min-height: 0;
  }
  .category-search-input {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.3;
  }
  .search-icon-wrapper {
    padding: 0 10px;
  }
  .search-divider {
    height: 14px;
    margin: 0 4px;
  }
  .quick-categories {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    gap: 8px;
  }
  .quick-categories-list {
    width: 100%;
  }
  .quick-category-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}
.categories-page {
  min-height: calc(100vh - 200px);
  background: var(--bg-secondary);
  padding: 0;
}
.categories-container {
  display: flex;
  min-height: calc(100vh - 200px);
}
.categories-sidebar {
  width: 280px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.close-sidebar {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-sidebar:hover {
  color: var(--text-primary);
}
.sidebar-nav {
  padding: 8px 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover {
  background: var(--bg-tertiary);
}
.sidebar-item.active {
  background: var(--bg-tertiary);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}
.sidebar-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}
.sidebar-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.sidebar-arrow {
  color: var(--text-secondary);
  font-size: 18px;
}
.categories-main {
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100% - 280px);
}
.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.categories-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.category-count {
  font-size: 16px;
  color: var(--text-secondary);
}
.popular-categories-section {
  margin-bottom: 40px;
}
.viewed-categories-section {
  margin-bottom: 28px;
}
.viewed-categories-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.viewed-categories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.viewed-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.viewed-category-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.popular-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.popular-label svg {
  color: #ff6b35;
  width: 18px;
  height: 18px;
}
.popular-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.popular-category-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.popular-category-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.popular-category-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.popular-category-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.categories-content {
  margin-bottom: 40px;
}
.categories-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.category-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.category-group {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color);
}
.category-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.category-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-group-list li {
  margin: 0;
}
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
}
.category-item:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}
.category-item-count {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.categories-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  padding: 20px;
  overflow: hidden;
  animation: categoriesModalFadeIn 0.2s ease-out;
}
@keyframes categoriesModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.categories-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  animation: categoriesModalSlideUp 0.22s ease-out;
}
.categories-modal-content--catalog {
  display: flex;
  flex-direction: column;
}
.categories-modal-sheet-handle {
  display: none;
}
.categories-modal-search {
  padding: 0 20px 14px;
  position: sticky;
  top: 56px;
  z-index: 9;
  background: var(--bg-primary);
}
.categories-modal-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.categories-modal-search-input::placeholder {
  color: var(--text-secondary);
}
.categories-modal-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent);
}
.categories-modal-recent,
.categories-modal-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.categories-modal-chip {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.categories-modal-chip:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}
.categories-modal-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.categories-modal-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 96px;
  padding: 14px 6px 10px;
  border: none;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
  text-align: center;
}
.categories-modal-type:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}
.categories-modal-type:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.categories-modal-type-icon {
  width: 40px;
  height: 40px;
  color: inherit;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.categories-modal-type-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0;
  flex-shrink: 0;
  overflow: visible;
  stroke-width: 1.75;
}
.categories-modal-type-label {
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 100%;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.categories-modal-popular {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-secondary) 45%, transparent) transparent;
}
.categories-modal-popular::-webkit-scrollbar {
  height: 6px;
}
.categories-modal-popular::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-secondary) 40%, transparent);
  border-radius: 999px;
}
.categories-modal-popular::-webkit-scrollbar-track {
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .categories-modal-popular {
    cursor: default;
  }
}
.categories-modal-game {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  min-width: 0;
}
.categories-modal-game-cover {
  display: block;
  width: 88px;
  height: 118px;
  border-radius: 10px;
  background: var(--bg-secondary) center / cover no-repeat;
  border: 1px solid var(--border-color);
}
.categories-modal-game-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.categories-modal-game-cat {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.categories-modal-game:hover .categories-modal-game-name,
.categories-modal-result:hover .categories-modal-result-name {
  color: var(--primary-color);
}
.categories-modal-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(92, 110, 248, 0.2);
  color: #8c9eff;
  border: 1px solid rgba(92, 110, 248, 0.35);
}
.categories-modal-game-purchases {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  background: rgba(92, 110, 248, 0.16);
  color: #8c9eff;
  border: 1px solid rgba(92, 110, 248, 0.3);
  width: fit-content;
}
.categories-modal-game.has-purchases .categories-modal-game-cover {
  border-color: rgba(92, 110, 248, 0.4);
  box-shadow: 0 4px 12px rgba(92, 110, 248, 0.15);
}
.categories-modal-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.categories-modal-result:hover {
  background: var(--bg-tertiary);
}
.categories-modal-result-cover {
  width: 36px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-tertiary) center / cover no-repeat;
  border: 1px solid var(--border-color);
}
.categories-modal-result-name {
  font-size: 14px;
  font-weight: 500;
}
.categories-modal-section.is-hidden,
.categories-modal-section.is-empty-filtered,
.is-filtered-out {
  display: none !important;
}
@keyframes categoriesModalSlideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.categories-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}
.categories-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.categories-modal-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 0;
  line-height: 0;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  overflow: hidden;
  transition: color 0.15s, background 0.15s;
}
.categories-modal-close::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.categories-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.categories-modal-body {
  padding: 0 20px 20px;
}
.categories-modal-section {
  margin-bottom: 20px;
}
.categories-modal-section:last-child {
  margin-bottom: 0;
}
.categories-modal-section-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.categories-modal-section-icon {
  font-size: 1em;
  line-height: 1;
}
.categories-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.categories-modal-btn {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}
.categories-modal-btn:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}
.categories-modal-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .categories-modal-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.categories-modal-section--seller {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.categories-modal-seller-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  text-align: center;
}
.categories-modal-seller-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
[data-theme=dark] .categories-modal-seller-btn:hover {
  color: #fff;
}
.games-platform-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000001;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.games-platform-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}
.games-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
}
.games-platform-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.games-platform-close {
  background: none;
  border: none;
  font-size: 0;
  line-height: 0;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.2s, color 0.2s;
}
.games-platform-close::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.7 5.3a1 1 0 0 0-1.4 1.4L10.58 12 5.3 17.3a1 1 0 1 0 1.4 1.4L12 13.42l5.3 5.28a1 1 0 0 0 1.4-1.4L13.42 12l5.28-5.3a1 1 0 0 0-1.4-1.4L12 10.58 6.7 5.3z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.games-platform-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.games-platform-buttons {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-btn {
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.platform-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.categories-search-wrapper {
  margin-bottom: 24px;
}
.categories-search-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.categories-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}
.categories-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.category-btn-large {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.category-btn-large:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-btn-large .category-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.category-btn-large .category-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.categories-games-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 24px;
}
.category-game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.category-game-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}
.category-game-item .game-name {
  font-weight: 500;
}
.category-game-item .game-count {
  color: var(--text-secondary);
  font-size: 13px;
}
.categories-section {
  margin-bottom: 32px;
}
.categories-section:last-child {
  margin-bottom: 0;
}
.categories-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.categories-section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.popular-icon {
  color: #ff6b35;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.categories-popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.category-btn-large {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.category-btn-large:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-btn {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}
.category-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .categories-modal-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    isolation: isolate;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    min-height: 100%;
    min-height: 100dvh;
  }
  .categories-modal-content,
  .categories-modal-content--catalog {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overscroll-behavior: contain;
    overflow: hidden;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: none;
  }
  .categories-modal-sheet-handle {
    display: none;
  }
  .categories-modal-header {
    padding: 12px 16px 10px;
    flex-shrink: 0;
  }
  .categories-modal-header h2 {
    font-size: 16px;
  }
  .categories-modal-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .categories-modal-search {
    padding: 0 16px 12px;
    top: auto;
    position: relative;
    flex-shrink: 0;
  }
  .categories-modal-body {
    padding: 0 16px 18px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .categories-modal-section {
    margin-bottom: 14px;
  }
  .categories-modal-section-title {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .categories-modal-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .categories-modal-type {
    min-height: 88px;
    padding: 12px 4px 8px;
    gap: 6px;
  }
  .categories-modal-type-icon {
    width: 36px;
    height: 36px;
  }
  .categories-modal-type-icon svg {
    width: 20px;
    height: 20px;
  }
  .categories-modal-type-label {
    font-size: 11px;
    min-height: 2.5em;
  }
  .categories-modal-buttons {
    gap: 6px;
  }
  .categories-modal-btn {
    font-size: 12px;
    padding: 8px 12px;
    min-width: 60px;
    border-radius: 8px;
  }
  .categories-popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-btn {
    font-size: 13px;
    padding: 12px 16px;
  }
}
@media (max-width: 1200px) {
  .categories-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .categories-sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    z-index: 1000;
    transition: left 0.3s;
  }
  .categories-sidebar.active {
    left: 0;
  }
  .categories-main {
    max-width: 100%;
    padding: 24px 16px;
  }
  .categories-columns {
    grid-template-columns: 1fr;
  }
  .popular-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .viewed-categories-section {
    margin-bottom: 22px;
  }
}
.no-categories {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 16px;
}
.popular-category-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.category-item-more {
  color: var(--primary-color) !important;
  font-weight: 500;
}
.category-item-more:hover {
  text-decoration: underline;
}
.category-section {
  padding: 0 0 60px 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 200px);
}
.category-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.lots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.lot-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: row;
  min-height: 140px;
}
.lot-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.lot-image {
  width: 200px;
  min-width: 200px;
  height: 140px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.lot-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  font-weight: 700;
}
.lot-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.lot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.lot-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}
.lot-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  white-space: nowrap;
}
.lot-info {
  flex: 1;
  margin-bottom: 16px;
}
.lot-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lot-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.lot-seller {
  font-size: 13px;
  color: var(--text-secondary);
}
.lot-quantity {
  font-size: 13px;
  color: var(--text-secondary);
}
.lot-game-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lot-game,
.lot-category {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--text-secondary);
}
.btn-block {
  width: 100%;
  margin-top: auto;
}
.no-lots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}
@media (max-width: 768px) {
  .lots-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .category-title {
    font-size: 24px;
  }
}
.user-menu-container {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  z-index: 10001;
}
.user-menu-container .favorites-btn {
  margin-left: 12px;
  margin-right: 14px;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.user-menu-btn:focus {
  outline: none;
}
.user-menu-btn:focus-visible:not([aria-expanded=true]) {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--border-color);
}
.user-menu-btn[aria-expanded=true] {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}
.user-menu-btn[aria-expanded=false]:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .user-menu-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
  }
  .user-menu-btn[aria-expanded=true]:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
  }
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.user-avatar.user-avatar-default {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.user-avatar.user-avatar-gradient1 {
  background:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.user-avatar.user-avatar-gradient2 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.user-avatar.user-avatar-gradient3 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.user-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}
.user-menu-btn .dropdown-arrow,
.user-menu-btn.active .dropdown-arrow {
  display: none !important;
}
.header-actions .user-menu-btn > svg {
  display: none !important;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 170px !important;
  width: 170px !important;
  max-width: 170px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.12s ease-out,
    visibility 0.12s ease-out,
    transform 0.12s ease-out;
  z-index: 2147483000;
  padding: 8px 0;
  isolation: isolate;
}
.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.12s ease-in,
    visibility 0.12s ease-in,
    transform 0.12s ease-in;
  z-index: 2147483000;
}
body > .user-dropdown,
body > .user-dropdown.active,
body > .help-menu-dropdown {
  position: fixed !important;
  z-index: 2147483000 !important;
}
@media (min-width: 769px) {
  .user-dropdown.active {
    right: auto !important;
  }
}
.user-dropdown .dropdown-item-settings {
  display: none;
}
.user-dropdown-help {
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
}
.user-dropdown-help__summary .dropdown-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  opacity: 0.95;
}
.sellpay-account-sheet__help-icon svg,
.user-dropdown-help__summary .dropdown-icon {
  shape-rendering: geometricPrecision;
}
.user-dropdown-help__summary::-webkit-details-marker {
  display: none;
}
.user-dropdown-help__summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.user-dropdown-help[open] > .user-dropdown-help__summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.user-dropdown-help__list {
  display: flex;
  flex-direction: column;
  padding: 0 0 4px;
}
.user-dropdown-help__list .dropdown-item {
  padding-left: 46px;
  font-weight: 450;
  font-size: 13px;
  color: var(--text-secondary);
}
.user-dropdown-help__list .dropdown-item:hover {
  color: var(--text-primary);
}
.header-left .help-menu-container {
  display: none !important;
}
.header-actions .help-menu-container--guest {
  display: inline-flex !important;
  align-items: center;
  margin-right: 4px;
  position: relative;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover {
  background: var(--bg-tertiary);
}
.dropdown-item .dropdown-icon,
.dropdown-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.dropdown-item:hover .dropdown-icon,
.dropdown-item:hover svg {
  color: var(--primary-color);
  opacity: 1;
}
.logout-btn .dropdown-icon,
.logout-btn svg {
  color: var(--danger-color);
  opacity: 1;
}
.logout-btn:hover .dropdown-icon,
.logout-btn:hover svg {
  color: var(--danger-color);
}
.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}
.logout-btn {
  color: var(--danger-color) !important;
}
.logout-btn:hover {
  background: rgba(231, 76, 60, 0.1) !important;
}
.logout-btn svg {
  color: var(--danger-color) !important;
}
.user-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
  flex-wrap: nowrap;
}
.user-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  min-width: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--primary-color);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  line-height: 1.2;
  height: 44px;
  box-sizing: border-box;
  box-shadow: none;
}
.user-balance:hover {
  background: rgba(92, 110, 248, 0.08);
  border: none;
  transform: none;
  box-shadow: none;
  color: var(--primary-color);
}
.user-balance .balance-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
  color: inherit;
}
.user-balance .balance-label {
  display: none !important;
}
.user-balance .balance-amount,
.user-balance .balance-value {
  color: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.header .user-balance .balance-value,
.header .user-balance .balance-amount {
  display: none !important;
}
.header .user-balance--icon-only {
  padding: 0 16px;
  min-width: 52px;
  gap: 0;
}
.header .user-balance--icon-only .balance-icon {
  width: 18px;
  height: 18px;
}
.header .user-balance--with-amount {
  gap: 4px;
  padding: 0 12px;
  min-width: 0;
}
.header .user-balance--with-amount .balance-value,
.header .user-balance--with-amount .balance-amount {
  display: inline-flex !important;
}
.header .user-balance--with-amount .balance-icon {
  width: 16px;
  height: 16px;
}
.mobile-menu-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
}
.mobile-menu-balance .balance-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.mobile-menu-balance .balance-label {
  display: none !important;
}
.chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
  white-space: nowrap;
  position: relative;
  border: none !important;
}
.chat-btn:hover {
  border: none !important;
}
.chat-btn span {
  display: none;
}
.favorites-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
  color: #ff6b8e;
  border: none !important;
}
.favorites-btn:hover {
  color: #ff86a4;
  background: rgba(255, 107, 142, 0.08);
}
.favorites-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}
.favorites-btn-icon {
  filter: drop-shadow(0 2px 4px rgba(255, 107, 142, 0.26));
}
.chat-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}
.chat-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid var(--bg-primary, #111317);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  letter-spacing: -0.2px;
}
.chat-btn.has-notifications {
  animation: pulse-notification 2s infinite;
}
.header-actions .chat-btn,
.header-actions .favorites-btn,
.header-actions .user-balance,
.header-actions .user-menu-btn {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}
.header-actions .chat-btn,
.header-actions .favorites-btn,
.header-actions .user-menu-btn {
  justify-content: center;
}
.header-actions .chat-btn {
  padding-left: 10px;
  padding-right: 10px;
  min-width: 44px;
  border: none !important;
  background: transparent;
  box-shadow: none;
}
.header-actions .chat-btn:hover {
  background: rgba(92, 110, 248, 0.08);
  border: none !important;
  box-shadow: none;
  transform: none;
}
.header-actions .user-balance {
  border: none;
  background: transparent;
  box-shadow: none;
}
.header-actions .user-balance:hover {
  border: none;
  background: rgba(92, 110, 248, 0.08);
  box-shadow: none;
  transform: none;
}
.header-actions .user-menu-btn {
  border: none;
  background: transparent;
  box-shadow: none;
}
.header-actions .user-menu-btn:hover,
.header-actions .user-menu-btn[aria-expanded=true] {
  border: none;
  background: rgba(148, 163, 184, 0.1);
  box-shadow: none;
}
.header-actions .settings-icon-btn,
.header .settings-icon-btn {
  border: none;
  background: transparent;
}
.header-actions .settings-icon-btn:hover,
.header .settings-icon-btn:hover {
  border: none;
  background: rgba(148, 163, 184, 0.1);
}
.header-actions .favorites-btn {
  padding-left: 10px;
  padding-right: 10px;
}
.header-actions .user-menu-btn {
  padding: 2px;
}
.header-actions .user-balance {
  justify-content: center;
  padding: 0 12px;
  line-height: 1.2;
}
.header-actions .user-balance:hover {
  transform: none;
}
@media (max-width: 768px) {
  .header .settings-icon-btn {
    display: none !important;
  }
  .user-name {
    display: none;
  }
  .user-dropdown {
    left: auto !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    min-width: min(168px, calc(100vw - 24px)) !important;
    width: min(220px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box;
  }
  .user-dropdown.active {
    left: auto !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    min-width: min(168px, calc(100vw - 24px)) !important;
    width: min(220px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 20px) !important;
  }
  .user-dropdown .dropdown-item {
    font-size: 13px;
    padding: 10px 12px;
    gap: 10px;
  }
  .user-dropdown .dropdown-item-settings {
    display: flex;
  }
  .user-actions-row {
    margin-right: 8px;
    gap: 8px;
  }
  .header-actions .user-balance {
    padding: 0 10px;
    font-size: 13px;
  }
  .header .user-balance .balance-label,
  .mobile-menu-balance .balance-label {
    display: none !important;
  }
  .header .user-balance .balance-value,
  .header .user-balance .balance-amount {
    display: none !important;
  }
  .header .user-balance--with-amount .balance-value,
  .header .user-balance--with-amount .balance-amount {
    display: inline-flex !important;
  }
  .chat-btn span {
    display: none;
  }
  .favorites-btn span {
    display: none;
  }
  .header-actions .chat-btn {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-actions .favorites-btn {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header .header-actions .btn.chat-btn,
  .header .header-actions .btn.favorites-btn,
  .header .header-actions .btn.user-menu-btn {
    min-width: auto !important;
    border-radius: 12px;
  }
  .header-actions .chat-btn {
    min-width: 44px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .header-actions .favorites-btn {
    min-width: 44px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-right: 10px;
  }
  .header-actions .user-balance {
    border-radius: 12px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .header-actions .user-menu-btn {
    border-radius: 12px;
    padding: 2px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    gap: 0;
  }
  .header-actions .user-avatar {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    font-size: 15px;
    border-radius: 10px;
  }
}
@media (min-width: 769px) {
  .header-actions .user-menu-btn {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 2px !important;
    justify-content: center;
    gap: 0;
    border-radius: 10px;
  }
  .header-actions .user-name {
    display: none !important;
  }
  .header-actions .user-avatar {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    font-size: 15px;
    border-radius: 8px;
  }
}
@media (max-width: 768px) {
  .header .user-menu-btn {
    -webkit-tap-highlight-color: transparent;
  }
}
@media (max-width: 768px) and (hover: none) {
  .header .user-menu-btn {
    touch-action: manipulation;
  }
  .header .user-menu-btn .user-avatar {
    transition:
      transform 0.12s ease,
      opacity 0.12s ease,
      box-shadow 0.12s ease;
  }
  .header .user-menu-btn:hover:not(:active):not([aria-expanded=true]) {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
  }
  .header .user-menu-btn:active:not([aria-expanded=true]) {
    background: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
  }
  .header .user-menu-btn:active:not([aria-expanded=true]) .user-avatar {
    transform: scale(0.96);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 50%, transparent);
  }
  .header .user-menu-btn[aria-expanded=true]:hover,
  .header .user-menu-btn[aria-expanded=true]:active {
    background: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
  }
  .header .user-menu-btn[aria-expanded=true]:active .user-avatar {
    transform: none;
    box-shadow: none;
  }
  .header .user-menu-btn:focus-visible:not([aria-expanded=true]) {
    border-color: var(--border-color) !important;
  }
}
.chat-modal-content {
  max-width: 900px;
  width: 100%;
}
.chat-start {
  margin-bottom: 16px;
}
.chat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.chat-input {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  min-width: 0;
}
.chat-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(92, 110, 248, 0.15);
}
.chat-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.chat-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.chat-dialog-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  gap: 10px;
}
.chat-dialog-item:hover {
  background: var(--bg-secondary);
}
.chat-dialog-item.active {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}
.chat-dialog-item.has-unread {
  background: rgba(92, 110, 248, 0.15);
  border-left: 3px solid var(--primary-color);
  font-weight: 500;
}
.chat-dialog-item.has-unread .chat-dialog-name {
  font-weight: 600;
  color: var(--primary-color);
}
.chat-dialog-item.has-unread .chat-dialog-last {
  font-weight: 500;
  opacity: 1;
}
.chat-dialog-item.active.has-unread {
  background: var(--primary-color);
  border-left: none;
  color: #fff;
}
.chat-dialog-item.active.has-unread .chat-dialog-name {
  color: #fff;
}
.chat-dialog-avatar-btn {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  transition: opacity 0.15s, transform 0.15s;
}
.chat-dialog-avatar-btn:hover {
  opacity: 0.9;
}
.chat-dialog-avatar-btn:active {
  transform: scale(0.96);
}
.chat-status-edit-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: .7;
  transition:
    background .15s,
    color .15s,
    opacity .15s,
    transform .15s;
}
.chat-status-edit-btn:hover,
.chat-status-edit-btn:focus-visible {
  background: rgba(124, 58, 237, .16);
  color: var(--primary-color);
  opacity: 1;
}
.chat-status-edit-btn:active {
  transform: scale(.93);
}
.chat-status-edit-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-dialog-item.active .chat-status-edit-btn {
  color: #fff;
}
.chat-dialog-item.active .chat-status-edit-btn:hover,
.chat-dialog-item.active .chat-status-edit-btn:focus-visible {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.sp-chat-status-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid var(--bg-primary, #171717);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
  pointer-events: none;
  z-index: 4;
}
.sp-chat-status-menu {
  position: fixed;
  z-index: 100000;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--border-color, #2d2d2d);
  border-radius: 12px;
  background: #1f1f1f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text-primary, #e4e6eb);
  font-family:
    Inter,
    system-ui,
    sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu {
  background: #ffffff;
  border-color: #d3d8ec;
  color: #1f2335;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.sp-chat-status-menu-title {
  padding: 8px 10px 6px;
  color: var(--text-secondary, #b0b3b8);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.sp-chat-status-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 1px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #e4e6eb);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.sp-chat-status-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu-item {
  color: #1f2335;
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}
.sp-chat-status-menu-item.is-active {
  background: rgba(107, 126, 248, 0.18);
  color: #ffffff;
  font-weight: 600;
}
.sp-chat-status-menu-item.is-active:hover {
  background: rgba(107, 126, 248, 0.25);
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu-item.is-active {
  background: rgba(92, 110, 248, 0.14);
  color: var(--primary-color, #5c6ef8);
}
.sp-chat-status-swatch {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.sp-chat-status-menu-clear {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary, #b0b3b8);
  font-size: 13px;
}
.sp-chat-status-menu-clear:hover {
  color: var(--text-primary, #e4e6eb);
  background: rgba(255, 255, 255, 0.05);
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu-clear {
  border-top-color: #e2e8f0;
  color: #5a6072;
}
html:not([data-theme=dark]) body:not([data-theme=dark]) .sp-chat-status-menu-clear:hover {
  color: #1f2335;
  background: rgba(0, 0, 0, 0.04);
}
.chat-dialog-name-text {
  color: inherit;
}
.chat-dialog-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.chat-dialog-avatar-default {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.chat-dialog-avatar-gradient1 {
  background:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.chat-dialog-avatar-gradient2 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.chat-dialog-avatar-gradient3 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.chat-header-avatar-wrap {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 50%;
  transition: opacity 0.15s, transform 0.15s;
}
.chat-header-avatar-wrap:hover {
  opacity: 0.9;
}
.chat-header-avatar-wrap:active {
  transform: scale(0.96);
}
.chat-header-avatar-wrap-static {
  cursor: default;
}
.chat-header-avatar-wrap-static:hover {
  opacity: 1;
}
.chat-header-avatar-wrap-static:active {
  transform: none;
}
.chat-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg-primary, #1a1a1a);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.14);
  z-index: 2;
  pointer-events: none;
}
.chat-online-dot--header {
  right: -3px;
  bottom: -3px;
}
.category-lot-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 18px;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
}
.category-lot-seller-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: .48;
}
.category-lot-seller-dot.is-online {
  background: #22c55e;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .12);
}
.category-lot-seller-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-header-name-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.chat-header-name-link:hover {
  color: var(--primary-color);
}
.chat-header-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.chat-header-name-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.chat-header-avatar-default {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.chat-header-avatar-gradient1 {
  background:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.chat-header-avatar-gradient2 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.chat-header-avatar-gradient3 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.chat-dialog-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-dialog-name {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-width: 0;
}
.chat-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.chat-profile-link:hover,
.chat-profile-link:focus-visible {
  color: inherit;
}
.chat-dialog-last {
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  background: var(--bg-secondary);
}
.chat-main-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  flex-shrink: 0;
}
.chat-main-header h3 {
  font-size: 14px;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.chat-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 10px;
  min-height: 34px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.chat-back-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.chat-back-btn-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.chat-back-btn-text {
  line-height: 1;
}
@media (min-width: 769px) {
  .chat-back-btn {
    display: none !important;
  }
}
.chat-back-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.chat-back-btn:hover .chat-back-btn-icon {
  color: inherit;
}
.chat-message img:focus,
.chat-message img:focus-visible,
img[onclick],
img[data-image-url],
img[style*="cursor: pointer"],
.ticket-message-image,
.chat-image-fullscreen-img,
.ticket-image-fullscreen-img,
.lot-main-image-img,
.lot-lightbox__img,
.lot-thumbnail img,
.image-preview-wrapper img,
a img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
img[onclick]:focus,
img[onclick]:active,
img[data-image-url]:focus,
img[data-image-url]:active,
.ticket-message-image:focus,
.ticket-message-image:active,
.chat-image-fullscreen-img:focus,
.chat-image-fullscreen-img:active,
a:focus img,
a:active img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.chat-image-fullscreen-modal,
.sellpay-image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.chat-image-fullscreen-modal.active,
.sellpay-image-zoom-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.chat-image-fullscreen-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chat-image-fullscreen-container {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-image-fullscreen-img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
  will-change: transform;
}
.chat-image-fullscreen-close {
  display: none !important;
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
  padding: 0;
}
.chat-image-fullscreen-close svg {
  width: 24px;
  height: 24px;
  display: block;
}
.chat-image-fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .chat-image-fullscreen-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
.sellpay-zoom-download-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(18, 22, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  z-index: 10001;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.sellpay-zoom-download-btn:hover {
  background: rgba(30, 38, 65, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.sellpay-zoom-download-btn svg {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sellpay-zoom-download-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 12px;
  }
}
.chat-message-self.chat-message-has-img-text .chat-message-text-bubble,
.chat-message-other.chat-message-has-img-text .chat-message-text-bubble {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 0 !important;
  margin-top: 0 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.chat-dialog-support-prefix,
.chat-header-support-prefix {
  font-size: 11px;
  color: #fff;
  background: #8b5cf6;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-right: 4px;
}
.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  position: relative;
  text-align: center;
}
.chat-date-divider::before,
.chat-date-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.chat-date-divider::before {
  margin-right: 12px;
}
.chat-date-divider::after {
  margin-left: 12px;
}
.chat-date-divider {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
}
.chat-date-notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: dateNotificationFade 3s ease-in-out;
  pointer-events: none;
}
@keyframes dateNotificationFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}
.chat-file-preview {
  margin-bottom: 8px;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.chat-file-preview-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.chat-file-preview-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}
.chat-file-preview-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.chat-file-preview-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}
.chat-file-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-file-preview-remove:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.chat-input-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  padding: 12px 11px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.chat-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-form .chat-input {
  flex: 1;
}
.chat-input-textarea {
  min-height: 44px;
  height: 44px;
  max-height: 120px;
  resize: none;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
  border-radius: 10px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-input-textarea::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.request-file-section {
  margin-top: 12px;
  margin-bottom: 12px;
}
.request-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
}
.request-file-preview {
  margin-top: 12px;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.request-file-preview.is-visible {
  display: flex;
}
.request-file-preview-container {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
}
.request-file-preview-image {
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: var(--bg-primary);
}
.request-file-preview-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: 8px;
}
.request-file-preview-name {
  font-size: 11px;
  color: var(--text-primary);
  word-break: break-word;
  margin-top: 4px;
  line-height: 1.2;
  max-width: 88px;
}
.request-file-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
  flex-shrink: 0;
  z-index: 1;
}
.request-file-preview-remove:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
@media (max-width: 768px) {
  .request-modal-overlay {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
  }
  .request-modal,
  .request-modal-overlay.active .request-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none;
  }
  .request-modal-header {
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 2;
  }
  .request-modal-header > div {
    min-width: 0;
    flex: 1;
  }
  .request-modal-header h2 {
    font-size: 20px;
    margin: 0;
    line-height: 1.2;
  }
  .request-modal-header p {
    display: none;
  }
  .request-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: var(--bg-secondary);
    flex-shrink: 0;
  }
  .request-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 16px max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
    gap: 18px;
    box-sizing: border-box;
  }
  .request-quick-templates {
    margin-bottom: 0;
  }
  .request-quick-templates-label {
    margin-bottom: 8px;
    font-size: 13px;
  }
  .request-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .request-form label {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .request-form input,
  .request-form select,
  .request-form textarea {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
    box-sizing: border-box;
    min-height: 48px;
    background: var(--bg-secondary);
    resize: none;
  }
  .request-form textarea {
    min-height: 120px;
  }
  .request-form small {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    margin-top: 6px;
  }
  .request-evidence-hint {
    font-size: 12px;
    padding: 10px 12px;
  }
  .request-file-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    box-sizing: border-box;
  }
  .request-form-actions {
    position: static;
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    background: transparent;
  }
  .request-form-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }
  .requests-hero {
    padding: 32px 0 24px;
  }
  .requests-hero-content {
    gap: 12px;
  }
  .requests-hero-actions .pill-btn,
  .requests-hero-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .request-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .request-filters {
    width: 100%;
  }
  .request-filter-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
  }
  .support-modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .support-type-grid {
    flex-direction: column;
    gap: 8px;
  }
  .support-type-btn {
    min-width: 0;
    width: 100%;
  }
  .support-modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .support-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .support-form select,
  .support-form textarea,
  .support-form input {
    font-size: 16px;
    box-sizing: border-box;
  }
}
.chat-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.chat-file-btn svg {
  width: 22px;
  height: 22px;
}
.chat-char-count {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 4px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
  display: block;
}
@media (max-width: 768px) {
  .chat-char-count {
    display: none !important;
  }
}
.chat-char-count.warning {
  color: #f59e0b;
}
.chat-char-count.error {
  color: #ef4444;
}
#chatMessageInput {
  color: #1f2335 !important;
  background: var(--bg-primary) !important;
}
[data-theme=dark] #chatMessageInput {
  color: #e4e6eb !important;
}
#chatMessageInput::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.7;
}
#chatMessageInput:focus {
  color: #1f2335 !important;
  background: var(--bg-primary) !important;
  border-color: var(--primary-color) !important;
}
[data-theme=dark] #chatMessageInput:focus {
  color: #e4e6eb !important;
}
.chat-input-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
@media (max-width: 768px) {
}
.withdrawals-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 32px;
  gap: 16px;
}
.withdrawals-header .section-title {
  margin-top: 0;
  margin-bottom: 0;
}
.withdrawals-header-below {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
}
.withdrawals-fx-card {
  flex: 0 1 260px;
  min-width: 200px;
  max-width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.withdrawals-fx-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.withdrawals-fx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.withdrawals-fx-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.withdrawals-fx-toggle-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
}
.withdrawals-fx-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
}
.withdrawals-fx-card:not(.collapsed) .withdrawals-fx-chevron {
  transform: rotate(180deg);
}
.withdrawals-fx-card-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.withdrawals-fx-card-content-inner {
  min-height: 0;
}
.withdrawals-fx-card:not(.collapsed) .withdrawals-fx-card-content {
  grid-template-rows: 1fr;
  margin-top: 12px;
}
.withdrawals-fx-rates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.withdrawals-fx-line {
  line-height: 1.35;
}
.withdrawals-fx-muted {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}
.withdrawals-fx-disclaimer {
  margin: 8px 0 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.balance-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 280px;
  min-width: 0;
  justify-content: flex-end;
}
.balance-card {
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex: 0 1 220px;
  min-width: 160px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  align-self: flex-start;
}
.balance-card--pay-coins .balance-value {
  color: #d97706;
}
[data-theme=dark] .balance-card--pay-coins .balance-value {
  color: #f59e0b;
}
.balance-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.balance-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}
.balance-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  opacity: 0.8;
  line-height: 1.4;
}
.balance-hint[hidden] {
  display: none !important;
}
.balance-card--available {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.balance-card--available.is-hint-open {
  border-color: rgba(92, 110, 248, 0.35);
}
.balance-hint-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.balance-hint-link:hover {
  color: var(--primary-color);
}
.account-restricted-balance-notice {
  max-width: 720px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
}
[data-theme=dark] .account-restricted-balance-notice {
  background: color-mix(in srgb, var(--primary-color) 16%, var(--bg-secondary, #1a1a1a));
}
.withdrawals-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid color-mix(in srgb, var(--text-primary) 28%, transparent);
}
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.withdraw-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.form-hint-warning.withdraw-tooltip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--warning-color, #f59e0b);
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
[data-theme=dark] .form-hint-warning.withdraw-tooltip {
  background: var(--bg-secondary, #1f2937);
  color: var(--text-primary, #f9fafb);
}
.form-hint-warning .withdraw-tooltip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warning-color, #f59e0b);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
.withdraw-form-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  flex: 2 1 auto;
  min-width: 400px;
  max-width: none;
  width: auto;
}
.withdraw-form {
  width: 100%;
  max-width: 100%;
}
.stats-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  flex: 0 0 550px;
  min-width: 550px;
  max-width: 550px;
}
.withdrawals-stats-card {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin-bottom: 24px;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.profile-section:has(.withdrawals-stats-card) > .container {
  overflow: visible;
}
#withdrawTab,
#withdrawTab .withdraw-form-card {
  overflow: visible;
  max-height: none;
}
#historyTab .history-list {
  max-height: min(65vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.steam-topup-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.steam-topup-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.steam-topup-card-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.steam-topup-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}
.steam-topup-form .form-group {
  margin-bottom: 0;
}
.steam-topup-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid transparent;
}
.steam-topup-status.success {
  color: #166534;
  background: #ecfdf3;
  border-color: #86efac;
}
.steam-topup-status.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}
[data-theme=dark] .steam-topup-status.success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}
[data-theme=dark] .steam-topup-status.error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
.withdrawal-notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.withdrawal-notification-block {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: center;
}
.withdrawal-notification-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.withdrawal-notification-available {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.withdrawal-notification-btn {
  width: 100%;
}
.withdrawal-success-overlay .withdrawal-success-block {
  border-color: var(--primary-color);
}
.withdrawal-success-title {
  color: var(--primary-color);
}
.stats-period-and-calendar {
  position: relative;
  z-index: 5;
  overflow: visible;
}
.stats-more-btn {
  margin-top: 12px;
}
.stats-list-more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.stats-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.stats-period-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.period-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.period-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
}
.period-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.stats-calendar-wrapper {
  position: relative;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.stats-calendar-wrapper.stats-calendar-range-mode {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 4px;
  overflow: visible;
  pointer-events: auto;
}
.stats-calendar-wrapper.stats-calendar-range-mode .stats-calendar-inner {
  position: relative;
  overflow: visible;
}
.stats-calendar-wrapper.stats-calendar-range-mode .stats-calendar-inner.stats-calendar-card {
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  overflow: visible;
}
.stats-calendar-wrapper.stats-calendar-range-mode .stats-calendar-card .calendar-picker {
  position: relative;
  z-index: 0;
  top: auto;
  left: auto;
  margin-top: 0;
  width: 320px;
  min-width: 320px;
  max-width: none;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  border: none;
}
.stats-calendar-wrapper.stats-calendar-range-mode .calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.stats-calendar-wrapper.stats-calendar-range-mode .stats-calendar-apply {
  margin-top: 0;
  width: 100%;
  align-self: stretch;
}
.stats-calendar-wrapper .calendar-future-date-message {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #d35400 0%,
      #e67e22 100%);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
  width: 100%;
  box-sizing: border-box;
}
.calendar-day.in-range {
  background: color-mix(in srgb, var(--primary-color) 28%, transparent);
  color: var(--text-primary);
}
.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.calendar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.calendar-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}
.calendar-btn-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-right: 8px;
  font-size: 13px;
}
.calendar-btn-date {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
}
.calendar-picker {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 320px;
  width: 320px;
}
#salesCalendarWrapper .calendar-picker.calendar-picker-overlay {
  position: fixed;
  margin-top: 0;
  z-index: 10001;
}
html.sales-empty-state,
body.sales-empty-state {
  overflow: hidden !important;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  transition: all 0.2s;
}
.calendar-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.calendar-month-year-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.calendar-month-year {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
}
.calendar-month-year:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}
.calendar-month-selector {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 12px;
  min-width: 200px;
}
.calendar-month-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.calendar-month-item {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.calendar-month-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}
.calendar-month-item.active {
  background: var(--primary-color);
  color: white;
}
.calendar-year-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}
.calendar-year-nav {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.calendar-year-nav:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.calendar-year-display {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  min-height: 36px;
}
.calendar-day.empty {
  cursor: default;
}
.calendar-day:not(.empty):hover {
  background: var(--primary-color);
  color: white;
}
.calendar-day.today {
  background: var(--bg-tertiary);
  font-weight: 600;
  border: 1px solid var(--primary-color);
}
.calendar-day.range-start,
.calendar-day.range-end {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary-color);
}
.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
}
.withdraw-form .form-group {
  margin-bottom: 20px;
}
.withdraw-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}
#withdrawAmount::-webkit-outer-spin-button,
#withdrawAmount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#withdrawAmount {
  -moz-appearance: textfield;
  appearance: textfield;
}
.withdraw-form .form-group input,
.withdraw-form .form-group select {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.withdraw-form .form-group select {
  padding-right: 2.4em;
}
.withdraw-form .form-group input:focus,
.withdraw-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.1);
  background-color: var(--bg-primary);
}
.withdraw-form .form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.withdraw-form .form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}
.withdraw-form .form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  opacity: 0.95;
}
.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.history-filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.history-filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
}
.history-filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.withdrawals-history {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.my-sales-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 30px 0;
}
.my-sales-heading h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}
.my-sales-stats-link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary, #9ca3af);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}
.orders-panel-stats {
  margin-left: 4px;
  align-self: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}
.orders-panel-stats:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
}
.my-sales-stats-link:hover {
  color: var(--text-primary, #f9fafb);
  border-bottom-color: rgba(148, 163, 184, 0.35);
}
.my-sales-stats-link:focus-visible {
  outline: 2px solid rgba(92, 110, 248, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 480px) {
  .my-sales-heading {
    align-items: center;
    margin-bottom: 22px;
  }
  .my-sales-heading h1 {
    font-size: 26px;
  }
  .my-sales-stats-link {
    font-size: 13px;
  }
}
.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.orders-toolbar-search {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: var(--card-bg, #1a1a1a);
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
}
.orders-toolbar-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}
.orders-toolbar-select {
  padding: 10px 38px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background-color: var(--bg-secondary, var(--card-bg, #1a1a1a));
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.orders-toolbar-select::-ms-expand {
  display: none;
}
.orders-toolbar-select:hover {
  border-color: rgba(92, 110, 248, 0.45);
}
.orders-toolbar-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 110, 248, 0.18);
  background-color: var(--bg-secondary, var(--card-bg, #1a1a1a));
}
html[data-theme=dark] .orders-toolbar-select,
html[data-theme=dark] .orders-toolbar-select:hover,
html[data-theme=dark] .orders-toolbar-select:focus {
  background-color: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html:not([data-theme=dark]) .orders-toolbar-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (max-width: 768px) {
  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }
  .orders-toolbar-search {
    flex: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .orders-toolbar-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .orders-toolbar-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 34px 10px 12px;
    font-size: 13px;
  }
}
.history-item {
  position: relative;
  margin-bottom: 0 !important;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-item-purchase {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s;
}
.history-item-purchase:hover {
  box-shadow: var(--shadow-sm);
}
.history-purchase-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-purchase-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}
.history-item-purchase-row .history-purchase-top .history-type {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.history-item-purchase-row .history-purchase-top .history-amount {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.history-item-purchase-row .history-purchase-top .history-game {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.history-item-purchase-row .history-date {
  color: var(--text-tertiary);
  font-size: 12px;
}
.history-item-clickable {
  cursor: pointer;
}
.history-item-clickable:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}
.history-item-refund-horizontal {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s;
  margin-bottom: 0;
}
.history-item-refund-horizontal:hover {
  box-shadow: var(--shadow-sm);
}
.history-refund-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-refund-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}
.history-refund-top .history-type {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.history-refund-top .history-amount {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.history-refund-top .history-game {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.history-status-wrapper,
.history-refund-top .history-status {
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}
.history-item-refund-horizontal .history-date {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 0;
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 0;
}
.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.pagination-arrow {
  padding: 0 8px;
}
.history-pagination-simple {
  gap: 12px;
}
.history-pagination-simple .pagination-current {
  min-width: 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-dots {
  padding: 0 4px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.withdrawals-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.withdrawal-item {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s;
}
.withdrawal-item:hover {
  box-shadow: var(--shadow-sm);
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.history-type {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}
.history-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.history-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-amount {
  font-size: 24px;
  font-weight: 700;
}
.history-amount.positive {
  color: var(--success-color);
}
.history-amount.negative {
  color: var(--danger-color);
}
.history-game {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.history-method {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.history-details {
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 10px 12px;
  border-radius: 6px;
  word-break: break-all;
}
.history-date {
  font-size: 13px;
  color: var(--text-secondary);
}
.withdrawal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.withdrawal-id {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}
.withdrawal-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.status-processing {
  background: rgba(92, 110, 248, 0.1);
  color: var(--primary-color);
}
.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}
.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
.withdrawal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.withdrawal-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.withdrawal-method {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.withdrawal-details {
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 10px 12px;
  border-radius: 6px;
  word-break: break-all;
}
.withdrawal-date {
  font-size: 13px;
  color: var(--text-secondary);
}
.withdrawal-processed {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.withdrawal-rejection {
  font-size: 13px;
  color: var(--danger-color);
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}
.no-withdrawals-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.no-withdrawals-message p {
  font-size: 16px;
}
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.purchase-item {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.purchase-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.purchase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.purchase-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 18px;
}
.purchase-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}
.purchase-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.purchase-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.purchase-date {
  font-size: 13px;
  color: var(--text-secondary);
}
.purchase-game {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.purchase-status {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.status-confirmed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}
.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.status-reviewed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}
.status-not-reviewed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
.status-icon {
  font-weight: 700;
}
.purchase-actions {
  margin-top: 8px;
}
html:not([data-theme=dark]) .purchase-item .purchase-actions .btn-outline {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}
html:not([data-theme=dark]) .purchase-item .purchase-actions .btn-outline:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}
.no-purchases-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.no-purchases-message p {
  font-size: 16px;
}
.sales-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sales-filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.sales-filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
}
.sales-filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.sales-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sale-item {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.sale-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.sale-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 18px;
}
.sale-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--success-color);
}
.sale-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sale-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sale-date {
  font-size: 13px;
  color: var(--text-secondary);
}
.sale-game {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.sale-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}
.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}
.status-closed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
.sale-complaints {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.complaints-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--warning-color);
}
.complaints-icon {
  font-size: 18px;
}
.complaints-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.complaint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  gap: 12px;
}
.complaint-reason {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
}
.complaint-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.status-resolved {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}
.no-sales-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.no-sales-message p {
  font-size: 16px;
}
.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000000;
  display: none;
}
.cookie-consent-banner.active {
  display: block;
}
.cookie-consent-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
}
.cookie-consent-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.cookie-consent-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.cookie-consent-text .cookie-consent-link {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-text .cookie-consent-link:hover {
  color: var(--primary-hover, var(--primary-color));
}
.cookie-consent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.cookie-consent-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 768px) {
  .withdrawals-header {
    min-width: 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }
  .withdrawals-header .section-title {
    margin-top: 0;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 24px;
    box-sizing: border-box;
  }
  .withdrawals-header-below {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .withdrawals-fx-card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }
  .balance-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .balance-card {
    flex: 1 1 100px;
    width: auto;
    min-width: 95px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: flex-start;
  }
  .balance-label {
    font-size: 11px;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 0;
    line-height: 1.2;
  }
  .balance-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
  }
  .balance-hint {
    font-size: 9px;
    line-height: 1.3;
    margin-top: 2px;
  }
  .withdraw-layout {
    flex-direction: column;
  }
  .withdraw-form-card {
    padding: 24px;
    min-width: 100%;
  }
  .steam-topup-form {
    grid-template-columns: 1fr;
  }
  .stats-card {
    flex: 1;
    min-width: 100%;
  }
  .withdrawals-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-period-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .period-btn[data-period=custom] {
    grid-column: span 2;
  }
  .history-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .history-filters::-webkit-scrollbar {
    display: none;
  }
  .history-filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }
}
.avatar-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.avatar-editor-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.avatar-editor-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 20, 0.65);
  backdrop-filter: blur(2px);
}
.avatar-editor-dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  background: var(--surface-elevated, #0f1024);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1;
}
.avatar-editor-dialog.avatar-editor-dialog--banner {
  width: min(980px, calc(100% - 24px));
  padding: 24px 28px 28px;
}
.avatar-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.avatar-editor-header h3 {
  color: #f4f6ff;
}
.avatar-editor-kicker {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.avatar-editor-subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.avatar-editor-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 20 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  transition: color 0.2s ease, transform 0.2s ease;
}
.avatar-editor-close:hover {
  color: #fff !important;
  background: transparent !important;
  transform: scale(1.1);
}
.avatar-editor-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.avatar-editor-frame {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #05060f;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.avatar-editor-frame.avatar-editor-frame--banner {
  width: min(100%, 920px, calc(min(56vh, 520px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 520px);
  border-radius: 14px;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
}
.avatar-editor-dialog.avatar-editor-dialog--banner {
  overscroll-behavior: contain;
}
.avatar-editor-frame.avatar-editor-frame--banner.dragging {
  cursor: grabbing;
}
.avatar-editor-crop.avatar-editor-crop--fixed {
  pointer-events: none;
  cursor: grab;
  border-radius: 10px;
  border-width: 2px;
  box-shadow: 0 0 0 999px rgba(5, 6, 15, 0.62);
}
.avatar-editor-crop.avatar-editor-crop--fixed .avatar-editor-handle {
  display: none !important;
}
.avatar-editor-lot-preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: none;
  box-sizing: border-box;
}
.avatar-editor-lot-preview::before {
  content: "\41b\43e\442";
  position: absolute;
  top: 3px;
  left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 6, 15, 0.55);
  pointer-events: none;
}
.avatar-editor-frame--banner .avatar-editor-grid {
  opacity: 0.35;
}
.avatar-editor-frame.dragging {
  cursor: grabbing;
}
.avatar-editor-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.avatar-editor-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 0 0), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 0);
  background-size: 33.33% 100%, 100% 33.33%;
}
.avatar-editor-crop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 0 0 999px rgba(5, 6, 15, 0.55);
  transition: box-shadow 0.2s ease;
  cursor: move;
  z-index: 1;
  overflow: visible;
}
.avatar-editor-crop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.avatar-editor-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: #f5f6ff;
  border: 3px solid rgba(11, 13, 32, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  cursor: nwse-resize;
  z-index: 1000010;
  pointer-events: auto;
  touch-action: none;
}
.avatar-editor-handle.corner-top-left {
  top: -10px;
  left: -10px;
  cursor: nwse-resize;
}
.avatar-editor-handle.corner-top-right {
  top: -10px;
  right: -10px;
  cursor: nesw-resize;
}
.avatar-editor-handle.corner-bottom-left {
  bottom: -10px;
  left: -10px;
  cursor: nesw-resize;
}
.avatar-editor-handle.corner-bottom-right {
  bottom: -10px;
  right: -10px;
  cursor: nwse-resize;
}
.avatar-editor-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 16, 32, 0.6);
}
.avatar-editor-settings label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.avatar-editor-settings input[type=range] {
  width: 100%;
  accent-color: var(--primary-color, #5c6ef8);
}
.avatar-editor-blur-value {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.avatar-editor-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #7b7f9e);
  text-align: center;
}
.avatar-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
@media (max-width: 520px) {
  .avatar-editor-dialog {
    padding: 24px;
  }
  .avatar-editor-frame {
    width: 100%;
    border-radius: 20px;
  }
}
#profileSettingsModal.avatar-editor-active .modal-content {
  pointer-events: none;
}
#profileSettingsModal.avatar-editor-active .modal-overlay {
  opacity: 0.4;
}
.nickname-cooldown-notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-muted, #7b7f9e);
  margin: 10px 0 4px;
}
.nickname-cooldown-notice strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.section-heading--with-cooldown {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.section-heading--with-cooldown .section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.section-heading--with-cooldown .section-heading-row h3 {
  margin: 6px 0 0;
  flex: 0 0 auto;
}
.section-heading--with-cooldown .description-cooldown-notice {
  margin: 6px 0 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--text-muted, #7b7f9e);
  align-self: baseline;
}
.description-cooldown-notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted, #7b7f9e);
  margin: 8px 0 4px;
}
.description-cooldown-notice strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.avatar-cooldown-notice,
.background-cooldown-notice {
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #7b7f9e);
  line-height: 1.35;
}
#profileSettingsDescription.is-cooldown-locked {
  opacity: 0.65;
  cursor: not-allowed;
}
.profile-dim-settings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.profile-dim-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-dim-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-dim-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}
.profile-dim-settings input[type=range],
.profile-desc-dim-settings input[type=range],
.profile-settings-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 28px;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--primary-color);
}
.profile-dim-settings input[type=range]::-webkit-slider-runnable-track,
.profile-desc-dim-settings input[type=range]::-webkit-slider-runnable-track,
.profile-settings-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-tertiary, #2a2a2a);
  border: 1px solid var(--border-color, #3a3a3a);
}
.profile-dim-settings input[type=range]::-webkit-slider-thumb,
.profile-desc-dim-settings input[type=range]::-webkit-slider-thumb,
.profile-settings-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--primary-color, #5c6ef8);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.profile-dim-settings input[type=range]::-moz-range-track,
.profile-desc-dim-settings input[type=range]::-moz-range-track,
.profile-settings-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-tertiary, #2a2a2a);
  border: 1px solid var(--border-color, #3a3a3a);
}
.profile-dim-settings input[type=range]::-moz-range-thumb,
.profile-desc-dim-settings input[type=range]::-moz-range-thumb,
.profile-settings-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color, #5c6ef8);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.profile-dim-preview {
  position: relative;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  isolation: isolate;
}
.profile-dim-preview-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.profile-dim-preview-veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.profile-dim-preview-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.profile-dim-preview-nick {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.profile-dim-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  opacity: 0.92;
}
.profile-dim-preview-stats b {
  font-weight: 700;
}
.profile-desc-dim-settings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.profile-desc-dim-preview {
  position: relative;
  min-height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
}
.profile-desc-dim-preview-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-primary);
  background-size: cover;
  background-position: center;
}
.profile-desc-dim-preview-pill {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  box-sizing: border-box;
}
.profile-desc-dim-preview-pill.is-transparent {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.profile-header.custom-background {
  position: relative;
  overflow: hidden;
  background-color: #0b0d1a;
  isolation: isolate;
  contain: paint;
}
.profile-header.custom-background::before,
.profile-header.custom-background::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.profile-header.custom-background::before {
  background-image: var(--profile-bg-image);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--profile-bg-blur, 0px));
  inset: calc(-0.65 * var(--profile-bg-blur, 0px));
}
.profile-header.custom-background::after,
.profile-header.custom-background.profile-header--has-dim::after {
  inset: 0;
  background:
    radial-gradient(
      ellipse 105% 105% at 50% 50%,
      transparent 58%,
      rgba(0, 0, 0, 0.55) 100%),
    #000;
  opacity: calc(var(--profile-bg-dim, 20) / 100);
}
.profile-section .sales-section {
  position: relative;
  z-index: 1;
}
.profile-header.custom-background > *:not(.profile-actions) {
  position: relative;
  z-index: 2;
}
.profile-header > .profile-actions,
.profile-header.custom-background > .profile-actions {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 6;
  margin: 0 !important;
  width: auto !important;
  flex-basis: auto !important;
  align-self: auto !important;
}
@media (max-width: 768px) {
  .profile-header.custom-background::before {
    background-size: cover;
    background-position: center center;
    inset: calc(-0.4 * var(--profile-bg-blur, 0px));
  }
  .profile-header.custom-background::after,
  .profile-header.custom-background.profile-header--has-dim::after {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.45) 100%),
      #000;
    opacity: max(0.42, calc(var(--profile-bg-dim, 20) / 100));
  }
}
.create-lot-page {
  min-height: calc(100vh - 80px);
  background: var(--bg-primary);
  padding: 0;
}
.create-lot-layout {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}
.create-lot-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.create-lot-sidebar::-webkit-scrollbar {
  width: 8px;
}
.create-lot-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.create-lot-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.create-lot-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
.lot-sections-nav::-webkit-scrollbar {
  width: 6px;
}
.lot-sections-nav::-webkit-scrollbar-track {
  background: transparent;
}
.lot-sections-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.lot-sections-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
.create-lot-sidebar .sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.create-lot-sidebar .sidebar-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.create-lot-sidebar .sidebar-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
  display: block;
}
.lot-sections-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.lot-section-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}
.lot-section-link:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.05));
  color: var(--text-primary);
}
.lot-section-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color, #6366f1);
}
.lot-section-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.create-lot-main {
  flex: 1;
  padding: 24px 40px;
  overflow: visible;
  background: var(--bg-primary);
}
html[data-theme=dark] .create-lot-sidebar {
  background: #0f0f0f;
  border-right-color: #1f1f1f;
}
html[data-theme=dark] .create-lot-sidebar .sidebar-header {
  border-bottom-color: #1f1f1f;
}
html[data-theme=dark] .lot-section-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme=dark] .lot-section-link.active {
  background: rgba(99, 102, 241, 0.2);
}
.create-lot-restore-warning-banner {
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid rgba(220, 38, 38, 0.5);
  color: #dc2626;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
}
html[data-theme=dark] .create-lot-restore-warning-banner {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.6);
  color: #f87171;
}
.create-lot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.create-lot-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.create-lot-tab-btns {
  display: inline-flex;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}
.create-lot-tab-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.create-lot-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover, rgba(0, 0, 0, 0.05));
}
.create-lot-tab-btn.active {
  color: #fff;
  background: var(--primary-color, #6366f1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}
.create-lot-tab-content {
  display: none;
}
.create-lot-tab-content.active {
  display: block;
}
.create-lot-tab-content .form-input,
.create-lot-tab-content .form-textarea {
  margin-top: 0;
}
html[data-theme=dark] .create-lot-tab-btns {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
}
html[data-theme=dark] .create-lot-tab-btn.active {
  background: var(--primary-color, #5c6ef8);
  color: #fff;
}
.game-search-wrapper {
  position: relative;
  z-index: 20;
}
.game-search-wrapper:has(.game-search-results.active) {
  z-index: 100;
}
.game-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0 16px;
  transition: all 0.2s ease;
  min-height: 48px;
}
.game-search-box:hover {
  border-color: var(--text-secondary);
}
.game-search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}
.game-search-input {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
}
.game-search-input::placeholder {
  color: var(--text-secondary);
}
.game-search-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.game-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 2px solid #2d2d2d;
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
  display: none;
  animation: dropdownFadeIn 0.2s ease-out;
}
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.game-search-results.active {
  display: block;
}
.game-search-result-item {
  padding: 14px 16px;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-radius: 8px;
  margin: 4px 8px;
  position: relative;
}
.game-search-result-item:first-child {
  margin-top: 8px;
}
.game-search-result-item:last-child {
  margin-bottom: 8px;
}
.game-search-result-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
  transform: translateX(2px);
}
.game-search-result-item:active {
  background: rgba(99, 102, 241, 0.25);
}
.game-search-result-name {
  font-weight: 500;
  color: #e5e7eb;
  display: block;
}
.game-search-no-results {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}
.game-search-results::-webkit-scrollbar {
  width: 8px;
}
.game-search-results::-webkit-scrollbar-track {
  background: transparent;
}
.game-search-results::-webkit-scrollbar-thumb {
  background: #3d3d3d;
  border-radius: 4px;
}
.game-search-results::-webkit-scrollbar-thumb:hover {
  background: #4d4d4d;
}
.game-search-results::-webkit-scrollbar-thumb:active {
  background: #5d5d5d;
}
html[data-theme=dark] .game-search-results {
  background: #0a0a0a;
  border-color: #2d2d2d;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.2);
}
html[data-theme=dark] .game-search-result-item {
  color: #f3f4f6;
}
html[data-theme=dark] .game-search-result-item:hover {
  background: rgba(99, 102, 241, 0.2);
}
.form-section {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  scroll-margin-top: 100px;
  animation: fadeInUp 0.4s ease-out;
  overflow: visible;
}
.form-section:last-of-type {
  margin-bottom: 0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.section-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.form-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.form-section-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}
html[data-theme=dark] .form-section {
  background: #0a0a0a;
  border-color: #1f1f1f;
}
html[data-theme=dark] .section-header {
  border-bottom-color: #1f1f1f;
}
.form-group {
  margin-bottom: 16px;
  overflow: visible;
  position: relative;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .required,
label .required {
  color: var(--primary-color, #7c3aed);
  font-weight: 600;
}
.form-label-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  padding: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}
.form-label-checkbox:hover {
  border-color: var(--primary-color);
  background: var(--bg-hover, rgba(99, 102, 241, 0.05));
}
.form-label-checkbox input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary-color, #6366f1);
}
.lot-status-toggle-wrap {
  margin-top: 8px;
}
.lot-status-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title switch" "hint hint";
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
}
.lot-status-toggle-title {
  grid-area: title;
  margin: 0;
  align-self: center;
}
.lot-status-toggle-hint {
  grid-area: hint;
  margin: 0;
  white-space: normal;
  line-height: 1.35;
}
.lot-status-switch {
  grid-area: switch;
  position: relative;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}
.lot-status-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  pointer-events: none;
}
.lot-status-switch-track {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #94a3b8;
  transition: background 0.2s ease;
  flex: 0 0 48px;
}
.lot-status-switch-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  will-change: transform;
}
.lot-status-switch input:checked + .lot-status-switch-track {
  background: var(--primary-color, #22c55e);
}
.lot-status-switch input:checked + .lot-status-switch-track .lot-status-switch-knob {
  transform: translateX(20px);
}
.lot-status-switch-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-width: 5.5em;
  color: var(--text-primary, #111);
}
@media (max-width: 768px) {
  .lot-status-toggle-row {
    padding: 12px 14px;
    column-gap: 10px;
  }
  .lot-status-switch {
    gap: 8px;
  }
  .lot-status-switch-label {
    min-width: 0;
  }
}
html[data-theme=dark] .lot-status-toggle-row {
  background: var(--bg-secondary, #1f1f1f);
}
html[data-theme=dark] .lot-status-switch-track {
  background: #475569;
}
html[data-theme=dark] .lot-status-switch input:checked + .lot-status-switch-track {
  background: #22c55e;
}
html[data-theme=dark] .form-label-checkbox {
  background: #000;
  border-color: #1f1f1f;
}
html[data-theme=dark] .form-label-checkbox:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.form-select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  transform: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-select::-ms-expand {
  display: none;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background-color: var(--bg-primary);
}
.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
  border-color: var(--text-secondary);
}
.form-textarea {
  resize: none;
  min-height: 180px;
}
.create-lot-form .form-textarea {
  min-height: 200px;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  resize: none;
}
html[data-theme=dark] .create-lot-form .form-textarea {
  background: #000000;
  border-color: var(--border-color, #2d2d2d);
  color: #ffffff;
}
html[data-theme=dark] .create-lot-form .form-textarea:focus {
  background: #000000;
  border-color: var(--primary-color, #5c6ef8);
  color: #ffffff;
}
html[data-theme=dark] .create-lot-form .form-textarea::placeholder {
  color: #666666;
}
html[data-theme=dark] .create-lot-form .form-input {
  background: var(--bg-primary);
  color: var(--text-primary);
}
html[data-theme=dark] .create-lot-form .form-input:focus {
  background: var(--bg-primary);
  color: var(--text-primary);
}
html[data-theme=dark] .create-lot-form .form-input::placeholder {
  color: var(--text-secondary);
}
.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.create-lot-form .form-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-hover, rgba(0, 0, 0, 0.03));
  border-radius: 8px;
  font-size: 12px;
}
.create-lot-form .form-hint[hidden],
.create-lot-form .form-hint:empty {
  display: none !important;
  padding: 0;
  margin: 0;
  background: none;
}
html[data-theme=dark] .create-lot-form .form-hint {
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme=dark] .create-lot-form .form-hint[hidden],
html[data-theme=dark] .create-lot-form .form-hint:empty {
  background: none;
}
.create-lot-platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.create-lot-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}
.create-lot-category-empty {
  display: block;
  padding: 10px 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.create-lot-category-chip {
  appearance: none;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.create-lot-category-chip:hover {
  border-color: var(--primary-color);
}
.create-lot-category-chip.is-active {
  background: rgba(124, 58, 237, 0.92);
  border-color: rgba(167, 139, 250, 0.9);
  color: #fff;
  box-shadow: 0 2px 14px rgba(76, 29, 149, 0.35);
}
.create-lot-category-chip:focus {
  outline: none;
}
.create-lot-category-chip:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.lot-attribute-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.lot-attribute-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.lot-attribute-row .create-lot-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-height: 0;
}
.lot-attribute-row .create-lot-category-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
}
.lot-attribute-row .create-lot-category-chips.is-few-options .create-lot-category-chip,
.lot-attribute-row .create-lot-category-chips:has(> .create-lot-category-chip:last-child:nth-child(-n+3)) .create-lot-category-chip {
  flex: 1 1 0;
  min-width: 120px;
}
.lot-attribute-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.lot-attribute-fields + .form-hint,
.form-group .form-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.create-lot-platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}
.create-lot-form #platformGroup[hidden] {
  display: none !important;
}
.lot-attribute-under-category {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.lot-attribute-under-category.is-open {
  display: flex !important;
}
.create-lot-form #lotAttributeGroup[hidden] {
  display: none !important;
}
.create-lot-console-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border-color);
}
.create-lot-console-brands[hidden] {
  display: none !important;
}
.create-lot-console-brand-chip {
  appearance: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.create-lot-console-brand-chip:hover {
  border-color: rgba(167, 139, 250, 0.9);
}
.create-lot-console-brand-chip.is-active {
  background: rgba(124, 58, 237, 0.92);
  border-color: rgba(167, 139, 250, 0.9);
  color: #fff;
  box-shadow: 0 2px 14px rgba(76, 29, 149, 0.35);
}
.create-lot-console-brand-chip:focus {
  outline: none;
}
.create-lot-console-brand-chip:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.95);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .create-lot-console-brands {
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
  }
}
.create-lot-platform-chip {
  appearance: none;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.create-lot-platform-chip:hover {
  border-color: var(--primary-color);
}
.create-lot-platform-chip.is-active {
  background: rgba(124, 58, 237, 0.92);
  border-color: rgba(167, 139, 250, 0.9);
  color: #fff;
  box-shadow: 0 2px 14px rgba(76, 29, 149, 0.35);
}
.create-lot-platform-chip:focus {
  outline: none;
}
.create-lot-platform-chip:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.price-info {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.price-info p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.price-info strong {
  color: var(--text-primary);
  font-weight: 600;
}
.create-lot-price-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}
.create-lot-price-info > span {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.create-lot-price-info #sellerNetAmount {
  color: var(--primary-color, #5c6ef8);
  font-size: 1.05em;
}
.images-upload-container {
  margin-top: 16px;
}
.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.image-upload-item {
  position: relative;
  aspect-ratio: 1;
  border: 3px dashed var(--border-color);
  border-radius: 16px;
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.image-upload-item:hover {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.image-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.image-upload-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
}
.image-upload-placeholder svg {
  width: 32px;
  height: 32px;
}
.image-upload-placeholder span {
  font-size: 14px;
  font-weight: 500;
}
.image-upload-hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary, var(--text-secondary));
  opacity: 0.85;
  margin-top: 2px;
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}
.images-upload-container.is-dragover .image-upload-item,
.images-upload-container.is-dragover {
  outline: 2px dashed var(--primary-color);
  outline-offset: 4px;
  border-radius: 16px;
}
.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.image-preview-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.image-remove-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}
.create-lot-form .form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 24px 24px;
  margin: 16px -24px -24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 0 0 16px 16px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.form-actions .btn {
  min-width: 140px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}
.form-actions .btn-primary {
  background: var(--primary-color, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.form-actions .btn-primary:hover {
  background: #5558e3;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
html[data-theme=dark] .create-lot-form .form-actions {
  background: #0a0a0a;
  border-top-color: #1f1f1f;
}
@media (max-width: 1024px) {
  .create-lot-sidebar {
    width: 240px;
  }
  .create-lot-main {
    padding: 24px 32px;
  }
  .sidebar-header {
    padding: 24px 20px;
  }
}
@media (max-width: 768px) {
  .create-lot-layout {
    flex-direction: column;
  }
  .create-lot-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
  }
  .sidebar-header {
    padding: 20px;
  }
  .lot-sections-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    position: static;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x pan-y;
  }
  .lot-section-link {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .lot-section-link span {
    display: inline;
  }
  .create-lot-main {
    padding: 16px;
    overflow: visible;
    min-height: 0;
  }
  .create-lot-page,
  .create-lot-layout {
    overflow: visible;
    height: auto;
    max-height: none;
  }
  .form-section {
    padding: 16px;
    margin-bottom: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .images-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
  .create-lot-form .form-actions {
    position: static;
  }
}
.blocking-notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.blocking-notification-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.blocking-notification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.blocking-notification-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
}
.blocking-notification-content .modal-close,
#closeBlockingNotificationModal {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-weight: 400 !important;
  overflow: hidden !important;
  color: var(--text-secondary) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}
.blocking-notification-content .modal-close:hover,
#closeBlockingNotificationModal:hover {
  color: var(--text-primary) !important;
  transform: scale(1.1);
}
.blocking-notification-modal.active .blocking-notification-content {
  transform: scale(1);
}
.blocking-notification-content h3 {
  margin: 0 0 16px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.blocking-notification-content p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.blocking-notification-content .btn {
  min-width: 120px;
}
.lot-view-page {
  min-height: calc(100vh - 80px - 100px);
  padding: 40px 0;
  background: var(--bg-primary);
}
.lot-loading,
.lot-error {
  text-align: center;
  padding: 60px 20px;
}
.lot-content {
  max-width: 1200px;
  margin: 0 auto;
}
.lot-view-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin-bottom: 20px;
}
.lot-view-topbar .back-link {
  margin-bottom: 0;
}
.lot-view-topbar .lot-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lot-view-topbar .lot-back-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  margin-left: -1px;
}
.lot-view-topbar .lot-back-btn:hover {
  background: color-mix(in srgb, var(--primary-color) 16%, transparent);
  border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  color: var(--primary-color);
}
.lot-view-topbar .lot-back-btn:active {
  transform: scale(0.94);
  background: color-mix(in srgb, var(--text-primary) 12%, transparent);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--primary-color);
}
.lot-title-wrap {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.35;
}
.lot-meta-info {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.lot-game-badge,
.lot-category-badge,
.lot-platform-badge {
  padding: 5px 11px;
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lot-instant-badge {
  padding: 5px 11px;
  background: color-mix(in srgb, var(--primary-color, #6366f1) 14%, transparent);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color, #6366f1);
  line-height: 1.2;
}
.lot-view-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.lot-view-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.lot-view-gallery {
  min-width: 0;
}
.lot-view-sidebar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.lot-view-description {
  min-width: 0;
}
.lot-view-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.lot-images-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  position: relative;
}
.lot-main-image-wrap {
  position: relative;
  width: 100%;
}
.lot-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.lot-main-image-img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  cursor: zoom-in;
  background: transparent;
}
.lot-image-placeholder {
  color: var(--text-secondary);
  font-size: 16px;
}
.lot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
}
.lot-lightbox[hidden] {
  display: none !important;
}
.lot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.lot-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  user-select: none;
  cursor: zoom-in;
}
.lot-lightbox__close,
.lot-lightbox__prev,
.lot-lightbox__next {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  line-height: 1;
}
.lot-lightbox__close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.lot-lightbox__prev,
.lot-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 32px;
}
.lot-lightbox__prev {
  left: 10px;
}
.lot-lightbox__next {
  right: 10px;
}
.lot-lightbox__close:hover,
.lot-lightbox__prev:hover,
.lot-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.26);
}
.lot-lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
}
@media (max-width: 768px) {
  .lot-lightbox {
    padding: 12px;
  }
  .lot-lightbox__img {
    max-width: 100vw;
    max-height: 86vh;
    border-radius: 0;
  }
  .lot-lightbox__close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }
  .lot-lightbox__prev,
  .lot-lightbox__next {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}
.lot-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lot-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.lot-thumbnail.active {
  border-color: var(--primary-color);
}
.lot-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lot-description-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
}
.lot-description-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.lot-description-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lot-description-text {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}
.lot-description-text p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lot-description-more {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0 auto;
  float: right;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.lot-description-more:hover {
  text-decoration: underline;
}
@media (min-width: 769px) {
  .lot-description-more {
    display: none !important;
  }
}
.lot-description-content.has-more::after {
  content: "";
  display: table;
  clear: both;
}
.order-page-lot-description {
  margin-bottom: 20px;
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.order-page-lot-description p {
  margin: 0;
}
.order-page-lot-description a {
  color: var(--primary-color);
  text-decoration: underline;
  word-break: break-word;
}
.order-page-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.order-view-topbar {
  margin-bottom: 16px;
}
.order-catalog-lot-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
}
.order-catalog-lot-link:hover {
  text-decoration: underline;
}
.order-lot-description-block {
  margin: 0 0 20px;
}
.order-description-heading {
  margin-bottom: 10px;
}
.order-participants-grid--buyer-only {
  grid-template-columns: 1fr;
}
.order-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 30px;
}
.order-page-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
}
.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
  line-height: 1.35;
  word-break: break-word;
  flex-shrink: 0;
}
.order-boost-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  line-height: 1.5;
}
html[data-theme=dark] .order-boost-notice {
  background: rgba(99, 102, 241, 0.12);
}
.order-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
.order-main,
.order-sidebar {
  min-width: 0;
}
.order-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.order-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.order-card__title {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.order-card__subtitle {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.order-participants {
  margin-top: 24px;
}
.order-lot-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.order-lot-images:not([hidden]):has(.order-lot-image:nth-child(2)) {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.order-lot-images:not([hidden]):has(.order-lot-image:nth-child(2)) .order-lot-image:first-child {
  grid-column: 1 / -1;
}
.order-lot-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-secondary, rgba(0, 0, 0, 0.25));
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
}
.order-lot-images:not([hidden]):has(.order-lot-image:nth-child(2)) .order-lot-image:not(:first-child) {
  aspect-ratio: 1;
  max-height: 140px;
  object-fit: cover;
}
.order-lot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}
.order-lot-meta[hidden] {
  display: none !important;
  margin: 0;
}
.order-lot-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}
.order-participants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.order-participant-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.order-participant-name {
  font-weight: 500;
  word-break: break-word;
}
.order-info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  min-width: 0;
  margin-top: 3px;
}
.order-info-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.order-info-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.order-info-value {
  text-align: right;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-actions .order-card__subtitle {
  margin-bottom: 4px;
}
.order-actions #buyerActions,
.order-actions #sellerActions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-actions .btn,
.order-actions a.btn {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.order-lot-images[hidden] {
  display: none !important;
}
.order-rating-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-rating-stars {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.order-rating .rating-star {
  background: none;
  border: none;
  font-size: 36px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}
.order-rating-comment-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  box-sizing: border-box;
  min-height: 96px;
}
.order-rating-display {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.order-rating-display.is-visible {
  display: flex;
}
.order-rating-comment-display {
  font-size: 14px;
  color: var(--text-primary);
  padding: 12px;
  background: var(--input-bg);
  border-radius: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.order-rating-char-count {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
  text-align: right;
}
.order-rating-seller-reply {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-rating-seller-reply-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
}
.order-rating-seller-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-rating-seller-reply-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
}
.order-seller-card.order-card,
.order-seller-card.lot-seller-card {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 16px 20px !important;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
}
.order-seller-card .seller-info {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  margin: 0;
}
.order-seller-card .seller-details {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.order-seller-card .seller-write-row {
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .order-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .order-page-wrap {
    margin: 16px auto 24px;
    padding: 0 12px;
  }
  .order-header {
    margin-bottom: 16px;
  }
  .order-card {
    padding: 16px;
    border-radius: 10px;
  }
  .order-card__title {
    font-size: 17px;
    margin-bottom: 14px;
  }
  .order-card__subtitle {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .order-participants {
    margin-top: 12px;
  }
  .order-participants-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .order-lot-images {
    gap: 8px;
  }
  .order-lot-images:not([hidden]):has(.order-lot-image:nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .order-lot-image {
    max-height: 260px;
    border-radius: 8px;
  }
  .order-lot-images:not([hidden]):has(.order-lot-image:nth-child(2)) .order-lot-image:not(:first-child) {
    max-height: 100px;
  }
  .order-lot-price {
    font-size: 20px;
  }
  .order-sidebar {
    gap: 12px;
  }
  .order-rating .rating-star {
    font-size: 32px;
  }
  .order-seller-card .seller-info {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .order-page-wrap .order-seller-card .seller-write-row {
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  .order-page-wrap {
    margin: 12px auto 20px;
    padding: 0 10px;
  }
  .order-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .order-info-value {
    text-align: left;
  }
}
.lot-view-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lot-price-card,
.lot-seller-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 9px 24px;
  border: 1px solid var(--border-color);
}
.lot-seller-card {
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.lot-discount-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  -webkit-tap-highlight-color: transparent;
}
.lot-discount-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}
.lot-discount-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.lot-discount-card__progress {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
}
.lot-discount-card__progress[hidden] {
  display: none !important;
}
.lot-discount-card__toggle:focus,
.lot-discount-card__toggle:focus-visible,
.lot-discount-card__toggle:active {
  outline: none;
  box-shadow: none;
  background: transparent;
  color: inherit;
}
.lot-discount-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.lot-discount-card__chevron {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
  margin-top: -4px;
}
.lot-discount-card.is-expanded .lot-discount-card__chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.lot-discount-card .lot-seller-discount-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.lot-seller-card .lot-discount-card {
  margin-top: 0;
  padding: 8px 0 0;
  border: none !important;
  border-top: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  position: relative;
  z-index: 3;
  color: var(--text-primary);
}
.lot-seller-card--has-discount .lot-discount-card {
  margin-top: 0;
  padding-top: 8px;
}
.lot-seller-card .lot-discount-card__title,
.lot-seller-card .lot-discount-card .lot-discount-card__progress,
.lot-seller-card .lot-discount-card .seller-discount-panel__label,
.lot-seller-card .lot-discount-card .seller-discount-panel__line,
.lot-seller-card .lot-discount-card .seller-discount-panel__meta,
.lot-seller-card .lot-discount-card .seller-tier-table__td,
.lot-seller-card .lot-discount-card .seller-discount-panel__hint {
  color: var(--text-primary) !important;
}
.lot-seller-card .lot-discount-card .seller-discount-panel__label,
.lot-seller-card .lot-discount-card .seller-discount-muted,
.lot-seller-card .lot-discount-card .seller-tier-table__th,
.lot-seller-card .lot-discount-card .lot-discount-card__chevron {
  color: var(--text-secondary) !important;
  border-color: var(--text-secondary);
}
html[data-theme=dark] .lot-seller-card .lot-discount-card,
html:not([data-theme=dark]) .lot-seller-card .lot-discount-card {
  background: transparent;
  border: none;
}
@media (min-width: 769px) {
  .lot-discount-card__chevron {
    display: none;
  }
  .lot-discount-card__toggle {
    pointer-events: none;
    cursor: default;
    margin-bottom: 12px;
  }
  .lot-discount-card__progress {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .lot-discount-card__toggle {
    margin-bottom: 4px;
    min-height: 28px;
    pointer-events: auto;
    cursor: pointer;
    border: none !important;
    box-shadow: none !important;
    align-items: flex-start;
  }
  .lot-discount-card__title {
    font-size: 14px;
  }
  .lot-discount-card__progress {
    display: block !important;
    font-size: 12px;
    margin-top: 2px;
  }
  .lot-discount-card__progress[hidden] {
    display: none !important;
  }
  .lot-discount-card__chevron {
    display: inline-block;
    margin-top: 4px;
    flex-shrink: 0;
  }
  .lot-discount-card:not(.is-expanded) .seller-tier-table,
  .lot-discount-card:not(.is-expanded) .seller-discount-panel__off,
  .lot-discount-card:not(.is-expanded) .seller-discount-panel__hint,
  .lot-discount-card:not(.is-expanded) .seller-discount-panel__meta {
    display: none !important;
  }
  .lot-discount-card:not(.is-expanded) .seller-discount-panel-inner {
    gap: 0;
  }
  .lot-discount-card:not(.is-expanded):not(:has(#lotDiscountProgress:not([hidden]))) .seller-tier-table {
    display: table !important;
  }
  .lot-discount-card:not(.is-expanded):not(:has(#lotDiscountProgress:not([hidden]))) .seller-tier-table thead,
  .lot-discount-card:not(.is-expanded):not(:has(#lotDiscountProgress:not([hidden]))) .seller-tier-table__row:not(.seller-tier-table__row--current) {
    display: none;
  }
  .lot-seller-card .lot-discount-card {
    margin-top: 0;
    padding: 8px 0 4px;
    background: transparent;
    border: none !important;
  }
  .lot-seller-card--has-discount .lot-discount-card {
    margin-top: 0;
    padding-top: 8px;
  }
  .lot-seller-card.lot-seller-card--has-discount {
    padding-bottom: 12px;
  }
  .lot-seller-card .lot-seller-discount-panel,
  .lot-seller-card .lot-discount-card .lot-seller-discount-panel,
  .lot-seller-card .seller-discount-panel__meta,
  .lot-seller-card .seller-discount-panel-inner,
  .lot-seller-card .lot-discount-card__toggle,
  .lot-seller-card .lot-discount-card__title {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
}
.lot-seller-card {
  padding-left: 10px;
  padding-right: 24px;
  overflow: hidden;
}
.lot-seller-profile {
  position: relative;
  margin: -9px -24px 0 -10px;
  padding: 9px 24px 12px 10px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border-bottom: none;
  box-shadow: none;
  max-width: none;
  box-sizing: border-box;
}
.lot-seller-card:not(.lot-seller-card--has-discount) .lot-seller-profile {
  border-radius: 12px;
  margin-bottom: -9px;
  padding-bottom: 9px;
}
.lot-seller-card-has-bg {
  position: relative;
  color: #fff;
}
.lot-seller-card-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 0;
}
.lot-seller-card--has-discount .lot-seller-profile.lot-seller-card-has-bg {
  padding-bottom: 10px;
}
.lot-seller-card--has-discount .lot-seller-profile.lot-seller-card-has-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  z-index: 2;
  pointer-events: none;
  border-radius: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      color-mix(in srgb, var(--bg-primary) 55%, transparent) 50%,
      var(--bg-primary) 100%);
}
.lot-seller-card-has-bg h3,
.lot-seller-card-has-bg .lot-seller-heading,
.lot-seller-card-has-bg .lot-seller-heading h3,
.lot-seller-card .lot-seller-card-has-bg h3,
.lot-seller-card .lot-seller-card-has-bg .lot-seller-heading h3,
.lot-seller-card-has-bg .profile-level-badge,
.lot-seller-card-has-bg .seller-name,
.lot-seller-card-has-bg .seller-rating,
.lot-seller-card-has-bg .seller-rating-value,
.lot-seller-card-has-bg .seller-write-label,
.lot-seller-card-has-bg .seller-status {
  position: relative;
  z-index: 1;
  color: #fff;
}
.lot-seller-card-has-bg .profile-level-badge {
  color: inherit;
}
.lot-seller-card-has-bg .profile-level-badge--novice {
  color: #d5dae6;
  border-color: rgba(220, 228, 240, 0.75);
  background: rgba(28, 32, 42, 0.92);
}
.lot-seller-card-has-bg .profile-level-badge--seller {
  color: #9ec9ff;
  border-color: rgba(158, 201, 255, 0.85);
}
.lot-seller-card-has-bg .profile-level-badge--trusted {
  color: #7fe8dc;
}
.lot-seller-card-has-bg .profile-level-badge--pro {
  color: #8aefa3;
}
.lot-seller-card-has-bg .profile-level-badge--top {
  color: #d4f86e;
}
.lot-seller-card-has-bg .profile-level-badge--master {
  color: #ffd56a;
}
.lot-seller-card-has-bg .profile-level-badge--expert {
  color: #ffb06a;
}
.lot-seller-card-has-bg .profile-level-badge--elite {
  color: #f0a0ff;
}
.lot-seller-card-has-bg .profile-level-badge--veteran {
  color: #b8c4ff;
}
.lot-seller-card-has-bg .profile-level-badge--champion {
  color: #ffb4d4;
}
.lot-seller-card-has-bg .profile-level-badge--legend {
  color: #ffe9a8;
}
.lot-seller-card-has-bg .profile-level-badge--unlimited {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(200, 220, 255, 0.35),
    0 0 18px rgba(160, 190, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.lot-seller-card-has-bg .seller-info,
.lot-seller-card-has-bg .seller-avatar,
.lot-seller-card-has-bg .seller-actions-row,
.lot-seller-card-has-bg .seller-write-row {
  position: relative;
  z-index: 3;
}
.lot-price-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.lot-price-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.lot-price-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.lot-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  line-height: 1.2;
  cursor: default;
  user-select: none;
}
.lot-rating-badge__star {
  color: #fbbf24;
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.35));
}
.lot-rating-badge__star--empty {
  color: var(--text-secondary, #9ca3af);
  filter: none;
  opacity: 0.6;
}
.lot-rating-badge__value {
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  font-size: 12px;
}
.lot-rating-badge__count {
  color: var(--text-secondary, #9ca3af);
  font-weight: 500;
  font-size: 11.5px;
}
.lot-rating-badge--empty {
  opacity: 0.8;
}
.lot-rating-badge--empty:hover {
  opacity: 1;
}
.lot-price-value {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary-color);
}
.lot-summary-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  flex-wrap: wrap;
}
.lot-summary-rating-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 15px;
  line-height: 1;
  color: var(--primary-color, #6366f1);
}
.lot-summary-rating-stars .seller-stars-empty {
  color: var(--text-secondary, #9ca3af);
  opacity: 0.55;
}
.lot-summary-rating-text {
  font-size: 13px;
  color: var(--text-secondary);
}
.lot-delivery-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.lot-delivery-chip[data-mode=instant] {
  color: var(--primary-color, #6366f1);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
}
.lot-delivery-chip[data-mode=manual] {
  color: var(--text-secondary);
  border-color: var(--border-color);
  background: var(--bg-secondary);
}
.lot-template-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: var(--text-primary);
}
.lot-template-warning[hidden] {
  display: none !important;
}
.lot-template-warning__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #d97706;
}
.lot-template-warning__text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
html[data-theme=dark] .lot-template-warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}
html[data-theme=dark] .lot-template-warning__title {
  color: #fbbf24;
}
.lot-quantity-info {
  margin-bottom: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}
.lot-buy-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.lot-buy-qty__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.lot-buy-qty__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lot-buy-qty__btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lot-buy-qty__btn:hover:not(:disabled) {
  border-color: var(--primary-color, var(--primary));
  color: var(--primary-color, var(--primary));
}
.lot-buy-qty__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.lot-buy-qty__input {
  width: 52px;
  height: 34px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.lot-buy-qty__input::-webkit-outer-spin-button,
.lot-buy-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lot-steam-topup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.lot-steam-topup[hidden] {
  display: none !important;
}
.lot-steam-topup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lot-steam-topup__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.lot-steam-topup__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color, #6366f1);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.lot-steam-topup__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}
.lot-steam-topup__swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 40px;
  color: var(--text-secondary);
  font-size: 14px;
  opacity: 0.65;
  user-select: none;
}
.lot-steam-topup__field,
.lot-steam-topup__login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lot-steam-topup__field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.lot-steam-topup__input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lot-steam-topup__input-wrap:focus-within,
.lot-steam-topup__login input:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}
.lot-steam-topup__input-wrap input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  padding: 10px 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.lot-steam-topup__input-wrap input::-webkit-outer-spin-button,
.lot-steam-topup__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lot-steam-topup__suffix {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.lot-steam-topup__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lot-steam-topup__preset {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}
.lot-steam-topup__preset:hover {
  color: var(--primary-color, #6366f1);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
}
.lot-steam-topup__login input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lot-steam-topup__login input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 500;
}
.lot-steam-topup__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
  text-align: center;
}
@media (max-width: 420px) {
  .lot-steam-topup__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lot-steam-topup__swap {
    display: none;
  }
}
.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;
}
.checkout-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 0 0;
}
.checkout-qty-controls {
  flex-shrink: 0;
}
.lot-price-card .btn-block {
  margin-top: 4px;
}
.lot-seller-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  margin-left: 3px;
}
.lot-seller-heading h3,
.lot-seller-card .lot-seller-heading h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.lot-seller-heading .profile-level-badge {
  flex-shrink: 0;
}
.lot-seller-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-left: 3px;
}
.lot-seller-discount-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  text-align: left;
}
.lot-seller-card .lot-seller-discount-panel,
.lot-discount-card .lot-seller-discount-panel,
.lot-seller-card .lot-discount-card .lot-seller-discount-panel {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}
html[data-theme=dark] .lot-seller-discount-panel {
  border-top-color: var(--border-color);
}
html[data-theme=dark] .lot-seller-card .lot-seller-discount-panel,
html:not([data-theme=dark]) .lot-seller-card .lot-seller-discount-panel {
  border: none !important;
  border-top: none !important;
}
.lot-seller-card .lot-discount-card__toggle {
  margin-bottom: 4px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.seller-discount-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seller-discount-panel-inner--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  width: 100%;
}
.seller-discount-panel-main {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seller-discount-panel-aside {
  flex: 0 1 220px;
  min-width: min(100%, 180px);
  align-self: stretch;
}
.seller-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}
.seller-tier-table__th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.seller-tier-table__td {
  padding: 8px 10px;
  text-align: left;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.seller-tier-table__td-pct {
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}
.seller-tier-table__row--current .seller-tier-table__td {
  background: rgba(59, 130, 246, 0.12);
}
.seller-tier-table tbody tr:last-child .seller-tier-table__td {
  border-bottom: none;
}
.seller-discount-panel__off {
  font-size: 13px;
  font-weight: 600;
  color: var(--discount-color);
}
.seller-discount-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
}
.seller-discount-muted {
  opacity: 0.9;
  font-weight: 400;
}
.seller-discount-panel__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.lot-seller-profile.lot-seller-card-has-bg .seller-write-row {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}
.lot-seller-profile.lot-seller-card-has-bg .seller-write-row:hover {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.lot-seller-profile.lot-seller-card-has-bg .seller-status-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}
.lot-seller-profile.lot-seller-card-has-bg .seller-status-offline {
  color: rgba(255, 255, 255, 0.75) !important;
}
.lot-seller-profile.lot-seller-card-has-bg .seller-status-online {
  color: #4ade80 !important;
}
.seller-info {
  display: flex;
  align-items: center;
  gap: 5px;
}
.order-page-wrap .order-seller-card.lot-seller-card {
  margin: 0 !important;
  padding: 16px !important;
  width: 100%;
  max-width: 100%;
}
.order-page-wrap .order-seller-card .seller-info {
  margin-left: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
}
.order-page-wrap .order-seller-card .seller-write-row {
  margin-left: auto;
}
.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.seller-avatar-default {
  background:
    linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color));
}
.seller-avatar-gradient1 {
  background:
    linear-gradient(
      135deg,
      #1e1b4b,
      #4c1d95);
}
.seller-avatar-gradient2 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #f97316);
}
.seller-avatar-gradient3 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
}
.lot-seller-card-bg-gradient1 {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #312e81) !important;
}
.lot-seller-card-bg-gradient1::before {
  background: rgba(0, 0, 0, 0.35);
}
.lot-seller-card-bg-gradient2 {
  background:
    linear-gradient(
      135deg,
      #312e81,
      #db2777) !important;
}
.lot-seller-card-bg-gradient2::before {
  background: rgba(0, 0, 0, 0.35);
}
.lot-seller-card-bg-gradient3 {
  background:
    linear-gradient(
      135deg,
      #065f46,
      #0ea5e9) !important;
}
.lot-seller-card-bg-gradient3::before {
  background: rgba(0, 0, 0, 0.35);
}
.seller-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: calc(100% - 260px);
  overflow: hidden;
}
.seller-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-name-long {
  font-size: 13px;
}
.seller-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lot-seller-card .seller-rating {
  margin-left: 0;
  padding-left: 0;
}
.seller-status {
  font-size: 13px;
  font-weight: 500;
}
.seller-status-online {
  color: var(--success-color, #22c55e);
}
.seller-status-offline {
  color: var(--text-secondary, #9ca3af);
}
.seller-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.seller-write-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #0a0a0a;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid #0a0a0a;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  margin-left: 0;
  margin-right: 0;
  width: fit-content;
  flex-shrink: 0;
  min-width: 160px;
}
.seller-write-row:hover {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.seller-write-label {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.lot-seller-card .seller-write-row .seller-status-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lot-seller-card .seller-write-row .seller-status-offline {
  color: rgba(255, 255, 255, 0.75);
}
.lot-seller-card .seller-write-row .seller-status-online {
  color: #4ade80;
}
.seller-favorite-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary, #1e1e1e);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}
.seller-favorite-btn:hover {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-secondary, #1e1e1e);
}
.seller-favorite-btn:active {
  transform: scale(0.96);
}
.seller-favorite-btn__icon {
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease;
}
.seller-favorite-btn.is-active {
  border-color: rgba(255, 91, 125, 0.65);
  color: #ff5b7d;
  background: rgba(255, 91, 125, 0.14);
}
.lot-image-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}
.lot-image-favorite-btn .seller-favorite-btn__icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    filter 0.2s ease;
}
.lot-image-favorite-btn:not(.is-active),
.lot-image-favorite-btn:not(.is-active):hover {
  background: color-mix(in srgb, var(--bg-secondary, #1e1e1e) 30%, transparent);
  border-color: transparent;
  color: #fff;
}
.lot-image-favorite-btn.is-active {
  border-color: transparent;
  color: #ff5b7d;
  background: color-mix(in srgb, #ff5b7d 20%, transparent);
}
.lot-image-favorite-btn.is-active .seller-favorite-btn__icon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
html:not([data-theme=dark]) .lot-image-favorite-btn:not(.is-active),
html:not([data-theme=dark]) .lot-image-favorite-btn:not(.is-active):hover {
  color: var(--text-primary, #1f2335);
  background: color-mix(in srgb, #ffffff 85%, transparent);
  border-color: color-mix(in srgb, var(--border-color) 70%, transparent);
}
html:not([data-theme=dark]) .lot-image-favorite-btn:not(.is-active) .seller-favorite-btn__icon {
  filter: none;
}
.seller-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-tertiary, #2a2a2a);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.seller-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.seller-status-dot-online {
  background: var(--success-color, #22c55e);
}
.seller-status-dot-offline {
  background: var(--text-secondary, #9ca3af);
}
.seller-status-badge:has(.seller-status-offline) .seller-status-dot {
  display: none;
}
.seller-username {
  font-size: 14px;
  color: var(--text-secondary);
}
@media (max-width: 968px) {
  .lot-view-left {
    display: contents;
  }
  .lot-view-body {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "sidebar" "desc";
  }
  .lot-view-gallery {
    grid-area: gallery;
  }
  .lot-view-sidebar {
    grid-area: sidebar;
    grid-column: auto;
    grid-row: auto;
  }
  .lot-view-description {
    grid-area: desc;
  }
}
@media (max-width: 768px) {
  .lot-view-page {
    padding: 0 0 24px;
    background: var(--bg-primary);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .lot-view-page > .container,
  body .lot-view-page > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .lot-view-page .lot-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .lot-view-topbar {
    margin: 0 0 10px;
    padding: 8px 12px 10px;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .lot-view-topbar .back-link,
  .lot-view-topbar .lot-back-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .lot-view-topbar .lot-back-btn svg {
    width: 17px;
    height: 17px;
  }
  .lot-meta-info {
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
  }
  .lot-game-badge,
  .lot-category-badge,
  .lot-platform-badge,
  .lot-instant-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: none;
    border-radius: 999px;
  }
  .lot-game-badge,
  .lot-category-badge,
  .lot-platform-badge {
    background: color-mix(in srgb, var(--text-primary) 7%, transparent);
    color: var(--text-secondary);
  }
  .lot-moderation-banner {
    margin: 0 12px 8px;
  }
  .lot-view-body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "sidebar" "desc";
    gap: 0;
    min-width: 0;
    width: 100%;
  }
  .lot-view-gallery,
  .lot-view-sidebar,
  .lot-view-description {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .lot-view-sidebar {
    gap: 10px;
    padding: 0;
    margin: 0;
  }
  .lot-view-description {
    padding: 0 12px;
    margin-top: 12px;
  }
  .lot-images-section {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lot-main-image-wrap {
    width: 100%;
    max-width: 520px;
    margin: 10px auto 8px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .lot-main-image {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: none;
    margin: 0 !important;
    padding: 0;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lot-main-image-img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    flex: 0 0 auto;
    display: block;
    border-radius: 0 !important;
    cursor: zoom-in;
    background: transparent;
  }
  .lot-image-favorite-btn {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .lot-thumbnails {
    gap: 6px;
    padding: 4px 12px 0;
    justify-content: center;
    max-width: 100%;
  }
  .lot-thumbnail {
    width: 44px;
    height: 44px;
  }
  .lot-price-card {
    padding: 10px 14px 12px;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .lot-price-main {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 4px;
    gap: 0;
  }
  .lot-price-header-row {
    justify-content: flex-start;
    margin-bottom: 4px;
  }
  .lot-price-label {
    display: none;
  }
  .lot-price-value {
    font-size: 28px;
    line-height: 1.1;
    color: var(--primary-color);
  }
  .lot-title-wrap {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
  }
  .lot-summary-rating {
    margin-bottom: 8px;
  }
  .lot-delivery-chip {
    margin-bottom: 8px;
    font-size: 11px;
    padding: 4px 9px;
  }
  .lot-quantity-info {
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .lot-price-card .btn-block {
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
    border-radius: 12px;
  }
  .lot-seller-card,
  .lot-description-section {
    padding: 12px 14px;
    border-radius: 14px;
  }
  .lot-view-description {
    padding: 0 !important;
    margin: 8px 0 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .lot-view-description .lot-description-section,
  .lot-description-section {
    margin: 0 !important;
    padding: 8px 14px 10px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .lot-description-content,
  .lot-description-text,
  .lot-description-text p {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
  .lot-description-content {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }
  .lot-description-more {
    float: none;
    align-self: flex-end;
    margin: 8px 0 0;
    max-width: 100%;
  }
  .lot-content .lot-reviews-section {
    margin: 10px 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }
  html[data-theme=dark] .lot-content .lot-reviews-section .profile-reviews-wrap {
    display: block;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
  }
  html:not([data-theme=dark]) .lot-content .lot-reviews-section .profile-reviews-wrap {
    display: block;
    margin: 0 14px;
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .lot-content .lot-reviews-section .profile-reviews-header.sales-header,
  .lot-content .lot-reviews-section .sales-header.profile-reviews-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    margin: 0 14px 10px;
    min-height: 36px;
  }
  .lot-content .lot-reviews-section .profile-reviews-list {
    padding-left: 14px;
    padding-right: 14px;
  }
  .lot-content .lot-reviews-section .profile-reviews-header-left {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
  }
  .lot-content .lot-reviews-section .profile-reviews-header .section-title {
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
  }
  .lot-content .lot-reviews-section .profile-reviews-toggle-btn.btn {
    align-self: center;
    margin: 0;
  }
  .lot-seller-card {
    margin: 0 19px;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 14px !important;
    border: 1px solid var(--border-color) !important;
  }
  .lot-seller-profile {
    margin: -12px -14px 0;
    padding: 12px 14px 12px;
    border-radius: 14px 14px 0 0;
  }
  .lot-seller-card:not(.lot-seller-card--has-discount) .lot-seller-profile {
    border-radius: 14px;
    margin-bottom: -12px;
    padding-bottom: 12px;
  }
  .lot-seller-card--has-discount .lot-seller-profile.lot-seller-card-has-bg {
    padding-bottom: 10px;
  }
  .lot-seller-card--has-discount .lot-seller-profile.lot-seller-card-has-bg::after {
    height: 15px;
  }
  .lot-seller-heading {
    margin-bottom: 10px;
    margin-left: 0;
    gap: 6px;
  }
  .lot-seller-heading h3,
  .lot-seller-card .lot-seller-heading h3 {
    font-size: 15px;
    margin: 0;
  }
  .lot-seller-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    margin-left: 0;
  }
  .lot-description-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .lot-description-content {
    font-size: 14px;
  }
  .lot-seller-card .seller-info,
  .lot-seller-card .seller-info.seller-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 10px;
  }
  .lot-seller-card .seller-details {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  .lot-seller-card .seller-actions-row {
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
  }
  .lot-seller-card .seller-write-row {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
  }
  .lot-seller-card .seller-write-label {
    font-size: 13px;
  }
  .lot-seller-card .seller-status-badge {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 7px;
  }
  .lot-content .lot-reviews-section {
    margin: 10px 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .lot-seller-card,
  .lot-discount-card,
  .lot-discount-card__toggle,
  .lot-discount-card__title,
  .lot-discount-card__chevron {
    -webkit-tap-highlight-color: transparent !important;
  }
  .lot-discount-card__toggle:active,
  .lot-discount-card__toggle:focus {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }
}
@media (max-width: 480px) {
  .lot-main-image-wrap {
    width: 100%;
    max-width: 100%;
    margin: 8px auto 6px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .lot-main-image {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: none;
    margin: 0 !important;
    padding: 0;
  }
  .lot-price-value {
    font-size: 28px;
  }
  .lot-title-wrap {
    font-size: 15px;
  }
  .lot-image-favorite-btn {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
  }
}
.lot-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lot-card-link:hover {
  transform: translateY(-4px);
}
.lot-card-link:hover .lot-card {
  box-shadow: var(--shadow-lg);
}
.lot-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-separator-row {
  height: 1px;
}
.game-separator {
  padding: 0 !important;
  height: 1px;
  background: var(--border-color);
  border: none;
}
.game-header-row {
  background: transparent;
}
.viewed-lots-section,
.viewed-lots-section > .container {
  overflow: visible;
}
.viewed-lots-section .viewed-lots-grid {
  overflow: visible;
}
.viewed-lots-section .viewed-lots-grid {
  margin-left: 20px;
}
.viewed-lots-section .section-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px 16px;
  border-bottom: none !important;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.viewed-lots-section .section-title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.viewed-lots-section .viewed-lots-toggle-btn {
  flex-shrink: 0;
  margin-left: 0;
}
.viewed-lots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  align-items: flex-start;
}
.viewed-lots-section .viewed-lots-grid .category-lot-card {
  flex: 0 1 200px !important;
  max-width: 200px !important;
  min-width: 132px;
}
.viewed-lots-section .viewed-lots-grid .category-lot-link {
  border-radius: 12px;
}
.viewed-lots-section .viewed-lots-grid .category-lot-body {
  padding: 8px 10px 10px;
  gap: 2px;
}
.viewed-lots-section .viewed-lots-grid .category-lot-price-row {
  font-size: 18px;
}
.viewed-lots-section .viewed-lots-grid .category-lot-title {
  font-size: 12px;
  line-height: 1.28;
}
.viewed-lots-section .viewed-lots-grid .category-lot-meta {
  font-size: 10px;
  margin-top: 2px;
}
@media (max-width: 1200px) {
  .viewed-lots-section .viewed-lots-grid .category-lot-card {
    flex: 0 1 180px !important;
    max-width: 180px !important;
  }
}
@media (max-width: 900px) {
  .viewed-lots-section .viewed-lots-grid .category-lot-card {
    flex: 0 1 165px !important;
    max-width: 165px !important;
  }
}
.viewed-lots-toggle-btn {
  margin-left: auto;
  min-width: 0;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  opacity: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.viewed-lots-toggle-btn:hover {
  background: transparent;
  border: none;
  color: var(--text-primary);
  opacity: 1;
}
html:not([data-theme=dark]) .viewed-lots-toggle-btn {
  color: #4b5563;
  border: none;
  background: transparent;
  opacity: 1;
}
html:not([data-theme=dark]) .viewed-lots-toggle-btn:hover {
  color: #111827;
  border: none;
  background: transparent;
}
@media (max-width: 768px) {
  .viewed-lots-section > .container {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }
  .viewed-lots-section .section-header {
    padding-left: 0;
    margin-left: 0;
  }
  .viewed-lots-section .section-title {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
  }
  .viewed-lots-section .viewed-lots-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 0 4px;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0 12px;
  }
  .viewed-lots-section .viewed-lots-grid .category-lot-link:hover,
  .viewed-lots-section .viewed-lots-grid .category-lot-link:active {
    transform: none;
  }
  .viewed-lots-section .viewed-lots-grid::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent;
  }
  .viewed-lots-section .viewed-lots-grid::-webkit-scrollbar-thumb,
  .viewed-lots-section .viewed-lots-grid::-webkit-scrollbar-track {
    display: none !important;
    background: transparent;
  }
  .viewed-lots-section .viewed-lots-grid .category-lot-card {
    flex: 0 0 min(158px, calc(38vw - 8px)) !important;
    min-width: 128px;
    max-width: 175px !important;
    scroll-snap-align: start;
  }
  .favorites-page-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
  }
  .favorites-page-list .favorite-lot-item.category-lot-card {
    min-width: 0;
  }
  .favorites-page-list .category-lot-card {
    flex: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
}
.game-header {
  padding: 12px 20px !important;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  display: table-cell;
  vertical-align: middle;
  border-radius: 0;
  background: var(--bg-primary);
  transition: background 0.15s, border-color 0.15s;
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.game-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.clickable-game-header {
  transition: background 0.2s;
  user-select: none;
}
.clickable-game-header:hover {
  background: var(--bg-secondary) !important;
  border-color: var(--primary-color);
}
.game-header-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: center;
}
.game-header-name {
  font-size: 15px;
  text-align: center;
  word-break: break-word;
  max-width: 70%;
  min-width: 0;
}
.game-header-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  text-align: center;
  white-space: normal;
  max-width: 100%;
  line-height: 1.3;
}
.game-header-category {
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}
.game-header-category:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
@media (max-width: 768px) {
  .game-header {
    padding: 10px 12px !important;
  }
  .game-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .game-header-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }
  .game-header-name {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.35;
  }
  .game-header-count {
    font-size: 12px;
    padding: 4px 10px;
    max-width: calc(100% - 8px);
  }
  .sales-table td.game-header {
    white-space: normal;
  }
}
.sales-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.sales-table thead th {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 12px 16px;
}
.sales-table th:nth-child(1),
.sales-table td:nth-child(1) {
  width: 55%;
  max-width: 55%;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}
.sales-table th:nth-child(2),
.sales-table td:nth-child(2),
.sales-table th:nth-child(3),
.sales-table td:nth-child(3) {
  width: 13%;
  max-width: 13%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-table th:nth-child(4),
.sales-table td:nth-child(4) {
  width: 19%;
  max-width: 19%;
  min-width: 190px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}
.sales-table tbody tr.sales-lot-row td:nth-child(4) {
  padding-right: 12px;
}
.sales-table .admin-delete-lot-btn {
  padding: 5px 10px;
  min-width: 74px;
}
.sales-table tbody tr.sales-lot-row {
  cursor: pointer;
  transition: background 0.2s;
}
.sales-table tbody tr.sales-lot-row td {
  padding-left: 30px;
  padding-top: 16px;
  padding-bottom: 16px;
  vertical-align: middle;
}
.sales-table tbody tr.sales-lot-row:hover {
  background: var(--bg-secondary);
}
.sales-table.sales-table--no-status th:nth-child(4),
.sales-table.sales-table--no-status td:nth-child(4),
.sales-table.sales-table--guest th:nth-child(4),
.sales-table.sales-table--guest td:nth-child(4) {
  display: none !important;
}
.sales-lot-title-wrap {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sales-lot-cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sales-lot-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary, rgba(127, 127, 127, 0.15));
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}
.sales-lot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sales-lot-thumb--empty {
  background:
    linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.2),
      rgba(99, 102, 241, 0.05));
}
.sales-lot-title-wrap .status-badge {
  margin-right: 8px;
  vertical-align: middle;
}
.sales-lot-qty-cell {
  white-space: nowrap;
  text-align: right !important;
  vertical-align: middle;
}
.sales-lot-qty-cell .sales-lot-qty {
  display: inline-block;
  min-width: 1.5em;
  text-align: right;
  vertical-align: middle;
}
.sales-lot-row .owner-delete-lot-btn {
  margin-left: 12px;
  vertical-align: middle;
}
.game-lots-modal-content {
  max-width: 900px;
  width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.confirm-modal-content {
  max-width: 420px;
  width: 90vw;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-lg);
}
#adminDeleteLotConfirmModal {
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
}
#adminDeleteLotReason {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
#adminDeleteLotReason:focus {
  outline: none;
  border-color: var(--primary-color);
}
#adminDeleteLotReason::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.game-lots-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.filter-btn {
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.game-lots-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.game-lot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.game-lot-item:hover {
  background: var(--bg-secondary);
}
.game-lot-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.game-lot-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.game-lot-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.game-lot-category {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}
.game-lot-price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
}
.lot-actions {
  display: flex;
  gap: 8px;
}
.category-filters {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}
.category-filters-header {
  margin-bottom: 16px;
}
.category-filters-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.category-filters-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.category-filter-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.category-filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}
.category-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.my-game-lots-page {
  min-height: calc(100vh - 80px);
  background: var(--bg-primary);
  padding: 0;
}
.my-game-lots-container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}
.my-game-lots-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}
.my-game-lots-sidebar .sidebar-header {
  padding: 16px 20px 0;
  flex-shrink: 0;
}
.my-game-lots-sidebar .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.my-game-lots-sidebar .back-link:hover {
  color: var(--primary-color);
}
.sidebar-game-info {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}
.my-game-lots-sidebar .sidebar-game-info {
  border-bottom: none;
}
.my-game-lots-sidebar .sidebar-categories:has(.category-filter-btn) {
  border-top: 1px solid var(--border-color);
}
.my-game-lots-sidebar .game-subtitle {
  display: none;
}
.my-game-lots-sidebar:has(.category-filter-btn) .game-subtitle {
  display: block;
}
.my-game-lots-sidebar .sidebar-categories:not(:has(.category-filter-btn)) {
  display: none;
}
.sidebar-game-info.sidebar-game-info--has-bg {
  border-bottom-color: transparent;
}
.sidebar-game-info.sidebar-game-info--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--sidebar-game-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(1px) saturate(1.1);
  pointer-events: none;
}
.sidebar-game-info.sidebar-game-info--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      135deg,
      rgba(1, 4, 9, 0.78) 0%,
      rgba(1, 4, 9, 0.58) 55%,
      rgba(1, 4, 9, 0.7) 100%);
  pointer-events: none;
}
.sidebar-game-info > * {
  position: relative;
  z-index: 1;
}
.sidebar-game-info h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}
.sidebar-game-info .game-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.sidebar-game-info h2 .game-name {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.25;
}
.sidebar-game-info h2 .game-name-link {
  display: block;
  margin-top: 4px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.sidebar-game-info h2 .game-name-link .game-name {
  margin-top: 0;
  transition: color 0.15s ease;
}
.sidebar-game-info h2 .game-name-link:hover .game-name {
  color: var(--primary-color);
}
.sidebar-game-info h2 .game-name-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}
.sidebar-game-info.sidebar-game-info--has-bg h2,
.sidebar-game-info.sidebar-game-info--has-bg .game-name,
.sidebar-game-info.sidebar-game-info--has-bg .game-subtitle {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.sidebar-game-info.sidebar-game-info--has-bg h2 {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: none;
}
.sidebar-game-info.sidebar-game-info--has-bg .game-subtitle {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: none;
}
.sidebar-game-info.sidebar-game-info--has-bg .game-name-link:hover .game-name {
  color: #c7d2fe;
}
.my-game-lots-sidebar .sidebar-categories {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
}
.my-game-lots-sidebar .sidebar-categories .category-filters {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 16px 16px;
  margin: 0;
}
.my-game-lots-sidebar .category-filters-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.my-game-lots-sidebar .category-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.my-game-lots-sidebar .category-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.my-game-lots-sidebar .category-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.my-game-lots-sidebar .category-filter-btn .count {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  margin-left: 8px;
}
.my-game-lots-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.my-game-lots-sidebar .sidebar-footer .btn-create-lot {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.my-game-lots-main {
  flex: 1;
  padding: 32px 40px;
  overflow: visible;
}
.my-game-lots-main .lots-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.my-game-lots-main .lots-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.my-game-lots-main .lots-count {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.my-game-lots-main.has-no-lots .lots-grid {
  display: none;
}
.my-game-lots-main .no-lots-message {
  text-align: center;
  padding: 48px 24px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.my-game-lots-main .no-lots-message h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  color: var(--text-primary);
}
.my-game-lots-main .no-lots-message p {
  margin: 0;
  color: var(--text-secondary);
}
.my-game-lots-main .no-lots-icon {
  color: var(--text-secondary);
  opacity: 0.5;
}
.my-game-lots-main .loading-message,
.my-game-lots-main .error-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}
.my-game-lots-page .lots-grid,
.my-game-lots-content .lots-grid,
.my-game-lots-main .lots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.my-game-lots-page #lotsContainer,
.my-game-lots-content #lotsContainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 0;
}
.my-game-lots-page .lot-card-link {
  display: block;
  width: 100%;
  min-width: 0;
}
.my-game-lots-page .lot-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.my-game-lots-page .lot-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.my-game-lots-page .lot-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
.my-game-lots-page .lot-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.my-game-lots-page .lot-price-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.my-game-lots-page .lot-price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.my-game-lots-page .lot-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-game-lots-page .lot-title.long-title {
  font-size: 13px;
}
.my-game-lots-page .lot-bottom {
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.my-game-lots-page .lot-meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.my-game-lots-page .lot-category,
.my-game-lots-page .lot-quantity {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 7px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.25;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-game-lots-page .lot-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 0;
  width: 100%;
  flex-basis: auto;
}
.my-game-lots-page .lot-actions-row .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
}
.my-game-lots-page .lot-moderation-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(92, 110, 248, 0.15);
  color: var(--primary-color);
}
.my-game-lots-page .lot-moderation-badge--rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.my-game-lots-page .lot-card.lot-card--has-bg {
  background: transparent;
}
.my-game-lots-page .lot-card.lot-card--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--lot-card-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(1px) saturate(1.08);
  pointer-events: none;
}
.my-game-lots-page .lot-card.lot-card--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      160deg,
      rgba(1, 4, 9, 0.72) 0%,
      rgba(1, 4, 9, 0.55) 45%,
      rgba(1, 4, 9, 0.78) 100%);
  pointer-events: none;
}
.my-game-lots-page .lot-card.lot-card--has-bg.lot-card--pending::after {
  background:
    linear-gradient(
      160deg,
      rgba(92, 110, 248, 0.35) 0%,
      rgba(1, 4, 9, 0.7) 100%);
}
.my-game-lots-page .lot-card.lot-card--has-bg.lot-card--rejected::after {
  background:
    linear-gradient(
      160deg,
      rgba(239, 68, 68, 0.32) 0%,
      rgba(1, 4, 9, 0.72) 100%);
}
.my-game-lots-page .lot-card.lot-card--has-bg.lot-card--inactive::after {
  background:
    linear-gradient(
      160deg,
      rgba(251, 191, 36, 0.28) 0%,
      rgba(1, 4, 9, 0.72) 100%);
}
.my-game-lots-page .lot-card.lot-card--has-bg > * {
  position: relative;
  z-index: 1;
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-price-label,
.my-game-lots-page .lot-card.lot-card--has-bg .lot-title,
.my-game-lots-page .lot-card.lot-card--has-bg .lot-quantity {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-price-label,
.my-game-lots-page .lot-card.lot-card--has-bg .lot-quantity {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: none;
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-price-value {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-category {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-actions-row .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-actions-row .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-moderation-badge {
  background: rgba(92, 110, 248, 0.35);
  color: #fff;
}
.my-game-lots-page .lot-card.lot-card--has-bg .lot-moderation-badge--rejected {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}
.my-game-lots-page .lot-card.lot-card--pending:not(.lot-card--has-bg) {
  background: rgba(92, 110, 248, 0.12);
}
.my-game-lots-page .lot-card.lot-card--rejected:not(.lot-card--has-bg) {
  background: rgba(239, 68, 68, 0.1);
}
.my-game-lots-page .lot-card.lot-card--inactive:not(.lot-card--has-bg) {
  background: rgba(251, 191, 36, 0.15);
}
@media (min-width: 1201px) {
  .my-game-lots-page {
    padding: 12px 20px 24px;
    box-sizing: border-box;
  }
  .my-game-lots-container {
    max-width: min(1400px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 100px);
    position: relative;
  }
  .my-game-lots-sidebar {
    --mgl-side-gap: 14px;
    --mgl-side-w: min(280px, max(200px, calc((100vw - 1400px) / 2 - 20px - var(--mgl-side-gap))));
    width: var(--mgl-side-w);
    flex: 0 0 var(--mgl-side-w);
    margin-left: calc(-1 * var(--mgl-side-w) - var(--mgl-side-gap));
    margin-right: var(--mgl-side-gap);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    top: 90px;
    height: calc(100vh - 114px);
    box-sizing: border-box;
  }
  .my-game-lots-main {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width: 1200px) {
  .my-game-lots-page {
    padding: 12px 16px 20px;
    box-sizing: border-box;
  }
  .my-game-lots-container {
    flex-direction: column;
    max-width: 100%;
    gap: 16px;
  }
  .my-game-lots-sidebar {
    width: 100%;
    height: auto;
    position: static;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
  }
  .sidebar-categories {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .my-game-lots-main {
    padding: 24px 20px;
  }
  .lots-title {
    font-size: 24px;
  }
  .my-game-lots-page .lots-grid,
  .my-game-lots-content .lots-grid,
  .my-game-lots-page #lotsContainer,
  .my-game-lots-content #lotsContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .my-game-lots-main {
    padding: 20px 16px;
  }
  .lots-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .my-game-lots-main .lots-title {
    font-size: 20px;
    min-width: 0;
  }
  .my-game-lots-main .lots-count {
    flex-shrink: 0;
  }
  .my-game-lots-main.has-no-lots .lots-header {
    display: none;
  }
  .my-game-lots-page .lots-grid,
  .my-game-lots-content .lots-grid,
  .my-game-lots-page #lotsContainer,
  .my-game-lots-content #lotsContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .sidebar-categories .category-filters-buttons button {
    font-size: 13px;
    padding: 8px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  .lot-view-page > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
  p,
  .text-secondary {
    font-size: 13px;
  }
  .header {
    padding: 0;
  }
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }
  .logo-text {
    font-size: 18px;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .main-nav {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: 8px;
    z-index: auto;
    box-shadow: none;
    overflow: visible;
    transform: none;
  }
  .main-nav.active {
    display: flex;
  }
  .header .help-menu-container {
    position: relative;
    z-index: 10001;
  }
  .header .help-menu-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  .header .help-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    margin-top: 0;
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
    min-width: 170px;
    width: 170px;
    max-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .header .help-menu-container.help-open .help-menu-dropdown {
    display: flex !important;
  }
  .header .help-menu-item {
    padding: 12px 16px 12px 12px;
    font-size: 14px;
    width: auto;
    border: none;
    border-radius: 0;
    margin: 0;
  }
  .header .help-menu-item:hover {
    background: var(--bg-tertiary);
    border: none;
  }
  .mobile-menu-search-games {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: none;
  }
  .mobile-menu-search-games:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  .mobile-menu-search-games svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .mobile-menu-balance {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .mobile-menu-balance:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
  }
  .mobile-menu-balance .balance-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
  }
  .mobile-menu-balance .balance-amount {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
  }
  .mobile-menu-settings {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: none;
  }
  .mobile-menu-settings:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  .mobile-menu-settings svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .mobile-menu-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  .mobile-menu-auth .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-link {
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }
  .nav-link:hover {
    background: var(--bg-tertiary);
  }
  .header-actions {
    display: flex;
    gap: 8px;
  }
  .header-actions .btn {
    padding: 0 12px;
    font-size: 13px;
    min-height: 44px;
    height: 44px;
    max-height: 44px;
    box-sizing: border-box;
  }
  .settings-icon-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }
  .user-menu-container {
    display: flex;
    gap: 4px;
  }
  .user-menu-container .favorites-btn {
    margin-left: 8px;
    margin-right: 10px;
  }
  .header-message-indicator {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
    width: 100%;
  }
  .header-content {
    flex-wrap: nowrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }
  .header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
    transform: translateY(2px);
  }
  .header .main-nav {
    gap: 12px;
    transform: none;
  }
  .header .help-menu-btn {
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
  }
  .header .logo a {
    display: inline-flex;
    align-items: center;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .btn {
    margin-left: 2px;
  }
  .settings-icon-btn,
  .header-message-indicator {
    margin-left: 4px;
  }
  .logo-text {
    font-size: 16px;
  }
  .logo-img {
    width: 30px;
    height: 30px;
  }
  @media (max-width: 480px) {
    .header .header-content {
      gap: 6px;
      padding-left: 4px;
      padding-right: 4px;
    }
    .header .header-left {
      gap: 6px;
      min-width: 0;
      margin-left: 0;
      transform: translateY(2px);
    }
    .header .logo-text {
      font-size: 14px;
    }
    .header .logo-img {
      width: 28px;
      height: 28px;
    }
    .header .help-menu-btn {
      padding: 4px 6px;
      font-size: 12px;
      white-space: nowrap;
    }
    .header .header-actions {
      gap: 6px;
      margin-right: 0;
      flex-shrink: 0;
    }
    .header .user-menu-container {
      gap: 4px;
    }
    .header .user-menu-container .favorites-btn {
      margin-left: 6px;
      margin-right: 8px;
    }
    .header .header-actions .btn {
      padding: 0 8px;
      font-size: 12px;
      min-height: 44px;
      height: 44px;
      max-height: 44px;
      box-sizing: border-box;
      white-space: nowrap;
    }
    .header .settings-icon-btn,
    .header .header-message-indicator {
      width: 32px;
      height: 32px;
      min-width: 32px;
    }
  }
  .hero {
    padding: 14px 0 10px;
  }
  body.home-page > .hero {
    padding: 4px 0 2px;
  }
  body.home-page .hero-banners {
    margin-top: 4px;
    margin-bottom: 2px;
  }
  body.home-page .main-content-highlight-wrap {
    margin-top: 10px;
  }
  .hero-title {
    font-size: clamp(13px, 4.2vw, 26px);
    white-space: nowrap;
    line-height: 1.2;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .rules-section,
  .rules-content {
    padding: 16px 0;
  }
  .new-games-section,
  .popular-games-section,
  .games-section {
    padding: 24px 0;
  }
  .search-box,
  .category-search-wrapper {
    flex-direction: column;
  }
  .search-input,
  .category-search-input {
    width: 100%;
  }
  .search-btn {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-item {
    padding: 12px 8px;
  }
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .game-card {
    padding: 12px;
  }
  .new-game-card {
    padding: 12px;
  }
  .main-content-highlight-wrap {
    margin: 20px auto 20px;
    gap: 12px;
    max-width: calc(100% - 24px);
  }
  body.home-page .main-content-highlight-wrap {
    margin: 8px auto 16px;
  }
  .main-content-highlight-wrap > section {
    padding: 12px 8px;
  }
  .main-content-highlight-wrap .game-card:hover,
  .main-content-highlight-wrap .game-card:focus-visible,
  .main-content-highlight-wrap .new-game-card:hover,
  .main-content-highlight-wrap .new-game-card:focus-visible {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
  }
  .main-content-highlight-wrap .new-games-section .new-games-more-btn {
    display: none !important;
  }
  .main-content-highlight-wrap .new-games-section .new-games-grid {
    display: none;
  }
  .main-content-highlight-wrap .new-games-section .new-games-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .new-games-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    padding-left: 0;
    padding-right: 0;
    margin-left: -10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }
  .new-games-row::-webkit-scrollbar {
    display: none;
  }
  .new-games-row .new-game-card {
    flex: 0 0 min(180px, calc(50% - 20px));
    min-width: 140px;
    touch-action: auto;
  }
  .new-games-row .new-game-card .game-title {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .main-content-highlight-wrap .popular-games-section #popularGamesGrid,
  .main-content-highlight-wrap .popular-games-section #recommendedGamesGrid {
    display: none;
  }
  .main-content-highlight-wrap .popular-games-section .popular-games-rows,
  .main-content-highlight-wrap .popular-games-section #recommendedGamesRows {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .main-content-highlight-wrap .popular-games-section #recommendedGamesMoreBtn {
    display: none !important;
  }
  .popular-games-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    padding-left: 0;
    padding-right: 0;
    margin-left: -10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }
  .popular-games-row::-webkit-scrollbar {
    display: none;
  }
  .popular-games-row .game-card {
    flex: 0 0 min(180px, calc(50% - 20px));
    min-width: 140px;
    touch-action: auto;
  }
  .popular-games-row .game-card .game-title,
  .popular-games-row .new-game-card .game-title {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .games-section .games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    gap: 0;
  }
  body.home-page #allGamesSection #gamesGrid.all-games-catalog {
    display: block;
    column-count: 2;
    column-gap: 12px;
    column-fill: balance;
  }
  body.home-page #allGamesSection #gamesGrid .game-card,
  body.home-page #allGamesSection #gamesGrid .game-card[data-has-bg],
  .games-section .game-card {
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    margin-bottom: 5px;
  }
  body.home-page #allGamesSection #gamesGrid.is-letter-filtered .all-games-letter-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 10px;
  }
  body.home-page #allGamesSection #gamesGrid .all-games-letter {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    font-size: 18px;
    padding: 0;
    margin: 0 auto 8px;
    align-self: center;
  }
  body.home-page #allGamesSection #gamesGrid .all-games-letter--cyr {
    font-size: 22px;
  }
  .games-section .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 8px;
  }
  .games-section .section-title-wrapper {
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
  }
  .games-section .section-title {
    font-size: 20px;
  }
  .games-section .section-title-wrapper .btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
  }
  .games-section .alphabet-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
  }
  .games-section .alphabet-btn {
    width: 100%;
    padding: 4px 2px;
    min-width: 0;
    min-height: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 6px;
  }
  .games-section .alphabet-btn[data-letter=all] {
    grid-column: span 2;
  }
  .main-content-highlight-wrap .stats {
    padding: 12px 10px;
  }
  .main-content-highlight-wrap .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main-content-highlight-wrap .section-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .main-content-highlight-wrap .game-card[data-has-bg],
  .main-content-highlight-wrap .new-game-card[data-has-bg] {
    aspect-ratio: 16 / 13;
  }
  .stat-number {
    font-size: 20px;
  }
  .stat-item {
    padding: 8px 4px;
  }
  .stat-label {
    font-size: 11px;
  }
  .game-title,
  .new-game-card .game-title {
    font-size: 14px;
  }
  .category-tag {
    font-size: 11px;
  }
  .lot-title {
    font-size: 14px;
  }
  .modal-content {
    padding: 16px;
    margin: 8px;
    width: calc(100% - 16px);
  }
  .profile-header {
    padding: 20px 12px;
  }
  .profile-stats .stat-item {
    flex: 1 1 0;
  }
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .sales-table,
  .categories-table,
  .admin-table {
    min-width: 500px;
    font-size: 12px;
  }
  .achievement-badge {
    width: 48px;
    height: 48px;
  }
  .achievement-add-btn {
    width: 40px;
    height: 40px;
  }
  .hero {
    padding: 14px 0 10px;
  }
  .section-title {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  * {
    transition-duration: 0.15s !important;
  }
  @media (hover: none) {
    .btn:hover,
    .nav-link:hover,
    .game-card:hover,
    .lot-card:hover {
      transform: none;
      box-shadow: none;
    }
  }
  .btn,
  .nav-link,
  .pagination-btn,
  .tab-btn {
    min-height: 44px;
    min-width: 44px;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  * {
    -webkit-overflow-scrolling: touch;
  }
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
@media (max-width: 768px) {
  .profile-section .profile-meta {
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 10px;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: none !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  .profile-section .profile-header.default-background .profile-meta {
    border-top: none !important;
  }
}
.lot-moderation-banner {
  width: 100%;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background:
    linear-gradient(
      90deg,
      rgba(234, 179, 8, 0.2),
      rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fbbf24;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}
.lot-moderation-banner--rejected {
  background:
    linear-gradient(
      90deg,
      rgba(239, 68, 68, 0.2),
      rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}
.lot-moderation-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(234, 179, 8, 0.92);
  color: #1a1a1a;
}
.lot-moderation-badge--rejected {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}
.profile-moderation-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--text-primary, #f3f4f6);
  font-size: 14px;
}
.profile-moderation-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #fbbf24;
}
.profile-moderation-pending-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.profile-moderation-pending-preview img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px dashed rgba(234, 179, 8, 0.6);
}
.profile-moderation-pending-preview img.wide {
  width: 120px;
  height: 48px;
  border-radius: 8px;
}
.site-notifications-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.site-notification-toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-secondary, #1f2937);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: siteNotificationIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-notification-toast strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.site-notification-toast span {
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}
.site-notification-toast--hide {
  opacity: 0;
  transform: translateX(18px) scale(0.96);
  pointer-events: none;
}
@keyframes siteNotificationIn {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.global-notification {
  cursor: pointer;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.global-notification--hide {
  opacity: 0;
  transform: translateX(18px) scale(0.96);
  pointer-events: none;
}
.admin-moderation-intro kbd {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}
.admin-moderation-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-moderation-subtab {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-moderation-subtab.active {
  background: var(--primary, #3b82f6);
  border-color: var(--primary, #3b82f6);
  color: #fff;
}
.admin-moderation-subtab-count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}
.admin-moderation-subtab.active .admin-moderation-subtab-count {
  background: rgba(255, 255, 255, 0.25);
}
#moderationHistoryToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-moderation-kind-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary, rgba(255,255,255,0.03));
}
.admin-moderation-kind-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.admin-moderation-kind-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.admin-moderation-kind-btn.active {
  background: var(--primary-color, #6b7ef8);
  color: #fff;
}
.admin-moderation-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.staff-stats-period-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.staff-stats-period-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}
.staff-stats-period-btn:hover {
  border-color: var(--primary-color, #5c6ef8);
}
.staff-stats-period-btn.active {
  background: var(--primary-color, #5c6ef8);
  border-color: var(--primary-color, #5c6ef8);
  color: #fff;
}
.staff-stats-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
}
.staff-stats-month-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.staff-stats-month-label {
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.staff-stats-calendar-wrap {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary, var(--bg-primary));
}
.staff-stats-calendar .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.staff-stats-calendar .calendar-weekdays,
.staff-stats-calendar .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.staff-stats-calendar .calendar-weekday,
.staff-stats-calendar .calendar-day {
  text-align: center;
  font-size: 12px;
  padding: 6px 0;
}
.staff-stats-calendar .calendar-day:not(.empty) {
  cursor: pointer;
  border-radius: 6px;
}
.staff-stats-calendar .calendar-day:not(.empty):hover {
  background: rgba(92, 110, 248, 0.15);
}
.staff-stats-calendar .calendar-day.selected,
.staff-stats-calendar .calendar-day.range-start,
.staff-stats-calendar .calendar-day.range-end {
  background: var(--primary-color, #5c6ef8);
  color: #fff;
}
.staff-stats-calendar .calendar-day.in-range {
  background: rgba(92, 110, 248, 0.22);
}
.staff-stats-calendar .calendar-day.today {
  outline: 1px solid var(--primary-color, #5c6ef8);
}
.staff-stats-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.staff-stats-calendar-hint {
  font-size: 12px;
  color: var(--text-secondary);
}
.staff-stats-chart-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 6px;
}
.staff-stats-chart-wrap canvas {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 10px;
  background: var(--bg-secondary, rgba(0,0,0,0.12));
}
.staff-stats-chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 120px;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 18, 28, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.staff-stats-chart-tip[hidden] {
  display: none !important;
}
.staff-stats-chart-tip strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.staff-stats-chart-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.staff-stats-total-card strong {
  font-size: 22px;
}
.admin-moderation-stat {
  flex: 1;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary, var(--bg-primary));
}
.admin-moderation-stat .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, var(--text-secondary));
  margin-bottom: 4px;
}
.admin-moderation-stat strong {
  font-size: 18px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.view-user-staff-stats-card h3 {
  margin: 0 0 10px;
}
.view-user-section-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary, #9ca3af);
}
.view-user-staff-history-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}
.view-user-staff-history-filters .admin-moderation-search {
  width: 100%;
}
.view-user-staff-history-list {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding-right: 2px;
}
.view-user-staff-history-list .admin-moderation-history-item {
  cursor: default;
}
.view-user-staff-history-list a.admin-moderation-history-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.admin-moderation-history-item {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--bg-primary);
}
.admin-moderation-history-item:hover,
.admin-moderation-history-item.is-active {
  border-color: var(--primary-color, #6b7ef8);
}
.admin-moderation-history-item .mh-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.admin-moderation-history-item .mh-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.admin-moderation-history-item .mh-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.admin-moderation-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.admin-moderation-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}
.admin-moderation-sort {
  padding: 8px 2.4em 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}
.admin-moderation-filter-similar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.08);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.admin-moderation-filter-similar input {
  accent-color: #eab308;
}
.admin-moderation-list-hint {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 6px;
  background: var(--bg-primary);
}
.admin-mod-queue-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.admin-mod-queue-badge--suspect {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
}
.admin-mod-queue-suspect-why {
  display: block;
  font-size: 11px;
  color: #f87171;
  margin: 2px 0 4px;
  line-height: 1.35;
}
.admin-mod-suspect-box {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  font-size: 13px;
}
.admin-mod-suspect-box strong {
  display: block;
  margin-bottom: 6px;
  color: #f87171;
}
.admin-mod-suspect-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}
.admin-mod-key-masks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-mod-key-mask {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  word-break: break-all;
  color: var(--text-secondary);
}
.admin-mod-section {
  margin: 14px 0;
}
.admin-mod-section__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-mod-section__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-mod-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-mod-history__item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.admin-mod-history__item--approved {
  border-left: 3px solid #22c55e;
}
.admin-mod-history__item--rejected {
  border-left: 3px solid #ef4444;
}
.admin-mod-history__item--edits_requested {
  border-left: 3px solid #3b82f6;
}
.admin-mod-history__item--resubmitted {
  border-left: 3px solid #eab308;
}
.admin-mod-history__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.admin-mod-history__action {
  font-weight: 600;
  font-size: 13px;
}
.admin-mod-history__time {
  font-size: 11px;
  color: var(--text-secondary);
}
.admin-mod-history__who {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-mod-history__reason,
.admin-mod-history__note {
  margin: 6px 0 0;
  font-size: 13px;
  word-break: break-word;
}
.admin-mod-history__reason {
  color: #fca5a5;
}
.admin-mod-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.admin-mod-quicklinks a,
.admin-mod-quicklinks .admin-mod-link-btn {
  font-size: 13px;
  color: var(--primary, #3b82f6);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.admin-mod-quicklinks a:hover,
.admin-mod-quicklinks .admin-mod-link-btn:hover {
  background: rgba(59, 130, 246, 0.12);
}
.admin-mod-seller-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.35);
}
@media (max-width: 768px) {
  .profile-section .profile-header {
    min-height: 0 !important;
    padding: 14px 16px 13px !important;
    gap: 12px !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(127, 137, 166, 0.14);
  }
  .profile-section .profile-name-row {
    min-height: 28px;
    overflow: visible !important;
    column-gap: 7px !important;
    row-gap: 4px !important;
    padding: 2px 0 !important;
  }
  .profile-section .profile-name-row .profile-username,
  .profile-section .profile-username {
    max-width: calc(100% - 10.8rem) !important;
    line-height: 1.28 !important;
    padding-block: 1px !important;
    overflow: hidden !important;
  }
  .profile-section .profile-name-row .profile-level-badge,
  .profile-section .profile-name-row .profile-staff-badge {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 24px !important;
    min-height: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 3px 9px !important;
  }
  .profile-section .profile-header-content {
    gap: 4px !important;
  }
  .profile-section .profile-stats {
    gap: 2px 10px !important;
    opacity: 0.84;
  }
  .profile-section .profile-description:not([hidden]) {
    margin-top: 5px !important;
    padding: 3px 0 !important;
    background: transparent !important;
    border: 0 !important;
    opacity: 0.9;
  }
  .profile-section .profile-meta {
    margin-top: 5px !important;
    opacity: 0.78;
  }
}
.admin-mod-live-compare {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.admin-mod-live-compare summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.admin-mod-live-compare__row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.admin-mod-live-compare__row:last-child {
  border-bottom: none;
}
.admin-mod-live-compare__label {
  color: var(--text-secondary);
}
.admin-mod-live-compare__was {
  color: var(--text-secondary);
  text-decoration: line-through;
  word-break: break-word;
}
.admin-mod-live-compare__now {
  color: #4ade80;
  word-break: break-word;
}
.admin-mod-reject-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.admin-mod-reject-template {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}
.admin-mod-reject-template:hover {
  border-color: var(--primary, #3b82f6);
  color: var(--primary, #3b82f6);
}
.admin-mod-similar {
  margin: 8px 0 4px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.admin-mod-similar__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.admin-mod-similar__hint {
  margin: 0 0 10px;
  font-size: 12px;
}
.admin-mod-similar__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-mod-similar__card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
}
.admin-mod-similar__card:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}
.admin-mod-similar__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.admin-mod-similar__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.admin-mod-similar__body strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-mod-similar__body span {
  font-size: 11px;
  color: var(--text-secondary);
}
.admin-mod-similar__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-mod-similar__title-row strong {
  flex: 1;
  min-width: 0;
}
.admin-mod-similar__similarity {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-mod-similar__tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.admin-mod-similar__tag--warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
}
.admin-mod-similar__tag--pending {
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
}
.admin-mod-similar__status {
  margin-left: 6px;
  opacity: 0.85;
}
.admin-moderation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 20px;
  min-height: 420px;
}
@media (max-width: 900px) {
  .admin-moderation-layout {
    grid-template-columns: 1fr;
  }
}
.admin-moderation-list {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-secondary);
}
.admin-moderation-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.admin-moderation-item:hover,
.admin-moderation-item--active {
  background: rgba(59, 130, 246, 0.12);
}
.admin-moderation-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-moderation-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-secondary);
}
.admin-moderation-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-moderation-item-body strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-moderation-item-body span,
.admin-moderation-item-body small {
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-moderation-detail {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-secondary);
  overflow-y: auto;
  max-height: 70vh;
}
.admin-moderation-placeholder {
  color: var(--text-secondary);
  padding: 16px;
  margin: 0;
}
.admin-moderation-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.admin-moderation-preview-img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
}
.admin-moderation-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.admin-moderation-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.admin-moderation-desc {
  white-space: pre-wrap;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
}
.admin-moderation-profile-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.admin-moderation-profile-compare img {
  max-width: 100%;
  border-radius: 8px;
}
.admin-moderation-profile-compare img.wide {
  width: 100%;
  height: 56px;
  object-fit: cover;
}
.admin-moderation-profile-compare img.avatar-round {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}
.admin-moderation-profile-compare span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.admin-mod-lot-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-mod-lot-card__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}
.admin-mod-lot-card__seller-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 4px;
}
.admin-mod-lot-card__seller strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f3f4f6);
}
.admin-mod-lot-card__game {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}
.admin-mod-lot-card__hint {
  margin: 10px 0 0;
}
.admin-mod-lot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .admin-mod-lot-stats {
    grid-template-columns: 1fr;
  }
}
.admin-mod-stat {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-primary, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}
.admin-mod-stat--instant {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}
.admin-mod-stat--instant .admin-mod-stat__value {
  color: #4ade80;
}
.admin-mod-stat__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 6px;
}
.admin-mod-stat__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f9fafb);
  line-height: 1.2;
}
.admin-mod-lot-card__gallery {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-primary, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.admin-mod-lot-card__gallery.admin-moderation-images {
  flex-wrap: unset;
}
.admin-mod-gallery-thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0a0a0a;
  aspect-ratio: 16 / 10;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.admin-mod-gallery-thumb:hover {
  border-color: var(--primary, #3b82f6);
  transform: translateY(-1px);
}
.admin-mod-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.admin-mod-gallery-thumb--avatar {
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto;
}
.admin-mod-gallery-thumb--wide {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.admin-mod-gallery-thumb--banner {
  aspect-ratio: 4 / 1;
  width: 100%;
  max-height: 72px;
  min-height: 48px;
}
.admin-mod-gallery-thumb--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-mod-profile-section {
  margin-bottom: 16px;
}
.admin-mod-profile-section__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #f3f4f6);
}
.admin-mod-profile-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-mod-profile-compare--wide {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .admin-mod-profile-compare--wide {
    grid-template-columns: 1fr 1fr;
  }
}
.admin-mod-profile-cell {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-primary, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.admin-mod-profile-cell__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #9ca3af);
}
.admin-mod-profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-mod-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}
.admin-mod-lightbox[hidden] {
  display: none !important;
}
.admin-mod-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.admin-mod-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: zoom-in;
  user-select: none;
}
.admin-mod-lightbox__close,
.admin-mod-lightbox__prev,
.admin-mod-lightbox__next {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
}
.admin-mod-lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.admin-mod-lightbox__prev,
.admin-mod-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 32px;
}
.admin-mod-lightbox__prev {
  left: 12px;
}
.admin-mod-lightbox__next {
  right: 12px;
}
.admin-mod-lightbox__close:hover,
.admin-mod-lightbox__prev:hover,
.admin-mod-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.admin-mod-lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
}
.admin-mod-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .admin-mod-lang-grid {
    grid-template-columns: 1fr;
  }
}
.admin-mod-lang-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-primary, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-mod-lang-card--en {
  border-color: rgba(59, 130, 246, 0.25);
}
.admin-mod-lang-card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary, #f3f4f6);
}
.admin-mod-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.admin-mod-lang-flag--en {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.admin-mod-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 6px;
}
.admin-mod-field-value {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary, #e5e7eb);
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-mod-empty {
  color: var(--text-secondary, #6b7280);
  font-style: italic;
}
.admin-mod-lot-card__foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-secondary);
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.15);
}
.admin-mod-lot-card__updated {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
}
.admin-mod-reject-form {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  box-sizing: border-box;
}
.admin-mod-reject-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-mod-reject-form__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #f3f4f6);
}
.admin-mod-reject-form__close {
  border: none;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.admin-mod-reject-form__close:hover {
  color: var(--text-primary, #f3f4f6);
}
.admin-mod-reject-form__hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #9ca3af);
}
.admin-mod-reject-form__textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  background: var(--bg-primary, #111827);
  color: var(--text-primary, #f3f4f6);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  box-sizing: border-box;
}
.admin-mod-reject-form__textarea:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.admin-mod-reject-form__error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #f87171;
}
.admin-mod-reject-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .profile-section .profile-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px !important;
    padding: 16px 14px 12px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.profile-page .profile-section .profile-header {
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .profile-section .profile-header > .profile-avatar {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
  }
  .profile-section .profile-header .profile-avatar .avatar-placeholder {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    font-size: 24px !important;
  }
  .profile-section .profile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .profile-section .profile-name-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
  }
  .profile-section .profile-name-row .profile-username,
  .profile-section .profile-username {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 7.5rem) !important;
    min-width: 0 !important;
    display: inline-block !important;
    font-size: clamp(1.15rem, 4.6vw, 1.4rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
  .profile-section .profile-name-row .profile-level-badge,
  .profile-section .profile-level-badge {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    padding: 3px 9px !important;
    margin: 0 !important;
    align-self: center !important;
  }
  .profile-section .profile-header-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .profile-section .profile-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }
  .profile-section .profile-stats .stat-item,
  .profile-section .profile-stats .stat-item:nth-child(1),
  .profile-section .profile-stats .stat-item:nth-child(2),
  .profile-section .profile-stats .stat-item:nth-child(3),
  .profile-section .profile-stats .stat-item:nth-child(4) {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    gap: 3px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .profile-section .profile-stats .stat-label,
  .profile-section .profile-stats .stat-label--sold-link,
  .profile-section .profile-stats .stat-label--rating-link,
  .profile-section .profile-stats .stat-label--reviews-link {
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 0.9;
    margin: 0 !important;
    padding: 0 !important;
  }
  .profile-section .profile-stats .stat-value,
  .profile-section .profile-stats .profile-sold-btn,
  .profile-section .profile-stats .profile-reviews-btn {
    font-size: 13px !important;
    font-weight: 600 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-variant-numeric: tabular-nums !important;
  }
  .profile-section .profile-stats .profile-rating-stars {
    font-size: 12px !important;
  }
  .profile-section .profile-description:not([hidden]) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
  }
  .profile-section .profile-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px 6px !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border-top: none !important;
    font-size: 11px !important;
    text-align: left !important;
    line-height: 1.3 !important;
  }
  .profile-section .profile-achievements {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .profile-header.custom-background::before {
    background-size: cover !important;
    background-position: center center !important;
  }
  .profile-header.custom-background::after,
  .profile-header.custom-background.profile-header--has-dim::after {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.45) 100%),
      #000 !important;
    opacity: max(0.42, calc(var(--profile-bg-dim, 20) / 100)) !important;
  }
  .profile-section .profile-header.custom-background .profile-username,
  .profile-section .profile-header.gradient1-background .profile-username,
  .profile-section .profile-header.gradient2-background .profile-username,
  .profile-section .profile-header.gradient3-background .profile-username {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7) !important;
  }
  .profile-section .profile-header.custom-background .profile-stats .stat-label,
  .profile-section .profile-header.custom-background .profile-stats .stat-value,
  .profile-section .profile-header.custom-background .profile-meta,
  .profile-section .profile-header.custom-background .profile-description {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  }
  .profile-page .profile-section .profile-reviews-section {
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
    background: transparent !important;
  }
  .profile-page .profile-section .profile-reviews-section:has(.profile-reviews-wrap.profile-reviews-is-empty),
  .profile-page .profile-section .profile-reviews-section:has(.profile-reviews-wrap.profile-reviews-is-loading) {
    transform: none;
  }
  .profile-page .profile-section .profile-reviews-wrap.profile-reviews-is-empty.sales-section,
  .profile-page .profile-section .profile-reviews-wrap.profile-reviews-is-loading.sales-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .profile-page > .profile-section {
    padding-bottom: 12px;
    padding-left: 0;
    padding-right: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  body.profile-page > footer.footer {
    display: block !important;
    padding: 10px 0 12px !important;
    margin-top: 0 !important;
  }
}
@media (min-width: 769px) {
  .profile-section .profile-header {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 32px 32px 20px !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .profile-section .profile-header > .profile-avatar {
    align-self: flex-start !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }
  .profile-section .profile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
  }
  .profile-section .profile-name-row,
  .profile-section .profile-header-content,
  .profile-section .profile-stats,
  .profile-section .profile-meta {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .profile-section .profile-name-row {
    justify-content: flex-start !important;
    margin-bottom: 16px !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
  }
  .profile-section .profile-name-row .profile-username,
  .profile-section .profile-username {
    text-align: left !important;
    align-self: auto !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
  }
  .profile-section .profile-header-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .profile-section .profile-stats {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px 20px !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    flex: 0 1 auto !important;
    padding-left: 14px !important;
  }
  .profile-section .profile-stats .stat-item {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
  }
  .profile-section .profile-stats .stat-item:first-child,
  .profile-section .profile-stats .stat-item--sold {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .profile-section .profile-stats .stat-label,
  .profile-section .profile-stats .stat-label--sold-link,
  .profile-section .profile-stats .stat-label--rating-link,
  .profile-section .profile-stats .stat-value,
  .profile-section .profile-stats .profile-sold-btn {
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
  }
  .profile-section .profile-description:not([hidden]) {
    display: inline-block !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 6px 14px !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: fit-content !important;
    max-width: min(100%, 520px) !important;
    white-space: pre-wrap !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
  }
  .profile-section .profile-description.profile-description--no-bg {
    margin-left: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-width: 0 !important;
  }
  .profile-section .profile-meta {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    padding: 0 !important;
  }
  .profile-section .profile-meta > * {
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 769px) {
  .home-page .hero {
    margin-top: calc(-1 * var(--site-header-h));
    padding-top: calc(28px + var(--site-header-h));
    min-height: calc(var(--site-header-h) + 120px);
  }
  body > .header + .rules-section,
  .profile-page > .header + .profile-section {
    margin-top: calc(-1 * var(--site-header-h));
  }
  body > .header + .rules-section {
    padding-top: calc(60px + var(--site-header-h));
  }
  .profile-page > .header + .profile-section {
    padding-top: calc(40px + var(--site-header-h));
  }
  body > .header + main.lot-view-page,
  body > .header + main.favorites-page {
    margin-top: calc(-1 * var(--site-header-h));
  }
  body > .header + main.lot-view-page {
    padding-top: calc(40px + var(--site-header-h));
  }
  body > .header + main.favorites-page {
    padding-top: calc(26px + var(--site-header-h));
  }
  body > .header + .game-category-hero:not([hidden]) {
    margin-top: calc(-1 * var(--site-header-h));
    padding-top: calc(17px + var(--site-header-h));
  }
  body > .header + section[hidden] + .category-section {
    margin-top: calc(-1 * var(--site-header-h));
    padding-top: var(--site-header-h);
  }
  body > .header + .categories-page {
    margin-top: calc(-1 * var(--site-header-h));
    padding-top: var(--site-header-h);
  }
}
body.profile-page > footer.footer {
  padding: 10px 0 12px !important;
  margin-top: 0 !important;
}
body.profile-page > .profile-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}
.profile-page .profile-section .profile-reviews-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  transform: none !important;
}
body.profile-page > footer.footer {
  margin-top: 0 !important;
}
body:not(.home-page):not(.chat-page) > .rules-section,
body:not(.home-page):not(.chat-page) > .faq-section,
body:not(.home-page):not(.chat-page) > .help-section,
body:not(.home-page):not(.chat-page) > .profile-section,
body:not(.home-page):not(.chat-page) > main,
body:not(.home-page):not(.chat-page) > .category-section,
body:not(.home-page):not(.chat-page) > .categories-page {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
}
html:has(body > .rules-section),
body:has(> .rules-section) {
  height: auto !important;
  max-height: none !important;
  overflow-x: clip;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y pinch-zoom;
}
body:has(> .rules-section) {
  min-height: 100vh;
}
body:has(> .rules-section) > .rules-section,
body:has(> .rules-section) > .rules-section .container,
body:has(> .rules-section) > .rules-section .rules-content {
  overflow: visible !important;
  max-height: none !important;
  touch-action: pan-y pinch-zoom;
}
html:has(body > .rules-section).sellpay-search-open,
body:has(> .rules-section).sellpay-search-open {
  overflow-y: auto !important;
  touch-action: pan-y pinch-zoom !important;
}
html:has(body.help-page),
html:has(body.support-page),
body.help-page,
body.support-page {
  height: auto !important;
  max-height: none !important;
  overflow-x: clip;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y pinch-zoom;
}
body.help-page,
body.support-page {
  min-height: 100vh;
  min-height: 100dvh;
}
body.help-page .requests-board,
body.support-page .requests-board,
body.help-page .requests-board > .container,
body.support-page .requests-board > .container,
body.help-page .collapsible,
body.help-page .collapsible.open,
body.support-page .collapsible,
body.support-page .collapsible.open {
  overflow: visible !important;
  max-height: none !important;
  touch-action: pan-y pinch-zoom;
}
html:has(body.help-page).sellpay-search-open,
html:has(body.support-page).sellpay-search-open,
body.help-page.sellpay-search-open,
body.support-page.sellpay-search-open {
  overflow-y: auto !important;
  touch-action: pan-y pinch-zoom !important;
}
:root {
  --sellpay-bottom-nav-h: 56px;
  --sellpay-bottom-nav-safe: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 769px) {
  html.sellpay-header-search-active {
    --site-header-h: 68px;
  }
  html.sellpay-header-search-active .header > .container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(1180px, calc(100% - 40px));
    padding-left: 18px;
    padding-right: 14px;
  }
  html.sellpay-header-search-active .header-mobile-layout {
    display: contents;
  }
  html.sellpay-header-search-active .header-row-top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    gap: 4px;
  }
  html.sellpay-header-search-active .header-mobile-top-right {
    display: none !important;
  }
  html.sellpay-header-search-active .header-row-search {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  html.sellpay-header-search-active .header-content {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 8px 0;
    gap: 4px;
    margin-left: 0;
  }
  html.sellpay-header-search-active .header-content .header-actions {
    margin-right: 0;
    gap: 6px;
  }
  html.sellpay-header-search-active .header-content .user-menu-container {
    gap: 2px;
  }
  html.sellpay-header-search-active .header-content .user-menu-container .favorites-btn,
  html.sellpay-header-search-active .header-content .user-menu-container .chat-btn {
    margin: 0 !important;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 !important;
  }
  html.sellpay-header-search-active .header-content .user-menu-container .favorites-btn svg,
  html.sellpay-header-search-active .header-content .user-menu-container .chat-btn svg {
    width: 18px;
    height: 18px;
  }
  html.sellpay-header-search-active .header-content .user-balance {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 16px;
    min-width: 52px;
    font-size: 13px;
    gap: 6px;
  }
  html.sellpay-header-search-active .header-content .user-menu-btn {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
  }
  html.sellpay-header-search-active .header-content .settings-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    color: var(--text-secondary);
  }
  html.sellpay-header-search-active .header-content .user-menu-container .favorites-btn {
    margin-left: 0;
    margin-right: 0;
  }
  html.sellpay-header-search-active .header-row-search .category-search-wrapper {
    margin: 0;
    padding: 0;
    top: auto;
    position: static;
    max-width: none !important;
    width: 100% !important;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  html.sellpay-header-search-active .header-row-search .category-search-box {
    border-radius: 0;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex: none;
  }
  html.sellpay-header-search-active .header-row-search .category-search-box:focus-within {
    transform: none;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-theme=dark].sellpay-header-search-active .header-row-search .category-search-box,
  html[data-theme=dark].sellpay-header-search-active .header-row-search .category-search-box:focus-within {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html:not([data-theme=dark]).sellpay-header-search-active .header-row-search .category-search-box,
  html:not([data-theme=dark]).sellpay-header-search-active .header-row-search .category-search-box:focus-within {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html.sellpay-header-search-active .header-row-search .category-search-inner {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center;
    background: transparent;
    padding: 8px 10px 8px 0;
  }
  html.sellpay-header-search-active .header-row-search .category-search-input,
  html.sellpay-header-search-active .header-row-search .category-search-input:focus,
  html.sellpay-header-search-active .header-row-search .category-search-input:focus-visible {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    padding: 10px 0;
    font-size: 14px;
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    margin: 0;
    border-radius: 9px;
    justify-content: center;
    gap: 0;
    font-size: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #9ca3af;
    transform: none;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn span {
    display: none;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn svg {
    width: 18px;
    height: 18px;
    opacity: 1;
    color: #9ca3af;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn svg path {
    stroke: #9ca3af;
    stroke-width: 1.85;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #d1d5db;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn:hover svg {
    opacity: 1;
    color: #d1d5db;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn:hover svg path {
    stroke: #d1d5db;
  }
  html.sellpay-header-search-active .header-row-search .categories-btn:active {
    transform: scale(0.96);
    background: transparent !important;
  }
  html[data-theme=dark].sellpay-header-search-active .header-row-search .categories-btn {
    background: transparent !important;
    border: none !important;
    color: #9ca3af;
  }
  html[data-theme=dark].sellpay-header-search-active .header-row-search .categories-btn:hover {
    background: transparent !important;
    color: #d1d5db;
  }
  html[data-theme=dark].sellpay-header-search-active .header-row-search .categories-btn:hover svg {
    opacity: 1;
  }
  html.sellpay-header-search-active .header-row-search .search-icon-wrapper {
    padding: 0 10px 0 12px;
    flex-shrink: 0;
  }
  html.sellpay-header-search-active .header-row-search .search-divider {
    display: none;
  }
  html.sellpay-header-search-active .header-row-search .quick-categories {
    display: none;
  }
  html.sellpay-header-search-active .hero .category-search-wrapper {
    display: none !important;
  }
}
@media (max-width: 768px) {
  html.sellpay-mobile-nav-active {
    --site-header-h: calc(54px + env(safe-area-inset-top, 0px));
  }
  html.sellpay-mobile-nav-active,
  html.sellpay-mobile-nav-active body {
    background-color: var(--bg-primary);
  }
  html:not([data-theme=dark]).sellpay-mobile-nav-active,
  html:not([data-theme=dark]).sellpay-mobile-nav-active body {
    background-color: var(--bg-primary);
  }
  html.sellpay-mobile-nav-active .header {
    padding-top: env(safe-area-inset-top, 0px);
    background-color: var(--bg-primary) !important;
    background-image: none !important;
    box-shadow: none;
    border-bottom-color: var(--border-color);
  }
  html[data-theme=dark].sellpay-mobile-nav-active .header::before,
  html:not([data-theme=dark]).sellpay-mobile-nav-active .header::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
  }
  html:not([data-theme=dark]).sellpay-mobile-nav-active .header {
    background-color: var(--bg-primary) !important;
    background-image: none !important;
    box-shadow: none;
  }
  html.sellpay-mobile-nav-active .header > .container {
    position: relative;
    z-index: 1;
  }
  html.sellpay-mobile-nav-active body {
    padding-bottom: calc(var(--sellpay-bottom-nav-h) + var(--sellpay-bottom-nav-safe));
  }
  html.sellpay-mobile-nav-active body.help-page .header,
  html.sellpay-mobile-nav-active body.support-page .header,
  html.sellpay-mobile-nav-active body.about-page .header,
  html.sellpay-mobile-nav-active body.contacts-page .header,
  html.sellpay-mobile-nav-active body.mi-page .header,
  html.sellpay-mobile-nav-active body:has(#gameCategoryHero:not([hidden])) .header {
    background-color: transparent !important;
    background-image: none !important;
  }
  html.sellpay-mobile-nav-active body.help-page .header::before,
  html.sellpay-mobile-nav-active body.support-page .header::before,
  html.sellpay-mobile-nav-active body.about-page .header::before,
  html.sellpay-mobile-nav-active body.contacts-page .header::before,
  html.sellpay-mobile-nav-active body.mi-page .header::before,
  html.sellpay-mobile-nav-active body:has(#gameCategoryHero:not([hidden])) .header::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
  }
  html.sellpay-mobile-nav-active .header > .container,
  html.sellpay-mobile-nav-active body.help-page .header > .container,
  html.sellpay-mobile-nav-active body.support-page .header > .container,
  html.sellpay-mobile-nav-active body.about-page .header > .container,
  html.sellpay-mobile-nav-active body.contacts-page .header > .container,
  html.sellpay-mobile-nav-active body.mi-page .header > .container,
  html.sellpay-mobile-nav-active body:has(#gameCategoryHero:not([hidden])) .header > .container {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-md) !important;
  }
  html.sellpay-mobile-nav-active .header-mobile-layout {
    width: 100%;
  }
  html.sellpay-mobile-nav-active .header-row-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    min-width: 0;
  }
  html.sellpay-mobile-nav-active .header-row-top .header-left {
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: 0;
    min-width: 0;
    width: auto;
    margin-right: 0;
  }
  html.sellpay-mobile-nav-active .header-left .main-nav,
  html.sellpay-mobile-nav-active .header-left .help-menu-container {
    display: none !important;
  }
  html.sellpay-mobile-nav-active .header-left .logo a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    gap: 0;
  }
  html.sellpay-mobile-nav-active .header-left .logo a::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    background: url(/sellpay-logo.svg) center / contain no-repeat;
    flex-shrink: 0;
  }
  html.sellpay-mobile-nav-active .header-left .logo-text,
  html.sellpay-mobile-nav-active .header-left .logo-img-theme {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    -webkit-text-fill-color: transparent !important;
    background: none !important;
    display: none !important;
  }
  html.sellpay-mobile-nav-active .header-mobile-top-right {
    display: none !important;
  }
  html.sellpay-mobile-nav-active .header-row-search {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-left: 0;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-wrapper {
    margin: 0;
    padding: 0;
    top: auto;
    position: static;
    max-width: none;
    width: 100%;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-box {
    border-radius: 10px;
    box-shadow: none;
    border: none !important;
    background: transparent !important;
    gap: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-inner {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn {
    order: 2;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    padding: 0;
    margin: 0 0 0 4px;
    margin-left: auto;
    border-radius: 9px;
    justify-content: center;
    gap: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #9ca3af;
    transform: none;
  }
  html.sellpay-mobile-nav-active .header-row-search .search-divider {
    display: none;
    order: 0;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-box:focus-within {
    transform: none;
    border: none !important;
    box-shadow: none !important;
  }
  html[data-theme=dark].sellpay-mobile-nav-active .header-row-search .category-search-box {
    background: transparent !important;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-input {
    background: transparent;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn:active {
    transform: scale(0.96);
    background: transparent !important;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn svg {
    width: 18px;
    height: 18px;
    opacity: 1;
    color: #9ca3af;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn svg path {
    stroke: #9ca3af;
    stroke-width: 1.85;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn:hover svg,
  html.sellpay-mobile-nav-active .header-row-search .categories-btn:active svg {
    opacity: 1;
    color: #d1d5db;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn:hover svg path,
  html.sellpay-mobile-nav-active .header-row-search .categories-btn:active svg path {
    stroke: #d1d5db;
  }
  html[data-theme=dark].sellpay-mobile-nav-active .header-row-search .categories-btn {
    background: transparent !important;
    border: none !important;
    color: #9ca3af;
  }
  html.sellpay-mobile-nav-active .header-row-search .categories-btn span {
    display: none;
  }
  html.sellpay-mobile-nav-active .header-row-search .search-icon-wrapper {
    display: flex !important;
    padding: 0 4px 0 12px;
    flex-shrink: 0;
  }
  html.sellpay-mobile-nav-active .header-row-search .category-search-input,
  html.sellpay-mobile-nav-active .header-row-search .category-search-input:focus,
  html.sellpay-mobile-nav-active .header-row-search .category-search-input:focus-visible {
    padding: 7px 0 7px 10px;
    font-size: 14px;
    min-width: 0;
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  html.sellpay-mobile-nav-active .header-row-search .quick-categories {
    display: none;
  }
  html.sellpay-mobile-nav-active .header > .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  html.sellpay-mobile-nav-active .header-content {
    padding: 6px 0;
  }
  html.sellpay-mobile-nav-active .hero .category-search-wrapper {
    display: none !important;
  }
  html.sellpay-mobile-nav-active body.home-page > .hero {
    padding: 0 !important;
    margin: 0;
    background: #121212;
    overflow: hidden;
    z-index: 1;
  }
  html:not([data-theme=dark]).sellpay-mobile-nav-active body.home-page > .hero {
    background: var(--bg-primary);
  }
  html.sellpay-mobile-nav-active body.home-page .hero > .container {
    padding: 0;
    max-width: none;
    width: 100%;
    overflow: hidden;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: transparent;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners::after {
    display: none;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners__viewport {
    overflow: hidden;
    border-radius: 0;
    display: block;
    aspect-ratio: 1600 / 610;
    width: 100%;
    height: auto;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners__dots {
    bottom: 8px;
    z-index: 3;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners__nav {
    z-index: 3;
  }
  html.sellpay-mobile-nav-active body.home-page .hero-banners__caption {
    padding-bottom: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    z-index: 1;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 14px;
    border-radius: 0;
    gap: 10px;
    position: relative;
    z-index: 2;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap > section {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 12px 12px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: none;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap > .new-games-section {
    margin-top: 0;
    padding-top: 12px;
  }
  html:not([data-theme=dark]).sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap > section {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap > .viewed-lots-section {
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 12px;
    padding-right: 12px;
    overflow: visible;
  }
  html.sellpay-mobile-nav-active body.home-page .viewed-lots-section > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible;
  }
  html.sellpay-mobile-nav-active body.home-page .viewed-lots-section .section-title {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
  }
  html.sellpay-mobile-nav-active body.home-page .viewed-lots-section .viewed-lots-grid {
    margin-left: 0;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap > section > .container {
    padding-left: 0;
    padding-right: 0;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap .section-title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap .new-games-section .new-games-rows,
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap .popular-games-section .popular-games-rows,
  html.sellpay-mobile-nav-active body.home-page .main-content-highlight-wrap .popular-games-section #recommendedGamesRows {
    gap: 8px;
  }
  html.sellpay-mobile-nav-active body.home-page .new-games-row,
  html.sellpay-mobile-nav-active body.home-page .popular-games-row {
    gap: 8px;
    margin-left: 0;
  }
  html.sellpay-mobile-nav-active body.home-page .new-games-row .new-game-card {
    flex: 0 0 min(156px, calc(50% - 16px));
    min-width: 124px;
  }
  html.sellpay-mobile-nav-active .header-content {
    display: none !important;
  }
  html.sellpay-mobile-nav-active .user-menu-container .favorites-btn,
  html.sellpay-mobile-nav-active .user-menu-container .chat-btn,
  html.sellpay-mobile-nav-active .user-menu-container .user-menu-btn,
  html.sellpay-mobile-nav-active .settings-icon-btn {
    display: none !important;
  }
  html.sellpay-mobile-nav-active .user-menu-container {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .sellpay-bottom-nav {
    display: none;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    box-sizing: border-box;
    height: calc(var(--sellpay-bottom-nav-h) + var(--sellpay-bottom-nav-safe));
    padding-bottom: var(--sellpay-bottom-nav-safe);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition:
      transform 0.2s ease,
      visibility 0.2s ease,
      opacity 0.2s ease;
  }
  html.sellpay-mobile-nav-active:not(:has(#sellpayBottomNav)) body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 799;
    height: calc(var(--sellpay-bottom-nav-h) + var(--sellpay-bottom-nav-safe));
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    pointer-events: none;
  }
  html.sellpay-mobile-nav-active:has(.modal.active) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(.notification-overlay.active) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(.sheet-overlay.active) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(.bottom-sheet.open) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(.sellpay-account-sheet.is-open) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(#logoutConfirmModal.active) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active:has(#categoriesModalOverlay) .sellpay-bottom-nav,
  html.sellpay-mobile-nav-active.sellpay-overlay-open .sellpay-bottom-nav {
    transform: translateY(110%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  html.sellpay-mobile-nav-active:has(.modal.active) body::after,
  html.sellpay-mobile-nav-active:has(.notification-overlay.active) body::after,
  html.sellpay-mobile-nav-active:has(.sheet-overlay.active) body::after,
  html.sellpay-mobile-nav-active:has(.bottom-sheet.open) body::after,
  html.sellpay-mobile-nav-active:has(.sellpay-account-sheet.is-open) body::after,
  html.sellpay-mobile-nav-active.sellpay-overlay-open body::after {
    visibility: hidden;
    opacity: 0;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-height: var(--sellpay-bottom-nav-h);
    box-sizing: border-box;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__item.is-active {
    color: var(--primary-color);
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__icon--profile {
    width: 26px;
    height: 26px;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__avatar-mini {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background:
      linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__avatar-mini.has-image {
    color: transparent;
    font-size: 0;
    background-color: var(--bg-tertiary);
  }
  html.sellpay-mobile-nav-active .sellpay-bottom-nav__badge {
    position: absolute;
    top: -3px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary, #111317);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    z-index: 5;
    pointer-events: none;
    letter-spacing: -0.2px;
  }
  .sellpay-account-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000020;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .sellpay-account-sheet:not(.is-open) {
    pointer-events: none;
  }
  .sellpay-account-sheet.is-open {
    pointer-events: auto;
  }
  .sellpay-account-sheet[hidden] {
    display: none !important;
  }
  .sellpay-account-sheet__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .sellpay-account-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(78vh, 520px);
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s ease;
    overflow: auto;
    pointer-events: auto;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  }
  .sellpay-account-sheet.is-open .sellpay-account-sheet__panel {
    transform: translateY(0);
  }
  .sellpay-account-sheet__handle {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    margin: 2px auto 14px;
  }
  .sellpay-account-sheet__user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 4px 2px 12px;
    border-bottom: 1px solid var(--border-color);
  }
  .sellpay-account-sheet__user-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .sellpay-account-sheet__avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background:
      linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }
  .sellpay-account-sheet__avatar-fallback.has-image {
    color: transparent;
    font-size: 0;
    background-color: var(--bg-tertiary);
  }
  .sellpay-account-sheet__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sellpay-account-sheet__meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
  }
  .sellpay-account-sheet__balance {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(92, 110, 248, 0.12);
    border: 1px solid rgba(92, 110, 248, 0.22);
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .sellpay-account-sheet__balance-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.75;
    color: inherit;
  }
  .sellpay-account-sheet__balance-amount {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: inherit;
    font-variant-numeric: tabular-nums;
  }
  .sellpay-account-sheet__balance:active {
    background: rgba(92, 110, 248, 0.2);
    border-color: rgba(92, 110, 248, 0.35);
  }
  html[data-theme=dark] .sellpay-account-sheet__balance {
    background: rgba(107, 126, 248, 0.14);
    border-color: rgba(107, 126, 248, 0.28);
    color: #a5b4fc;
  }
  .sellpay-account-sheet__hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-secondary);
  }
  .sellpay-account-sheet__section-divider {
    display: none;
  }
  .sellpay-account-sheet__menu hr {
    display: none;
  }
  .sellpay-account-sheet__help-details {
    margin: 0;
  }
  .sellpay-account-sheet__help-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .sellpay-account-sheet__help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.95;
  }
  .sellpay-account-sheet__help-summary::-webkit-details-marker {
    display: none;
  }
  .sellpay-account-sheet__help-summary::marker {
    content: "";
  }
  .sellpay-account-sheet__help-summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform 0.15s ease;
  }
  .sellpay-account-sheet__help-details[open] .sellpay-account-sheet__help-summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }
  .sellpay-account-sheet__help-details[open] .sellpay-account-sheet__help-summary {
    background: rgba(148, 163, 184, 0.08);
    color: var(--primary-color);
  }
  .sellpay-account-sheet__help-details .sellpay-account-sheet__menu--help {
    padding: 0 0 4px;
  }
  .sellpay-account-sheet__menu--help .dropdown-item {
    padding-left: 44px;
    font-size: 14px;
    color: var(--text-secondary);
  }
  .sellpay-account-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  .sellpay-account-sheet__actions .btn {
    width: 100%;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .sellpay-account-sheet__menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sellpay-account-sheet__menu .dropdown-item,
  .sellpay-account-sheet__menu a.dropdown-item,
  .sellpay-account-sheet__menu button.dropdown-item {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
  }
  .sellpay-account-sheet__menu .user-dropdown-help {
    margin: 0;
  }
  .sellpay-account-sheet__menu .user-dropdown-help__summary {
    border-radius: 12px;
    min-height: 48px;
  }
  .sellpay-account-sheet__menu .user-dropdown-help__summary .dropdown-icon {
    color: var(--text-secondary);
    opacity: 0.95;
  }
  .sellpay-account-sheet__menu .logout-btn,
  .sellpay-account-sheet__menu #sellpaySheetLogoutBtn {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
  }
  .sellpay-account-sheet__menu hr {
    display: none;
  }
  html.sellpay-account-sheet-open,
  body.sellpay-account-sheet-open {
    overflow: hidden;
  }
}
@media (min-width: 769px) {
  .sellpay-bottom-nav,
  .sellpay-account-sheet {
    display: none !important;
  }
}
.modal.logout-confirm-modal,
.modal.site-confirm-modal,
#sellpaySiteConfirmModal,
#logoutConfirmModal,
#passkeyDeleteConfirmModal,
#orderCancelConfirmModal {
  z-index: 1000005 !important;
}
@media (max-width: 900px) {
  body.home-page .top-lots-section:not(.top-lots-section--live) #topLotsGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  body.home-page .top-lots-section:not(.top-lots-section--live) #topLotsGrid .leader-lot-card {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    flex: none !important;
  }
}
body.home-page .hero .category-search-wrapper {
  display: none !important;
}
.home-hub-cards {
  padding: 8px 0 6px;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.home-hub-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
}
.home-hub-cards .container.home-hub-cards__grid {
  overflow: visible;
}
.home-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 268px;
  padding: 22px 22px 118px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
  isolation: isolate;
}
.home-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 180px at 90% 110%,
      rgba(255, 255, 255, 0.16),
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.home-hub-card > * {
  position: relative;
  z-index: 1;
}
.home-hub-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.05);
}
.home-hub-card--new:hover {
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.42), 0 0 24px rgba(59, 130, 246, 0.25);
}
.home-hub-card--pop:hover {
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.42), 0 0 24px rgba(139, 92, 246, 0.25);
}
.home-hub-card--deal:hover {
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.42), 0 0 24px rgba(52, 211, 153, 0.25);
}
.home-hub-card:hover .home-hub-card__icon {
  transform: scale(1.1) translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}
.home-hub-card:hover .home-hub-card__btn {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}
.home-hub-card--new {
  background:
    linear-gradient(
      145deg,
      #2563eb 0%,
      #1d4ed8 48%,
      #1e3a8a 100%);
}
.home-hub-card--pop {
  background:
    linear-gradient(
      145deg,
      #8b5cf6 0%,
      #7c3aed 48%,
      #5b21b6 100%);
}
.home-hub-card--deal {
  background:
    linear-gradient(
      145deg,
      #10b981 0%,
      #059669 48%,
      #065f46 100%);
}
.home-hub-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin: 0 0 6px;
  line-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  box-shadow: none;
}
.home-hub-card__icon svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.home-hub-card--new .home-hub-card__icon,
.home-hub-card--pop .home-hub-card__icon,
.home-hub-card--deal .home-hub-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  border: 0;
}
.home-hub-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.home-hub-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  max-width: 88%;
}
.home-hub-card__btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-hub-card__previews {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 72%;
  height: 118px;
  pointer-events: none;
  z-index: 2;
}
.home-hub-card__shot {
  position: absolute;
  width: 52%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-color: #141721;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.home-hub-card__shot-img { transition: opacity 0.28s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.home-hub-card__shot:nth-child(1) {
  left: -2%;
  bottom: 4px;
  transform: rotate(-16deg);
  z-index: 1;
}
.home-hub-card__shot:nth-child(2) {
  left: 30%;
  bottom: 16px;
  transform: rotate(3deg);
  z-index: 2;
}
.home-hub-card__shot:nth-child(3) {
  left: 62%;
  bottom: 2px;
  transform: rotate(15deg);
  z-index: 3;
}
.home-hub-card:hover .home-hub-card__shot:nth-child(1) {
  transform: rotate(-22deg) translate(-8px, -4px) scale(1.05);
}
.home-hub-card:hover .home-hub-card__shot:nth-child(2) {
  transform: rotate(0deg) translate(0px, -12px) scale(1.08);
  z-index: 4;
}
.home-hub-card:hover .home-hub-card__shot:nth-child(3) {
  transform: rotate(20deg) translate(8px, -4px) scale(1.05);
}
.home-hub-card__shot.is-fading {
  opacity: 0.2;
  transform: scale(0.96);
}
.home-hub-card__shot.is-loading {
  opacity: 0.72;
}
.home-hub-card__shot.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      110deg,
      transparent 30%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 70%);
  background-size: 200% 100%;
  animation: homeHubShotShimmer 0.9s ease-in-out infinite;
}
@keyframes homeHubShotShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.home-quick-games {
  padding: 4px 0 2px;
  position: relative;
  z-index: 2;
  background: transparent;
  overflow: visible;
}
.home-quick-games .container {
  overflow: visible;
  max-width: 1600px;
  padding-left: 0;
  padding-right: 0;
}
.home-quick-games__label {
  display: none;
}
.home-quick-games__row {
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.home-quick-games__row::-webkit-scrollbar {
  display: none;
  height: 0;
}
.home-quick-games__track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  padding: 4px 20px 6px;
}
.home-quick-game-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(42vw, 320px);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.home-quick-game-chip:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  transform: none;
}
html[data-theme=dark] .home-quick-game-chip {
  background: transparent;
}
.home-show-all-before-lots {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 6px 16px 4px;
  box-sizing: border-box;
}
.home-show-all-before-lots #homeShowAllGamesBtn,
.home-catalog-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.home-show-all-before-lots #homeShowAllGamesBtn {
  margin: 0 auto;
}
.home-catalog-btn svg {
  flex: 0 0 auto;
  opacity: 0.75;
}
.home-catalog-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
.home-catalog-btn:hover svg {
  opacity: 1;
}
.home-catalog-btn:active {
  transform: translateY(0);
}
.home-catalog-btn:focus {
  outline: none;
}
.home-catalog-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.4);
}
html:not([data-theme=dark]) .home-catalog-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
}
html:not([data-theme=dark]) .home-catalog-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .home-show-all-before-lots {
    padding: 4px 16px 2px;
  }
  .home-catalog-btn {
    width: auto;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.84rem;
  }
}
.home-hub-back-wrap {
  margin: 0 0 12px;
}
.home-hub-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.home-hub-back-btn:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
}
.home-hub-list-filters {
  padding: 6px 0 16px;
}
.home-hub-list-filters .platform-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.home-hub-list-filters .console-brand-tabs {
  margin-top: 10px;
}
.top-lots-platform-tabs {
  margin: 0 0 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.home-hub-chips-stub {
  display: none;
}
.home-recs-section {
  margin-top: 56px;
  padding: 12px 0 24px;
  position: relative;
  z-index: 2;
  --home-recs-tile-ar: 16 / 10;
}
.home-recs-section .section-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.42);
}
.home-recs-section .section-header .section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
html[data-theme=dark] .home-recs-section .section-header {
  border-bottom-color: rgba(226, 232, 240, 0.28);
}
html:not([data-theme=dark]) .home-recs-section .section-header {
  border-bottom-color: rgba(71, 85, 105, 0.35);
}
.home-recs-platform-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 16px;
  padding-top: 0;
}
.home-recs-platform-tabs .platform-tab {
  font-size: 15px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
}
.home-recs-section #homeRecsConsoleBrandTabs {
  margin-bottom: 16px;
}
.home-recs-section #homeRecsConsoleBrandTabs .console-brand-tab {
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .home-recs-section {
    margin-top: 38px;
  }
  .home-recs-section .section-header .section-title {
    font-size: 22px;
  }
  .home-recs-platform-tabs .platform-tab {
    font-size: 14px;
    padding: 8px 16px;
  }
}
.home-recs-section #recommendedGamesGrid {
  margin-top: 4px;
}
.home-recs-section .recommendations-placeholder-hint {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}
.home-recs-section .home-recs-rows-legacy {
  display: none !important;
}
.home-recs-pager {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  overflow: hidden;
}
.home-recs-pager__viewport {
  flex: 1 1 auto;
  min-width: 0;
  height: 0 !important;
  padding-bottom: calc(50% - 15px) !important;
  max-height: none !important;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.home-recs-pager__viewport.is-dragging {
  cursor: grabbing;
}
.home-recs-pager__track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-recs-pager__track.is-dragging {
  transition: none !important;
  cursor: grabbing;
  will-change: transform;
}
.home-recs-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
.home-recs-page[data-filled="0"] {
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.home-recs-pager__nav {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  align-self: center;
  width: 28px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.home-recs-pager__nav:hover:not(:disabled) {
  background: transparent;
  border: none;
  color: #fff;
}
html:not([data-theme=dark]) .home-recs-pager__nav,
html[data-theme=light] .home-recs-pager__nav {
  color: #000000;
}
html:not([data-theme=dark]) .home-recs-pager__nav svg,
html[data-theme=light] .home-recs-pager__nav svg {
  stroke: #000000;
}
html:not([data-theme=dark]) .home-recs-pager__nav:hover:not(:disabled),
html[data-theme=light] .home-recs-pager__nav:hover:not(:disabled) {
  background: transparent;
  border: none;
  color: #000000;
  opacity: 0.7;
}
.home-recs-pager__nav:disabled,
.home-recs-pager__nav[hidden] {
  display: none !important;
}
.home-recs-pager__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.home-recs-pager__dots[hidden] {
  display: none !important;
}
.home-recs-pager__dot {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    width 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}
html:not([data-theme=dark]) .home-recs-pager__dot,
html[data-theme=light] .home-recs-pager__dot {
  background: rgba(0, 0, 0, 0.25);
}
.home-recs-pager__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
html:not([data-theme=dark]) .home-recs-pager__dot:hover,
html[data-theme=light] .home-recs-pager__dot:hover {
  background: rgba(0, 0, 0, 0.55);
}
.home-recs-pager__dot.is-active {
  width: 34px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary-color, #6366f1);
  transform: none;
}
.home-recs-pager__track > .recommendations-placeholder-hint {
  flex: 0 0 100%;
  width: 100%;
}
.home-recs-section .home-recs-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  aspect-ratio: auto !important;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
  box-sizing: border-box;
}
.home-recs-section .home-recs-mosaic[data-sparse="1"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  flex-wrap: unset;
  align-content: unset;
  gap: 12px;
  aspect-ratio: auto !important;
  height: 100% !important;
}
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile,
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile--hero,
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile--hero2,
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile--sm,
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile--md,
.home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile--more {
  grid-column: auto;
  grid-row: auto;
  flex: unset;
  min-width: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  height: 100% !important;
}
.home-recs-section .home-recs-mosaic .home-recs-tile {
  position: relative;
  margin: 0;
  padding: 0;
  gap: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
  box-shadow: none;
  min-height: 0;
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  border-radius: 16px;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(6) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
  border-radius: 16px;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(7) {
  grid-column: 1;
  grid-row: 3;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(8) {
  grid-column: 2;
  grid-row: 3;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(9) {
  grid-column: 1;
  grid-row: 4;
}
.home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(10) {
  grid-column: 2;
  grid-row: 4;
}
.home-recs-section .home-recs-mosaic .home-recs-tile--hero,
.home-recs-section .home-recs-mosaic .home-recs-tile--hero2 {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}
.home-recs-section .home-recs-mosaic .home-recs-tile--sm,
.home-recs-section .home-recs-mosaic .home-recs-tile--md,
.home-recs-section .home-recs-mosaic .home-recs-tile--more {
  aspect-ratio: auto;
}
.home-recs-section .home-recs-mosaic .home-recs-tile[data-has-bg] {
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: auto;
}
.home-recs-section .home-recs-mosaic .home-recs-tile--hero[data-has-bg],
.home-recs-section .home-recs-mosaic .home-recs-tile--hero2[data-has-bg] {
  aspect-ratio: auto;
}
.home-recs-section .home-recs-mosaic .home-recs-tile[data-rec-hq="1"] {
  background-image: none !important;
}
.home-recs-section .home-recs-mosaic .home-recs-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 0;
  margin: 0;
  padding: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.home-recs-section .home-recs-mosaic .home-recs-tile[data-has-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.home-recs-section .home-recs-mosaic .home-recs-tile[data-has-bg]::after {
  display: none;
}
.home-recs-section .home-recs-mosaic .home-recs-tile .game-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(10px + 12px + 1.2em * 2);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.home-recs-section .home-recs-mosaic .home-recs-tile--hero .game-title,
.home-recs-section .home-recs-mosaic .home-recs-tile--hero2 .game-title {
  padding: 14px 16px 16px;
  font-size: 1.35rem;
  font-weight: 800;
  max-height: calc(14px + 16px + 1.2em * 2);
}
.home-recs-section .home-recs-mosaic .home-recs-tile:hover,
.home-recs-section .home-recs-mosaic .home-recs-tile:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}
@media (max-width: 1100px) {
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero .game-title,
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero2 .game-title {
    font-size: 1.15rem;
  }
}
@media (max-width: 768px) {
  .home-quick-games .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .home-quick-games__track {
    justify-content: flex-start;
    padding: 4px 16px 4px;
    gap: 6px;
  }
  .home-quick-game-chip {
    max-width: min(58vw, 220px);
    padding: 6px 10px;
    font-size: clamp(0.68rem, 3.1vw, 0.8rem);
  }
  .home-recs-section {
    padding: 6px 0 14px;
  }
  .home-recs-pager {
    gap: 0;
    position: relative;
  }
  .home-recs-pager__nav {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    touch-action: manipulation;
  }
  .home-recs-pager__nav--prev {
    left: 4px;
  }
  .home-recs-pager__nav--next {
    right: 4px;
  }
  .home-recs-pager__nav[hidden],
  .home-recs-pager__nav:disabled {
    display: none !important;
  }
  .home-recs-pager__viewport {
    height: auto !important;
    padding-bottom: 0 !important;
    max-height: none !important;
    position: relative;
    overflow: hidden !important;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }
  .home-recs-pager__track {
    position: relative;
    inset: auto;
    height: auto;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    touch-action: pan-y pinch-zoom;
  }
  .home-recs-page {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    touch-action: pan-y pinch-zoom;
  }
  .home-recs-section .home-recs-mosaic {
    touch-action: pan-y pinch-zoom;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile {
    touch-action: pan-y pinch-zoom;
  }
  .home-recs-section .home-recs-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-auto-flow: row;
    aspect-ratio: auto;
    height: auto;
    gap: 8px;
  }
  .home-recs-section .home-recs-mosaic[data-sparse="1"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
    flex-wrap: unset;
  }
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile {
    flex: unset;
    min-width: 0;
    max-width: none;
    max-height: none;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile,
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero,
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero2,
  .home-recs-section .home-recs-mosaic .home-recs-tile--sm,
  .home-recs-section .home-recs-mosaic .home-recs-tile--md,
  .home-recs-section .home-recs-mosaic .home-recs-tile--more,
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(n),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    border-radius: 12px;
    aspect-ratio: auto;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(1),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(2),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(7),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(8),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(1),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(2),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(7),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(8),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(1),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(2),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(7),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(8) {
    aspect-ratio: 5 / 4 !important;
    min-height: 132px;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(3),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(4),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(5),
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(6),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(3),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(4),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(5),
  .home-recs-section .home-recs-mosaic:not([data-sparse="1"]) .home-recs-tile:nth-child(6),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(3),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(4),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(5),
  .home-recs-section .home-recs-mosaic[data-sparse="1"] .home-recs-tile:nth-child(6) {
    aspect-ratio: 2 / 1 !important;
    min-height: 72px;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile:nth-child(n+9) {
    display: none !important;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile .game-title,
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero .game-title,
  .home-recs-section .home-recs-mosaic .home-recs-tile--hero2 .game-title {
    padding: 8px 10px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(8px + 10px + 1.2em * 2);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .home-recs-section .home-recs-mosaic .home-recs-tile:hover,
  .home-recs-section .home-recs-mosaic .home-recs-tile:focus-visible {
    transform: none;
    box-shadow: none;
  }
  .home-recs-pager__dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    gap: 10px;
    padding: 6px 0;
  }
  .home-recs-pager__dots[hidden] {
    display: none !important;
  }
  .home-recs-pager__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 10px 4px;
    background-clip: content-box;
    box-sizing: content-box;
    border-radius: 999px;
    cursor: pointer;
  }
  .home-recs-pager__dot.is-active {
    width: 24px;
  }
}
.home-hub-list-sub {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.home-hub-list-page .home-hub-list-grid.leaders-lots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-hub-list-page .home-hub-list-grid.leaders-lots-grid .category-lot-card {
  flex: none;
  max-width: 100%;
  width: 100%;
}
.home-hub-vygodno-lot-card .category-lot-link {
  position: relative;
}
.home-hub-vygodno-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  color: #052e23;
  background:
    linear-gradient(
      135deg,
      #6ee7b7 0%,
      #10b981 100%);
  border: 1px solid rgba(209, 250, 229, .6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}
@media (max-width: 1200px) {
  .home-hub-list-page .home-hub-list-grid.leaders-lots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .home-hub-list-page .home-hub-list-grid.leaders-lots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .home-hub-list-page .home-hub-list-grid.leaders-lots-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.home-hub-list-page .home-hub-list-empty {
  grid-column: 1 / -1;
}
.home-hub-list-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.home-hub-list-card .home-hub-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.home-hub-badge--new {
  background:
    linear-gradient(
      135deg,
      #38bdf8 0%,
      #2563eb 100%);
  border: 1px solid rgba(191, 219, 254, 0.45);
}
.home-hub-badge--pop {
  background:
    linear-gradient(
      135deg,
      #c084fc 0%,
      #7c3aed 100%);
  border: 1px solid rgba(233, 213, 255, 0.45);
}
.home-hub-badge--deal {
  background:
    linear-gradient(
      135deg,
      #34d399 0%,
      #059669 100%);
  border: 1px solid rgba(167, 243, 208, 0.45);
}
.home-hub-list-card[data-has-bg] .game-title {
  position: relative;
  z-index: 1;
}
.home-hub-list-empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-secondary);
}
@media (max-width: 980px) {
  .home-hub-cards {
    padding: 4px 0 4px;
  }
  .home-hub-cards .container.home-hub-cards__grid,
  .home-hub-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-hub-card {
    min-height: 168px;
    padding: 12px 10px 78px;
    border-radius: 14px;
    gap: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  }
  .home-hub-card:hover {
    transform: none;
  }
  .home-hub-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    margin: 0;
  }
  .home-hub-card__icon svg {
    width: 16px;
    height: 16px;
  }
  .home-hub-card__title {
    font-size: 0.92rem;
    line-height: 1.15;
  }
  .home-hub-card__text {
    display: none !important;
  }
  .home-hub-card__btn {
    margin-top: 2px;
    padding: 5px 8px;
    font-size: 0.62rem;
    border-radius: 999px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-hub-card__previews {
    right: 2px;
    bottom: 4px;
    width: 94%;
    height: 68px;
  }
  .home-hub-card__shot {
    width: 48%;
    border-radius: 8px;
    border-width: 1.5px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  }
  .home-hub-card__shot:nth-child(1) {
    left: -4%;
    bottom: 2px;
    transform: rotate(-12deg);
  }
  .home-hub-card__shot:nth-child(2) {
    left: 28%;
    bottom: 10px;
    transform: rotate(2deg);
  }
  .home-hub-card__shot:nth-child(3) {
    left: 58%;
    bottom: 1px;
    transform: rotate(12deg);
  }
  .home-hub-list-page .home-hub-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .home-hub-list-page .home-hub-list-grid.new-games-grid,
  .home-hub-list-page .home-hub-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-hub-list-page .home-hub-list-grid .new-game-card,
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg] {
    min-height: 0;
    width: 100%;
  }
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+1),
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+2),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+1),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+2) {
    aspect-ratio: 4 / 3;
  }
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+3),
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+4),
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+5),
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+6),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+3),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+4),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+5),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+6) {
    aspect-ratio: 16 / 8;
  }
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+7),
  .home-hub-list-page .home-hub-list-grid .new-game-card:nth-child(8n+8),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+7),
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg]:nth-child(8n+8) {
    aspect-ratio: 4 / 3;
  }
  .home-hub-list-page .home-hub-list-grid .new-game-card[data-has-bg] .game-title {
    padding: 8px 10px 10px;
    padding-right: 40px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(8px + 10px + 1.2em * 2);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
@media (max-width: 420px) {
  .home-quick-games__track {
    padding: 6px 12px 8px;
    gap: 5px;
  }
  .home-quick-game-chip {
    max-width: min(64vw, 180px);
    padding: 5px 9px;
    font-size: 0.68rem;
  }
  .home-hub-cards__grid {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .home-hub-card {
    min-height: 156px;
    padding: 10px 8px 70px;
    border-radius: 12px;
  }
  .home-hub-card__title {
    font-size: 0.8rem;
  }
  .home-hub-card__text {
    display: none !important;
  }
  .home-hub-card__btn {
    padding: 4px 6px;
    font-size: 0.56rem;
  }
  .home-hub-card__previews {
    height: 60px;
  }
}
.category-lot-price--out-of-stock,
.favorite-lot-item__price--out-of-stock {
  color: #ef4444 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}
.category-lot-qty--out-of-stock {
  color: #ef4444 !important;
  opacity: 0.85;
}
.favorite-lot-item.is-out-of-stock,
.favorite-lot-item.favorite-lot-item--out-of-stock {
  opacity: 0.85;
}
.btn.lot-remind-btn {
  background:
    linear-gradient(
      135deg,
      #3b82f6 0%,
      #2563eb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}
.btn.lot-remind-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  filter: brightness(1.05);
}
.sellpay-center-modal-overlay {
  animation: fadeInCenter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sellpay-center-modal-content {
  animation: slideUpCenter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInCenter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUpCenter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type=number] {
  -moz-appearance: textfield !important;
}
.form-input-number-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.form-input-number-wrap .form-input {
  padding-right: 32px !important;
  width: 100%;
}
.form-number-stepper {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: calc(100% - 8px);
  width: 24px;
  justify-content: center;
  z-index: 2;
}
.form-number-step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  user-select: none;
}
.form-number-step-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
}
.form-number-step-btn:active {
  background: rgba(99, 102, 241, 0.4);
  transform: scale(0.92);
}
.form-number-step-btn svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}
.create-lot-region-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.create-lot-region-chip {
  appearance: none;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.create-lot-region-chip:hover {
  border-color: var(--primary-color, #5c6ef8);
  background: var(--bg-tertiary);
}
.create-lot-region-chip.is-active {
  background: var(--primary-color, #5c6ef8);
  border-color: var(--primary-color, #5c6ef8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(92, 110, 248, 0.35);
}
.create-lot-form #regionGroup[hidden] {
  display: none !important;
}
.lots-region-filters {
  display: none !important;
}
.lots-region-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  margin-right: 4px;
  user-select: none;
}
.lots-region-chip {
  appearance: none;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border-color, #333);
  color: var(--text-secondary, #b0b3b8);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.lots-region-chip:hover {
  color: var(--text-primary, #fff);
  border-color: var(--primary-color, #5c6ef8);
  background: var(--bg-tertiary, #222);
}
.lots-region-chip.active {
  background: var(--primary-color, #5c6ef8);
  border-color: var(--primary-color, #5c6ef8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(92, 110, 248, 0.3);
}
.category-lot-region-badge,
.lot-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(92, 110, 248, 0.14);
  color: var(--primary-color, #6b7ef8);
  border: 1px solid rgba(92, 110, 248, 0.3);
  line-height: 1.3;
  white-space: nowrap;
}
.category-lot-region-wrap {
  display: none !important;
}
.seller-trust-card {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.seller-trust-card:hover {
  border-color: rgba(92, 110, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.seller-trust-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.seller-trust-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.seller-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.seller-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-primary, rgba(0, 0, 0, 0.2));
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
  min-width: 0;
}
.seller-trust-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.seller-trust-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.seller-trust-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seller-trust-lbl {
  font-size: 10px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(button, a, input:not([type="search"]):not(.category-search-input):not(#categorySearchInput):not(#lotsToolbarSearch):not(.search-input), select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--primary-color, #5c6ef8) !important;
  outline-offset: 2px !important;
}
:where(.category-search-input, #categorySearchInput, .lots-toolbar-search-input, #lotsToolbarSearch, .search-input, input[type="search"].category-search-input):focus-visible,
.category-search-input:focus,
.category-search-input:focus-visible,
#categorySearchInput:focus,
#categorySearchInput:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: none !important;
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}
.order-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.order-status.status-pending,
.order-status.status-pending_payment {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
[data-theme=dark] .order-status.status-pending,
[data-theme=dark] .order-status.status-pending_payment {
  color: #fbbf24 !important;
}
.order-status.status-paid,
.order-status.status-active {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #1d4ed8 !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}
[data-theme=dark] .order-status.status-paid,
[data-theme=dark] .order-status.status-active {
  color: #60a5fa !important;
}
.order-status.status-confirmed {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #15803d !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}
[data-theme=dark] .order-status.status-confirmed {
  color: #4ade80 !important;
}
.order-status.status-complaint,
.order-status.status-complaint_active,
.order-status.status-complaint_confirmed,
.order-status.status-refunded {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}
[data-theme=dark] .order-status.status-complaint,
[data-theme=dark] .order-status.status-complaint_active,
[data-theme=dark] .order-status.status-complaint_confirmed,
[data-theme=dark] .order-status.status-refunded {
  color: #f87171 !important;
}
.order-status.status-closed,
.order-status.status-expired {
  background: rgba(107, 114, 128, 0.14) !important;
  color: #4b5563 !important;
  border-color: rgba(107, 114, 128, 0.28) !important;
}
[data-theme=dark] .order-status.status-closed,
[data-theme=dark] .order-status.status-expired {
  color: #9ca3af !important;
}
#sellpayToastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100020;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.sellpay-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-secondary, #1a1e2b);
  color: var(--text-primary, #fff);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.sellpay-toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}
.sellpay-toast.toast-hide {
  opacity: 0;
  transform: translateY(8px);
}
.sellpay-toast.toast-success {
  border-left: 4px solid #22c55e;
}
.sellpay-toast.toast-error {
  border-left: 4px solid #ef4444;
}
.sellpay-toast.toast-info {
  border-left: 4px solid var(--primary-color, #5c6ef8);
}
.sellpay-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.home-recs-tile.sellpay-skeleton {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.sellpay-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 100%);
  animation: sellpayShimmer 1.4s infinite;
}
@keyframes sellpayShimmer {
  100% {
    transform: translateX(100%);
  }
}
.order-status-banner[hidden],
.order-dispute-banner[hidden],
.order-pending-banner[hidden] {
  display: none !important;
}
.order-status-banner {
  margin: 16px 0 20px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--card-bg, #181b24);
  border: 1px solid var(--border-color, #242938);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.15s ease;
}
.order-dispute-banner {
  border-left: 3px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.07) 0%, var(--card-bg, #181b24) 30%);
}
.order-pending-banner {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.07) 0%, var(--card-bg, #181b24) 30%);
}
.order-status-banner-content,
.dispute-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.order-status-banner-left,
.dispute-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}
.order-status-banner-icon,
.dispute-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-status-banner-icon--dispute,
.dispute-badge-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.order-status-banner-icon--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.order-status-banner-texts,
.dispute-banner-texts {
  flex: 1;
}
.order-status-banner-title,
.dispute-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 4px;
}
.order-status-banner-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
}
.order-status-banner-pill--dispute,
.dispute-arbitrage-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}
.order-status-banner-pill--pending {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.order-status-banner-desc,
.dispute-banner-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
  max-width: 640px;
}
.order-status-banner-right,
.dispute-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .order-status-banner {
    padding: 14px 16px;
    margin: 12px 0 16px 0;
  }
  .order-status-banner-content,
  .dispute-banner-content {
    gap: 12px;
  }
  .order-status-banner-left,
  .dispute-banner-left {
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
  }
  .order-status-banner-icon,
  .dispute-badge-icon {
    width: 36px;
    height: 36px;
    margin-top: 2px;
    flex-shrink: 0;
  }
  .order-status-banner-title,
  .dispute-banner-title {
    font-size: 14.5px;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }
  .order-status-banner-desc,
  .dispute-banner-desc {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .order-status-banner-right,
  .dispute-banner-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .order-status-timer-caption,
  .dispute-timer-caption {
    margin-bottom: 0;
    font-size: 12px;
  }
  .order-status-timer-widget,
  .dispute-timer-widget {
    padding: 5px 12px;
    font-size: 13.5px;
  }
}
.order-status-timer-caption,
.dispute-timer-caption {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 5px;
}
.order-status-timer-widget,
.dispute-timer-widget {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-secondary, #14161e);
  border: 1px solid var(--border-color, #282d3d);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.order-status-timer-widget--dispute,
.dispute-timer-widget {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.order-status-timer-widget--pending {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.order-status-pulse,
.payment-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
  animation: sellpayPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes sellpayPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
}

/* DLC Badges & Warnings */
.category-lot-dlc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.45);
  pointer-events: none;
}
.category-lot-dlc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.16);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.38);
  line-height: 1.3;
  white-space: nowrap;
}
.lot-dlc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.45);
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.lot-dlc-warning-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin: 0 0 16px 0;
  background: var(--bg-primary, #1a1a1a);
  border: 1px solid var(--border-color, #2d2d2d);
  border-radius: 12px;
  box-sizing: border-box;
}
[data-theme=dark] .lot-dlc-warning-banner,
html:not([data-theme=light]) .lot-dlc-warning-banner {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
}
.lot-dlc-warning-banner[hidden] {
  display: none !important;
}
.lot-dlc-warning-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.lot-dlc-warning-banner__icon svg {
  display: block;
}
.lot-dlc-warning-banner__content {
  flex: 1;
  min-width: 0;
}
.lot-dlc-warning-banner__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #e4e6eb);
  margin-bottom: 2px;
  line-height: 1.4;
}
.lot-dlc-warning-banner__tag {
  color: #f59e0b;
  font-weight: 600;
  margin-right: 5px;
}
.lot-dlc-warning-banner__desc {
  font-size: 12.5px;
  color: var(--text-secondary, #b0b3b8);
  line-height: 1.45;
}

/* HARD OVERRIDE: Remove all borders, outlines, rings and shadows from search inputs */
#categorySearchInput,
#categorySearchInput:focus,
#categorySearchInput:focus-visible,
#lotsToolbarSearch,
#lotsToolbarSearch:focus,
#lotsToolbarSearch:focus-visible,
.category-search-input,
.category-search-input:focus,
.category-search-input:focus-visible,
.category-search-box,
.category-search-box:focus,
.category-search-box:focus-within,
.category-search-inner,
.category-search-inner:focus,
.category-search-inner:focus-within {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-color: transparent !important;
}
