html { overflow-y: scroll; scrollbar-gutter: stable; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f7f7f8; transition: background-color .2s ease, color .2s ease; }
.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.nsfw-pixelated { filter: blur(22px) contrast(140%); transform: scale(1.08); }
[data-theme-toggle] { color: inherit; }
#siteSidebar #sidebarNavigation { display: flex !important; flex-direction: column !important; align-items: stretch !important; width: 100%; }
#siteSidebar #sidebarNavigation > a:not(.hidden) { display: flex !important; width: 100% !important; min-width: 0; flex: none !important; white-space: normal; }
#siteSidebar #sidebarNavigation > a > span { min-width: 0; overflow-wrap: anywhere; }
#siteSidebar .sidebar-publish-link:not(.hidden) { display: flex !important; }
/* ── Sidebar accordion groups («Мой кабинет» / «Сервис») ─────────────────
   My Page tabs are grouped so the panel stays short. JS re-assigns the
   Tailwind classes of the submenu links on every navigation, therefore the
   hover/active colours below are written with higher specificity. */
#siteSidebar .sidebar-group { display: flex; flex-direction: column; width: 100%; }
#siteSidebar .sidebar-group.hidden { display: none !important; }
#siteSidebar .sidebar-group > .sidebar-group-toggle { display: flex !important; width: 100%; min-width: 0; align-items: center; gap: .75rem; padding: .5rem .75rem; border: 0; border-radius: .75rem; background: transparent; color: #4b5563; font-family: inherit; font-size: .875rem; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
#siteSidebar .sidebar-group > .sidebar-group-toggle > span { min-width: 0; overflow-wrap: anywhere; }
#siteSidebar .sidebar-group > .sidebar-group-toggle:hover { background-color: #f3f4f6; }
#siteSidebar .sidebar-group-chevron { flex: 0 0 auto; margin-left: auto; color: #9ca3af; font-size: .6rem; transition: transform .2s ease; }
#siteSidebar .sidebar-group > .sidebar-group-toggle[aria-expanded="true"] .sidebar-group-chevron { transform: rotate(180deg); }
#siteSidebar .sidebar-group.is-active > .sidebar-group-toggle { color: #db2777; background-color: #fdf2f8; font-weight: 600; }
#siteSidebar .sidebar-group.is-active > .sidebar-group-toggle > i:not(.sidebar-group-chevron) { color: #ec4899; }
#siteSidebar .sidebar-submenu { display: none; flex-direction: column; gap: 1px; margin: .15rem 0 .4rem 2.15rem; padding-left: .55rem; border-left: 1px solid #e5e7eb; }
#siteSidebar .sidebar-submenu.is-open { display: flex; }
#siteSidebar .sidebar-submenu > a:not(.hidden) { display: flex !important; width: 100% !important; min-width: 0; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: .6rem; font-size: .8125rem; }
#siteSidebar .sidebar-submenu > a.hidden { display: none !important; }
#siteSidebar .sidebar-submenu > a > i { flex: 0 0 auto; width: 1rem; font-size: .72rem; text-align: center; }
#siteSidebar .sidebar-submenu > a > span { min-width: 0; overflow-wrap: anywhere; }
#siteSidebar .sidebar-submenu > a:hover { background-color: #f3f4f6; color: #111827; }
#siteSidebar .sidebar-submenu > a.text-pink-600 { background-color: #fdf2f8 !important; color: #db2777 !important; font-weight: 600; }
/* My Page tab strip — the only section switcher on mobile, where the sidebar
   is hidden (md:flex). Visibility mirrors the .my-page-active class. */
#myPageTabs { display: none; gap: .5rem; margin: 0 0 .25rem; padding: .25rem 0 .9rem; overflow-x: auto; scrollbar-width: thin; }
#storefrontContent.my-page-active #myPageTabs { display: flex; }
#myPageTabs .lots-tab { flex: 0 0 auto; white-space: nowrap; }
#myPageTabs .my-page-tabs__back::before { content: '\2190'; margin-right: .35rem; font-weight: 700; }
/* The tab strip duplicates the sidebar navigation on desktop — keep it for
   mobile only, where #siteSidebar is hidden. */
@media (min-width: 768px) {
  #storefrontContent.my-page-active #myPageTabs { display: none; }
}

/* Paid promotion toggle in the auction form: neutral card with a soft amber
   tint that appears only while the option is enabled. */
.promo-toggle-label:has(#postPromoEnabled:checked) { border-color: #fcd34d !important; background-color: #fffbeb !important; }
[data-theme="dark"] .promo-toggle-label:has(#postPromoEnabled:checked) { border-color: #7a5c1e !important; background-color: #2a2318 !important; }

/* Touch devices have no hover, so the delete-chat button must stay visible. */
@media (max-width: 767px) {
  #conversationList .conversation-delete { opacity: 1; }
}

#storefrontContent .auction-feed-actions { display: none !important; }
.auction-detail-bidding { min-width: 0; }
.auction-bidder-row { display: flex; min-width: 0; align-items: center; gap: 9px; }
.auction-bidder-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9999px; object-fit: cover; background: #383840; }
.auction-bidder-copy { min-width: 0; flex: 1; }
.auction-bidder-name { overflow: hidden; color: #e5e7eb; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.auction-bidder-amount { flex: 0 0 auto; color: #f9fafb; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.new-member-avatar { background: #202027; object-position: center; }
.new-member-welcome-image { display: block; width: 100%; max-height: 55vh; object-fit: contain; }
.rating-choice { display: block; cursor: pointer; }
.rating-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-choice-card { display: flex; min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; border: 1px solid #383840; border-radius: 14px; background: #1b1b20; padding: 14px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.rating-choice-title { color: #f3f4f6; font-size: 13px; font-weight: 700; }
.rating-choice-description { color: #a5a5b2; font-size: 11px; }
.rating-choice > input:checked + .rating-choice-card { border-color: #db2777; background: #3b1d31; box-shadow: 0 0 0 1px #db2777; }
.rating-choice > input:focus-visible + .rating-choice-card { outline: 2px solid #f9a8d4; outline-offset: 2px; }
[data-theme="light"] { color-scheme: light; }
[data-theme="light"] body { background-color: #f3f5f9; color: #172033; }
[data-theme="light"] [class~="text-gray-900"],
[data-theme="light"] [class~="text-gray-800"] { color: #172033 !important; }
[data-theme="light"] [class~="text-gray-700"] { color: #293449 !important; }
[data-theme="light"] [class~="text-gray-600"] { color: #3d485b !important; }
[data-theme="light"] [class~="text-gray-500"] { color: #536075 !important; }
[data-theme="light"] [class~="text-gray-400"] { color: #5e6a7d !important; }
[data-theme="light"] [class~="text-gray-300"] { color: #738096 !important; }
[data-theme="light"] [class~="bg-gray-900"] { background-color: #ffffff !important; }
[data-theme="light"] [class~="bg-gray-800"] { background-color: #f3f5f9 !important; }
[data-theme="light"] [class~="border-gray-100"],
[data-theme="light"] [class~="border-gray-200"],
[data-theme="light"] [class~="border-gray-300"] { border-color: #d8dee8 !important; }
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="light"] textarea,
[data-theme="light"] select { background-color: #fff; color: #172033; border-color: #cbd3df; }
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #5e6a7d; opacity: 1; }
[data-theme="light"] [class~="bg-red-50/50"] { background-color: #fff1f2 !important; }
[data-theme="light"] [class~="text-red-900"] { color: #7f1d1d !important; }
[data-theme="light"] [class~="text-red-700/80"] { color: #a12828 !important; }
[data-theme="light"] #tabSettingsContent .text-white,
[data-theme="light"] #tabSettingsContent .text-gray-200 { color: #172033 !important; }
[data-theme="light"] #tabSettingsContent .border-gray-800 { border-color: #d8dee8 !important; }
#profileAvatar { border-color: #f3f5f9; }
[data-theme="dark"] #profileAvatar { border-color: #111114; }
[data-theme="light"] #profileAvatarWrap { background-color: #f3f5f9; border-color: #f3f5f9 !important; }
[data-theme="dark"] #profileAvatarWrap { background-color: #292930; border-color: #111114 !important; }
/* Light theme: force profile tab backgrounds white regardless of OS dark: variants */
[data-theme="light"] #tabProfileContent section { background-color: #ffffff !important; }
[data-theme="light"] #tabProfileContent [class~="dark:bg-gray-800"] { background-color: #ffffff !important; }
[data-theme="light"] #tabProfileContent [class~="dark:border-gray-700"] { border-color: #d8dee8 !important; }
/* Light theme: changelog cards stay light even when the OS prefers dark (dark: variants) */
[data-theme="light"] #tabUpdatesContent { background-color: #ffffff !important; color: #172033 !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:bg-gray-800"],
[data-theme="light"] #tabUpdatesContent [class~="dark:bg-gray-900"] { background-color: #ffffff !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:bg-gray-700"] { background-color: #f3f5f9 !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:border-gray-700"],
[data-theme="light"] #tabUpdatesContent [class~="dark:border-gray-600"] { border-color: #d8dee8 !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:text-white"] { color: #172033 !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:text-gray-400"] { color: #536075 !important; }
[data-theme="light"] #tabUpdatesContent [class~="dark:hover:bg-gray-700"]:hover { background-color: #eef1f6 !important; }
#tabUpdatesContent .text-blue-600 { color: #2563eb; }
#tabUpdatesContent .text-red-500 { color: #ef4444; }
[data-theme="dark"] #tabUpdatesContent .text-blue-600 { color: #60a5fa; }
[data-theme="dark"] #tabUpdatesContent .text-red-500 { color: #f87171; }
.inline-edit-row:hover > .inline-edit-btn { opacity: 1; }
.inline-edit-btn { opacity: 0; transition: opacity 0.15s ease; }
.inline-edit-btn:hover { opacity: 1; }
[data-theme="light"] #storefrontHero [class~="bg-gray-100"] { background-color: #f3f5f9 !important; }
#positionToolCropWrap { touch-action: none; max-width: 100%; }
/* ── Avatar editor (VK-style: the crop frame is dragged, not the image) ── */
#avatarEditorOverlay { color: #172033; }
[data-theme="dark"] #avatarEditorOverlay { color: #f3f4f6; }
#avatarEditorModal { background-color: #ffffff; border-color: #e2e6ee; }
[data-theme="dark"] #avatarEditorModal { background-color: #1b1b20; border-color: #303039; }
#avatarEditorOverlay .avatar-editor-muted { color: #5b6779; }
[data-theme="dark"] #avatarEditorOverlay .avatar-editor-muted { color: #a5a5b2; }
#avatarEditorOverlay .avatar-editor-close { color: #6b7688; }
#avatarEditorOverlay .avatar-editor-close:hover { color: #172033; }
[data-theme="dark"] #avatarEditorOverlay .avatar-editor-close { color: #a5a5b2; }
[data-theme="dark"] #avatarEditorOverlay .avatar-editor-close:hover { color: #ffffff; }
#avatarEditorOverlay .avatar-editor-btn-ghost { border-color: #d8dee8; background-color: transparent; color: #172033; }
#avatarEditorOverlay .avatar-editor-btn-ghost:hover { background-color: #f3f5f9; }
[data-theme="dark"] #avatarEditorOverlay .avatar-editor-btn-ghost { border-color: #42424c; color: #f3f4f6; }
[data-theme="dark"] #avatarEditorOverlay .avatar-editor-btn-ghost:hover { background-color: #26262e; }
#avatarEditorSaveBtn { background-color: #ec4899; }
#avatarEditorSaveBtn:hover { background-color: #db2777; }
#avatarEditorSaveBtn:disabled { opacity: 0.6; cursor: progress; }
.avatar-editor-stage {
  width: 420px;
  height: 420px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background-color: #9b9ba4;
  touch-action: none;
}
[data-theme="dark"] .avatar-editor-stage { background-color: #3a3a44; }
.avatar-editor-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.avatar-editor-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  cursor: move;
  touch-action: none;
}
.avatar-editor-frame.is-dragging { cursor: grabbing; }
.avatar-editor-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.avatar-editor-mask {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.avatar-editor-circle {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.avatar-editor-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
}
.avatar-editor-frame.is-dragging .avatar-editor-grid,
.avatar-editor-frame:hover .avatar-editor-grid { opacity: 1; }
.avatar-editor-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.avatar-editor-handle.is-nw { left: 0; top: 0; cursor: nwse-resize; }
.avatar-editor-handle.is-ne { right: 0; top: 0; cursor: nesw-resize; }
.avatar-editor-handle.is-sw { left: 0; bottom: 0; cursor: nesw-resize; }
.avatar-editor-handle.is-se { right: 0; bottom: 0; cursor: nwse-resize; }
[data-theme="light"] #positionToolOverlay [class~="text-white"] { color: #172033 !important; }
[data-theme="light"] #positionToolOverlay [class~="text-gray-300"] { color: #293449 !important; }
[data-theme="light"] #positionToolOverlay [class~="text-gray-400"] { color: #536075 !important; }
[data-theme="light"] #positionToolOverlay [class~="text-gray-500"] { color: #536075 !important; }
[data-theme="light"] #createAuctionPage { color: #172033; }
[data-theme="light"] #editAuctionPage { color: #172033; }
[data-theme="light"] #createAuctionPage .text-white { color: #ffffff !important; }
[data-theme="light"] #editAuctionPage .text-white { color: #ffffff !important; }
[data-theme="light"] #tabSettingsContent [class~="text-gray-400"] { color: #536075 !important; }
[data-theme="light"] #createAuctionPage .text-gray-400,
[data-theme="light"] #editAuctionPage .text-gray-400 { color: #536075 !important; }
[data-theme="light"] #createAuctionPage .text-gray-500,
[data-theme="light"] #editAuctionPage .text-gray-500 { color: #536075 !important; }
[data-theme="light"] #createAuctionPage .text-gray-600,
[data-theme="light"] #editAuctionPage .text-gray-600 { color: #3d485b !important; }
[data-theme="light"] #createAuctionPage .text-gray-700,
[data-theme="light"] #editAuctionPage .text-gray-700 { color: #293449 !important; }
[data-theme="light"] #createAuctionPage .bg-white,
[data-theme="light"] #editAuctionPage .bg-white { background-color: #ffffff !important; }
[data-theme="light"] #createAuctionPage .bg-gray-50,
[data-theme="light"] #editAuctionPage .bg-gray-50 { background-color: #f8fafc !important; }
[data-theme="light"] #createAuctionPage .bg-gray-100,
[data-theme="light"] #editAuctionPage .bg-gray-100 { background-color: #eef2f7 !important; }
[data-theme="light"] #createAuctionPage .border-gray-100,
[data-theme="light"] #editAuctionPage .border-gray-100,
[data-theme="light"] #createAuctionPage .border-gray-200,
[data-theme="light"] #editAuctionPage .border-gray-200 { border-color: #d8dee8 !important; }
[data-theme="light"] #createAuctionPage #ratingSection,
[data-theme="light"] #editAuctionPage #editRatingSection { background-color: #ffffff !important; border-color: #d8dee8 !important; }
[data-theme="light"] #createAuctionPage #ratingSection [class~="text-white"],
[data-theme="light"] #editAuctionPage #editRatingSection [class~="text-white"] { color: #172033 !important; }
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body { background-color: #111114; color: #f3f4f6; }
[data-theme="dark"] [class~="bg-white"] { background-color: #1b1b20 !important; }
[data-theme="dark"] [class~="bg-gray-50"] { background-color: #222228 !important; }
[data-theme="dark"] [class~="bg-gray-100"] { background-color: #292930 !important; }
[data-theme="dark"] [class~="bg-gray-200"] { background-color: #34343c !important; }
[data-theme="dark"] [class~="bg-gray-300"] { background-color: #44444e !important; }
[data-theme="dark"] [class~="bg-pink-50"] { background-color: #321d2c !important; }
[data-theme="dark"] [class~="bg-pink-100"] { background-color: #422036 !important; }
[data-theme="dark"] [class~="bg-indigo-50"] { background-color: #25243a !important; }
[data-theme="dark"] [class~="bg-emerald-50"] { background-color: #193129 !important; }
[data-theme="dark"] [class*="bg-red-50"] { background-color: #351e24 !important; }
[data-theme="dark"] [class~="bg-gray-800"] { background-color: #292930 !important; }
[data-theme="dark"] [class~="bg-gray-900"] { background-color: #1b1b20 !important; }
[data-theme="dark"] [class~="bg-black"] { background-color: #111114 !important; }
[data-theme="dark"] [class~="text-gray-900"],
[data-theme="dark"] [class~="text-gray-800"],
[data-theme="dark"] [class~="text-gray-700"],
[data-theme="dark"] [class~="text-gray-600"],
[data-theme="dark"] [class~="text-black"] { color: #f3f4f6 !important; }
[data-theme="dark"] [class~="text-gray-500"] { color: #b1b1be !important; }
[data-theme="dark"] [class~="text-gray-400"] { color: #a5a5b2 !important; }
[data-theme="dark"] [class~="text-gray-300"] { color: #c4c4cf !important; }
[data-theme="dark"] [class~="border-gray-100"],
[data-theme="dark"] [class~="border-gray-200"],
[data-theme="dark"] [class~="border-gray-300"],
[data-theme="dark"] [class~="border-white"] { border-color: #383840 !important; }
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select { background-color: #222228; color: #f3f4f6; border-color: #42424c; }
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #a5a5b2; }
[data-theme="dark"] #createAuctionPage .text-gray-900,
[data-theme="dark"] #editAuctionPage .text-gray-900,
[data-theme="dark"] #createAuctionPage .text-gray-800,
[data-theme="dark"] #editAuctionPage .text-gray-800,
[data-theme="dark"] #createAuctionPage .text-gray-700,
[data-theme="dark"] #editAuctionPage .text-gray-700,
[data-theme="dark"] #createAuctionPage .text-gray-600,
[data-theme="dark"] #editAuctionPage .text-gray-600 { color: #f3f4f6 !important; }
[data-theme="dark"] #createAuctionPage .text-gray-500,
[data-theme="dark"] #editAuctionPage .text-gray-500,
[data-theme="dark"] #createAuctionPage .text-gray-400,
[data-theme="dark"] #editAuctionPage .text-gray-400 { color: #b1b1be !important; }
[data-theme="dark"] #createAuctionPage [class~="bg-white"],
[data-theme="dark"] #editAuctionPage [class~="bg-white"] { background-color: #1b1b20 !important; }
[data-theme="dark"] #createAuctionPage [class~="bg-gray-50"],
[data-theme="dark"] #editAuctionPage [class~="bg-gray-50"] { background-color: #222228 !important; }
[data-theme="dark"] #createAuctionPage [class~="bg-gray-100"],
[data-theme="dark"] #editAuctionPage [class~="bg-gray-100"] { background-color: #292930 !important; }
[data-theme="dark"] #createAuctionPage [class~="border-gray-100"],
[data-theme="dark"] #editAuctionPage [class~="border-gray-100"],
[data-theme="dark"] #createAuctionPage [class~="border-gray-200"],
[data-theme="dark"] #editAuctionPage [class~="border-gray-200"] { border-color: #383840 !important; }
[data-theme="dark"] .custom-scroll::-webkit-scrollbar-thumb { background: #555560; }
.admin-dashboard-tab[aria-selected="true"] { background: #fce7f3; color: #be185d; }
[data-theme="dark"] .admin-dashboard-tab[aria-selected="true"] { background: #422036; color: #f9a8d4; }
.admin-customer-avatar { background: linear-gradient(135deg, #fce7f3, #e0e7ff); color: #9d174d; }
.auction-category { flex: 0 0 auto; border: 1px solid #383840; border-radius: 999px; padding: 8px 14px; color: #b1b1be; background: #1b1b20; font-size: 12px; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.lots-tab { flex: 0 0 auto; border: 1px solid #383840; border-radius: 999px; padding: 6px 14px; color: #b1b1be; background: #1b1b20; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.lots-tab:hover, .lots-tab.active { border-color: #db2777; background: #3b1d31; color: #f9a8d4; }
[data-theme="light"] .lots-tab { border-color: #d8dee8; background: #fff; color: #536075; }
[data-theme="light"] .lots-tab:hover, [data-theme="light"] .lots-tab.active { border-color: #db2777; background: #fce7f3; color: #be185d; }
.auction-category:hover, .auction-category.active { border-color: #db2777; background: #3b1d31; color: #f9a8d4; }
.auction-card { min-width: 0; overflow: hidden; border: 1px solid #303039; border-radius: 16px; background: #1b1b20; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.auction-card:hover { transform: translateY(-3px); border-color: #a52c6a; box-shadow: 0 14px 32px #0005; }
.auction-card img { transition: transform .3s ease; }
.auction-card:hover img { transform: scale(1.03); }
.auction-time { font-variant-numeric: tabular-nums; }
.auction-countdown-ended { color: #9ca3af !important; }
#auctionDetailPage { min-height: 70vh; }
[data-theme="light"] .auction-category { border-color: #d8dee8; background: #fff; color: #536075; }
[data-theme="light"] .auction-category:hover, [data-theme="light"] .auction-category.active { border-color: #db2777; background: #fce7f3; color: #be185d; }
[data-theme="light"] .auction-card { border-color: #e5e7eb; background: #fff; }

/* ====== Auction feed: lot cards (storefront grid) ====== */
.auction-feed-title { margin: 22px 0 2px; color: #f5f5f7; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-align: center; }
.auction-feed-title:empty { display: none; }
.auction-feed-controls { display: flex; justify-content: center; padding: 2px 0 6px; }
.auction-sort { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #2c2733; border-radius: 10px; background: #151519; color: #a8a8b6; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.auction-sort select { border: 0; border-radius: 0; padding: 0 18px 0 0; background: transparent; color: #f5f5f7; font-size: 12.5px; font-weight: 600; outline: none; cursor: pointer; }
.auction-sort select option { background: #1b1b20; color: #f5f5f7; }
/* Feed chrome (category chips, sort select, feed heading) is toggled by JS and must
   stay hidden outside the auction feed — the display rules above would otherwise
   win over Tailwind's .hidden utility. */
.auction-feed-controls.hidden,
.auction-feed-title.hidden,
#auctionCategories.hidden { display: none !important; }
.lot-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #2c2733; border-radius: 16px; background: #151519; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.lot-card:hover { transform: translateY(-3px); border-color: #6d3a6b; box-shadow: 0 16px 34px #00000073; }
.lot-card--hot { border-color: #4a2a4d; box-shadow: 0 0 0 1px #a855f729, 0 0 20px #a855f71a, 0 10px 26px #4c1d5b38; }
.lot-card--hot:hover { border-color: #a52c6a; box-shadow: 0 0 0 1px #db27774d, 0 16px 34px #00000073; }
.lot-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #202028; }
@supports not (aspect-ratio: 1 / 1) { .lot-card__media { height: 220px; } }
@media (max-width: 640px) { .lot-card__media { aspect-ratio: 16 / 10; } }
.lot-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lot-card:hover .lot-card__image { transform: scale(1.03); }
.lot-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; pointer-events: none; backdrop-filter: blur(6px); }
.lot-card__badge--time { color: #f9a8d4; background: #3b1d31eb; border: 1px solid #db277773; }
.lot-card__badge--new { color: #ffffff; background: #22c55e; border: 1px solid #16a34a; }
.lot-card__badge--ended { color: #d4d4d8; background: #27272ae6; border: 1px solid #52525b; }
.lot-card__body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 14px 16px 16px; }
.lot-card__title { display: -webkit-box; overflow: hidden; color: #f5f5f7; font-size: 16px; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lot-card__author { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; min-width: 0; color: #b9b9c6; font-size: 12px; text-decoration: none; }
.lot-card__author:hover { color: #f9a8d4; }
.lot-card__avatar { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 999px; object-fit: cover; background: #3a3a44; }
.lot-card__author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Seller role tag — same outlined pill as .role-tag (border + text, no fill) */
.lot-card__role-badge { flex: 0 0 auto; border-radius: 8px; padding: 2px 8px; font-size: 10px; font-weight: 900; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; border: 1px solid #38bdf8; background: transparent; color: #38bdf8; }
.lot-card__role-badge--newbie { border-color: #2dd4bf; color: #2dd4bf; }
[data-theme="light"] .lot-card__role-badge--admin { color: #0284c7; border-color: #0284c7; }
[data-theme="light"] .lot-card__role-badge--newbie { color: #0d9488; border-color: #0d9488; }
.lot-card__prices { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 12px; }
.lot-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lot-card__label { color: #a8a8b6; font-size: 12.5px; line-height: 1.3; }
.lot-card__value { color: #f5f5f7; font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lot-card__value--empty { color: #6b6b78; font-weight: 600; }
.lot-card__amount { font-size: 15px; }
.lot-card__currency { margin-left: 3px; font-size: 12px; color: #d4d4d8; }
[data-theme="light"] .auction-feed-title { color: #172033; }
[data-theme="light"] .auction-sort { border-color: #e5e7eb; background: #fff; color: #536075; }
[data-theme="light"] .auction-sort select { color: #172033; }
[data-theme="light"] .auction-sort select option { background: #fff; color: #172033; }
[data-theme="light"] .lot-card { border-color: #e5e7eb; background: #fff; }
[data-theme="light"] .lot-card:hover { border-color: #db2777; box-shadow: 0 16px 30px #1720331f; }
[data-theme="light"] .lot-card--hot { border-color: #f2cfe3; box-shadow: 0 0 0 1px #db277714; }
[data-theme="light"] .lot-card__media { background: #f3f4f6; }
[data-theme="light"] .lot-card__title, [data-theme="light"] .lot-card__value { color: #172033; }
[data-theme="light"] .lot-card__author { color: #536075; }
[data-theme="light"] .lot-card__author:hover { color: #be185d; }
[data-theme="light"] .lot-card__label { color: #6b7280; }
[data-theme="light"] .lot-card__currency { color: #374151; }
[data-theme="light"] .lot-card__value--empty { color: #9ca3af; }
[data-theme="light"] .lot-card__badge--time { color: #be185d; background: #fce7f3f2; border-color: #f9a8d4; }
[data-theme="light"] .lot-card__badge--ended { color: #4b5563; background: #f3f4f6f2; border-color: #d1d5db; }
[data-theme="light"] .rating-choice-card { border-color: #d8dee8; background: #fff; }
[data-theme="light"] .rating-choice-title { color: #172033; }
[data-theme="light"] .rating-choice-description { color: #536075; }
[data-theme="light"] .rating-choice > input:checked + .rating-choice-card { border-color: #db2777; background: #fce7f3; }
[data-theme="light"] #auctionDetailPage .text-white { color: #172033 !important; }
[data-theme="light"] #auctionDetailPage [class~="text-gray-200"] { color: #293449 !important; }
[data-theme="light"] #auctionDetailPage [class~="text-gray-300"] { color: #3d485b !important; }
[data-theme="light"] #auctionDetailPage [class~="text-gray-400"],
[data-theme="light"] #auctionDetailPage [class~="text-gray-500"] { color: #536075 !important; }
[data-theme="light"] #auctionDetailPage [class~="bg-gray-900"] { background: #fff !important; }
[data-theme="light"] #auctionDetailPage [class~="bg-gray-800"] { background: #f3f5f9 !important; }
[data-theme="light"] #auctionDetailPage [class~="border-gray-800"] { border-color: #d8dee8 !important; }
[data-theme="light"] #auctionDetailPage [class~="border-gray-700"] { border-color: #d8dee8 !important; }
/* The author card and the bidders box use the opacity variants
   (bg-gray-900/60, bg-gray-800/50, border-gray-800/…) which the attribute
   selectors above do not match — without these overrides the card keeps its
   dark background while the text is already recoloured for the light theme,
   so the seller name becomes unreadable. */
[data-theme="light"] #auctionDetailPage #auctionDetailAuthorCard {
  background: #ffffff !important;
  border-color: #d8dee8 !important;
}
[data-theme="light"] #auctionDetailPage #auctionDetailAuthorCard [class~="bg-gray-800"] { background: #eef1f6 !important; }
[data-theme="light"] #auctionDetailPage #auctionDetailAuthorCard [class~="border-gray-700"] { border-color: #d8dee8 !important; }
/* Keep the ADMIN / NEW MEMBER pills dark so they stay readable on the white card. */
[data-theme="light"] #auctionDetailPage #auctionDetailAuthorCard [class~="bg-gray-900"] { background: #111827 !important; }
/* Bidders list: the name/amount colours were hard-coded for the dark theme,
   so they stayed near-white on the now-light bidders box. */
[data-theme="light"] #auctionDetailPage .auction-bidder-name { color: #293449 !important; }
[data-theme="light"] #auctionDetailPage .auction-bidder-amount { color: #172033 !important; }
[data-theme="light"] #auctionDetailPage .auction-bidder-avatar { background: #eef1f6; }
[data-theme="light"] #auctionDetailPage .new-member-avatar { background: #eef1f6; }
[data-theme="light"] #auctionDetailPage .auction-bidders-list [class~="border-gray-700"] { border-color: #e5e7eb !important; }
[data-theme="light"] #auctionDetailPage #auctionBiddersToggle { border-color: #e5e7eb !important; }
/* Buyout box + pastel accent text (amber/emerald/sky/pink/red) are tuned for
   the dark canvas and wash out on white — darken them in the light theme. */
[data-theme="light"] #auctionDetailPage #auctionBuyoutWrap { background: #fffbeb !important; border-color: #fcd34d !important; }
[data-theme="light"] #auctionDetailPage [class~="text-amber-300"],
[data-theme="light"] #auctionDetailPage [class~="text-amber-400"] { color: #b45309 !important; }
[data-theme="light"] #auctionDetailPage [class~="text-emerald-400"] { color: #047857 !important; }
[data-theme="light"] #auctionDetailPage [class~="text-pink-400"] { color: #be185d !important; }
[data-theme="light"] #auctionDetailPage [class~="text-red-400"] { color: #b91c1c !important; }
[data-theme="light"] #auctionDetailPage #auctionBidButton { color: #ffffff !important; }
[data-theme="dark"] #siteSidebar,
[data-theme="dark"] #siteSidebar [class~="bg-white"],
[data-theme="dark"] #siteSidebar [class~="bg-gray-50"] { background-color: #16161c !important; }
[data-theme="dark"] #siteSidebar #sidebarNavigation > a:hover,
[data-theme="dark"] #siteSidebar [data-theme-toggle]:hover { background-color: #2c2c37 !important; color: #f3f4f6 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
[data-theme="dark"] #siteSidebar #sidebarNavigation > a:hover span,
[data-theme="dark"] #siteSidebar [data-theme-toggle]:hover span { color: #f3f4f6 !important; }
[data-theme="dark"] #siteSidebar #sidebarNavigation > a:hover i,
[data-theme="dark"] #siteSidebar [data-theme-toggle]:hover i { color: #f9a8d4 !important; }
[data-theme="dark"] #siteSidebar .sidebar-group > .sidebar-group-toggle { color: #c7c7d1; }
[data-theme="dark"] #siteSidebar .sidebar-group > .sidebar-group-toggle:hover,
[data-theme="dark"] #siteSidebar .sidebar-submenu > a:hover { background-color: #2c2c37 !important; color: #f3f4f6 !important; }
[data-theme="dark"] #siteSidebar .sidebar-group.is-active > .sidebar-group-toggle { background-color: #3b1d31 !important; color: #f9a8d4 !important; }
[data-theme="dark"] #siteSidebar .sidebar-group.is-active > .sidebar-group-toggle > i:not(.sidebar-group-chevron) { color: #f9a8d4 !important; }
[data-theme="dark"] #siteSidebar .sidebar-submenu { border-left-color: #2c2c37; }
[data-theme="dark"] #siteSidebar .sidebar-submenu > a { color: #a9a9b6; }
[data-theme="dark"] #siteSidebar .sidebar-submenu > a.text-pink-600 { background-color: #3b1d31 !important; color: #f9a8d4 !important; }
[data-theme="light"] #storefrontHero { background-color: #f3f5f9 !important; }
[data-theme="light"] #storefrontHero img { opacity: 1 !important; }
[data-theme="light"] #storefrontHero div[class*="bg-gradient-to-t"] { background-image: none !important; }
[data-theme="light"] #storefrontHero [class~="bg-black/60"],
[data-theme="light"] #storefrontHero [class~="bg-black/65"],
[data-theme="light"] #storefrontHero [class~="bg-black/70"] { background-color: rgba(255, 255, 255, .78) !important; }
[data-theme="light"] #storefrontHero .text-white,
[data-theme="light"] #storefrontHero [class~="text-white"] { color: #172033 !important; }
@media (max-width: 640px) { #auctionDetailPage { padding-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Toast notification animations */
#toastMessage { transform-origin: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ====== Role tags (ADMIN / NEW MEMBER) ======
   One outlined pill used everywhere: own profile hero, public profile,
   auction author card and lot cards. Border + text only, no fill. */
.role-tag {
  border-radius: 8px;
  border: 1px solid #38bdf8;
  background: transparent;
  color: #38bdf8;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.role-tag--newbie { border-color: #2dd4bf; color: #2dd4bf; }
[data-theme="light"] .role-tag--admin { border-color: #0284c7; color: #0284c7; }
[data-theme="light"] .role-tag--newbie { border-color: #0d9488; color: #0d9488; }
/* Kept for older markup — the pill itself is already transparent. */
.role-badge-newbie {
  background: transparent;
}
#profilePaymentMethods { margin-top: 6px; margin-bottom: 12px; }
#adminOnlineBadge { margin-bottom: 2px; }
#profileHeroGroup { padding-top: 6rem; }
@media (min-width: 768px) { #profileHeroGroup { padding-top: 7rem; } }

/* ====== Public user profile page ====== */
.profile-avatar-ring { background: linear-gradient(135deg, #f472b6 0%, #ec4899 35%, #a855f7 70%, #38bdf8 100%); }
/* Avatar always keeps its gradient ring; online state is shown only via the status pill (#userProfileOnline) */
.profile-tab { position: relative; flex: 0 0 auto; padding: 0 2px 12px; border: 0; background: transparent; color: #a5a5b2; font-size: 15px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: color .2s ease; }
.profile-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ec4899, #a855f7); opacity: 0; transition: opacity .2s ease; }
.profile-tab:hover, .profile-tab.active { color: #f9a8d4; }
.profile-tab.active::after { opacity: 1; }
[data-theme="light"] .profile-tab { color: #536075; }
[data-theme="light"] .profile-tab:hover,
[data-theme="light"] .profile-tab.active { color: #be185d; }
.profile-social-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 10px; padding: 7px 12px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: filter .2s ease, transform .2s ease; }
.profile-social-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-social-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.profile-social-default { background: #3f3f4a; }
.profile-social-discord { background: #5865f2; }
.profile-social-telegram { background: #229ed9; }
.profile-social-youtube { background: #ef4444; }
.profile-social-boosty { background: #eb4762; }
.profile-social-lava { background: #f97316; }
.profile-social-twitter { background: #0f172a; }
.profile-social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.profile-social-vk { background: #0077ff; }
.profile-social-patreon { background: #f96854; }
.profile-social-twitch { background: #9146ff; }
.profile-work-card { min-width: 0; overflow: hidden; border: 1px solid #303039; border-radius: 16px; background: #1b1b20; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.profile-work-card:hover { transform: translateY(-3px); border-color: #a52c6a; box-shadow: 0 14px 32px #0005; }
[data-theme="light"] .profile-work-card { border-color: #e5e7eb; background: #fff; }
/* ====== Presence pills (Online / Offline) ======
   The dark theme repaints .text-gray-500 / .border-gray-200 / .bg-white with
   !important, which used to beat the green online state. Keep these rules
   !important as well so the pill is really green while the user is online. */
#userProfileOnline,
#adminOnlineBadge { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

#userProfileOnline[data-online="true"],
[data-theme="dark"] #userProfileOnline[data-online="true"] {
  color: #ecfdf5 !important;
  border-color: rgba(52, 211, 153, .9) !important;
  background-color: rgba(5, 150, 105, .92) !important;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .35);
}
[data-theme="light"] #userProfileOnline[data-online="true"] {
  color: #065f46 !important;
  border-color: #059669 !important;
  background-color: #d1fae5 !important;
  box-shadow: 0 6px 14px rgba(5, 150, 105, .18);
}
#userProfileOnline[data-online="false"] { color: #9ca3af !important; }
[data-theme="dark"] #userProfileOnline[data-online="false"] {
  color: #a5a5b2 !important;
  border-color: #383840 !important;
  background-color: #292930 !important;
}
[data-theme="light"] #userProfileOnline[data-online="false"] {
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
  background-color: #f8fafc !important;
}

#adminOnlineBadge[data-online="true"],
[data-theme="dark"] #adminOnlineBadge[data-online="true"] {
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, .5) !important;
  background-color: rgba(16, 185, 129, .25) !important;
}
[data-theme="light"] #adminOnlineBadge[data-online="true"] {
  color: #047857 !important;
  border-color: #059669 !important;
  background-color: rgba(16, 185, 129, .22) !important;
}
[data-theme="dark"] #adminOnlineBadge[data-online="false"] {
  color: #c4c4cf !important;
  border-color: #383840 !important;
  background-color: #292930 !important;
}
[data-theme="light"] #adminOnlineBadge[data-online="false"] {
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
  background-color: #f1f5f9 !important;
}

#userProfileOnline[data-online="true"] #userProfileOnlineDot,
#adminOnlineBadge[data-online="true"] #adminOnlineDot {
  background-color: #34d399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
  animation: presencePulse 2s ease-in-out infinite;
}
@keyframes presencePulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  #userProfileOnline[data-online="true"] #userProfileOnlineDot,
  #adminOnlineBadge[data-online="true"] #adminOnlineDot { animation: none; }
}
#userProfileTabs::-webkit-scrollbar { height: 0; }

/* ====== Support tab (light/dark) ======
   The block used `dark:` variants while the site theme is driven by [data-theme],
   so a dark OS theme produced a dark card with light-theme text. Explicit rules below. */
.support-card { background-color: #1b1b20; border-color: #303039; }
.support-card .support-heading { color: #f3f4f6; }
.support-card .support-muted { color: #a5a5b2; }
.support-card input,
.support-card select,
.support-card textarea { background-color: #222228; border-color: #42424c; color: #f3f4f6; }
.support-card input::placeholder,
.support-card textarea::placeholder { color: #a5a5b2; }
[data-theme="light"] .support-card { background-color: #ffffff !important; border-color: #d8dee8 !important; }
[data-theme="light"] .support-card .support-heading { color: #172033 !important; }
[data-theme="light"] .support-card .support-muted { color: #536075 !important; }
[data-theme="light"] .support-card input,
[data-theme="light"] .support-card select,
[data-theme="light"] .support-card textarea { background-color: #ffffff !important; border-color: #d8dee8 !important; color: #172033 !important; }
[data-theme="light"] .support-card input::placeholder,
[data-theme="light"] .support-card textarea::placeholder { color: #8a94a6 !important; }

/* ====== Message composer ======
   Placeholder is a hint only: keep it translucent so it never looks like typed text. */
.message-input::placeholder { color: #9ca3af; opacity: .55; }
[data-theme="dark"] .message-input::placeholder { color: #a5a5b2; opacity: .5; }
[data-theme="light"] .message-input::placeholder { color: #8a94a6; opacity: .75; }

/* ====== Admin panel · Customers list ======
   The cards used light-only Tailwind utilities (`bg-gray-50/70`), which the dark
   theme never repaints because the opacity suffix makes it a different class.
   Explicit rules keep the cards readable in both themes. */
.admin-customer-card { border-color: #e5e7eb; background-color: #f8fafc; }
.admin-customer-card.is-banned { border-color: #fecaca; background-color: #fef2f2; }
[data-theme="dark"] .admin-customer-card { border-color: #383840 !important; background-color: #222228 !important; }
[data-theme="dark"] .admin-customer-card.is-banned { border-color: #7f2d3a !important; background-color: #351e24 !important; }
[data-theme="light"] .admin-customer-card { border-color: #e5e7eb !important; background-color: #f8fafc !important; }
[data-theme="light"] .admin-customer-card.is-banned { border-color: #fecaca !important; background-color: #fef2f2 !important; }
[data-theme="dark"] #adminCustomersList [class~="text-red-600"],
[data-theme="dark"] #adminCustomersList [class~="text-red-700"] { color: #fca5a5 !important; }
[data-theme="dark"] #adminCustomersList [class~="border-red-300"] { border-color: #7f2d3a !important; }
[data-theme="dark"] #adminCustomersList [class~="text-emerald-700"] { color: #6ee7b7 !important; }
[data-theme="dark"] #adminCustomersList [class~="border-emerald-300"] { border-color: #2f6b52 !important; }

/* ====== Settings · social links ======
   A value that does not match the selected network is flagged right in the field. */
#accountRequisitesList input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
  background-color: rgba(239, 68, 68, .14) !important;
}
[data-theme="light"] #accountRequisitesList input.is-invalid {
  background-color: #fef2f2 !important;
  color: #7f1d1d !important;
}

/* Light theme: lot author name + auction bidders section */
[data-theme="light"] .lot-card__author { color: #6b7280; }
[data-theme="light"] .lot-card__author:hover { color: #db2777; }
[data-theme="light"] #auctionDetailPage .rounded-xl.border-gray-800 { border-color: #e5e7eb; background: #f9fafb; }
[data-theme="light"] #auctionDetailPage .border-b.border-gray-700 { border-color: #e5e7eb; }
[data-theme="light"] #auctionDetailPage .text-gray-200 { color: #1f2937; }
[data-theme="light"] #auctionDetailPage .text-gray-400 { color: #6b7280; }
[data-theme="light"] #auctionDetailPage .text-sky-400 { color: #0284c7; }
/* Dark theme: active conversation item should not become light */
.conversation-item-active { background: #f3f4f6; border-color: #e5e7eb; }
[data-theme="dark"] .conversation-item-active { background: #27272a !important; border-color: #3f3f46 !important; }
/* Tailwind hover: variants are separate class tokens (hover:bg-gray-50), so the
   [class~="bg-gray-50"] dark overrides above never reach them. Without these
   rules hovering a conversation turned it white while the text stayed light. */
[data-theme="dark"] [class~="hover:bg-gray-50"]:hover { background-color: #2c2c37 !important; }
[data-theme="dark"] [class~="hover:bg-gray-100"]:hover { background-color: #33333c !important; }
[data-theme="dark"] [class~="hover:bg-white"]:hover { background-color: #222228 !important; }
[data-theme="dark"] #conversationList button[data-conversation-index]:hover {
  background-color: #2c2c37 !important;
  border-color: #3f3f46 !important;
}
[data-theme="dark"] #conversationList button[data-conversation-index].conversation-item-active:hover {
  background-color: #2c2c37 !important;
  border-color: #52525b !important;
}
[data-theme="dark"] #tabMessagesContent #conversationTitle { color: #f3f4f6; }

/* ====== Deals / transactions panel ====== */
#auctionDealPanel .text-emerald-300 { color: #6ee7b7; }
[data-theme="light"] #auctionDealPanel .text-emerald-300 { color: #059669; }
[data-theme="light"] #auctionDealPanel .border-emerald-500\/30 { border-color: #a7f3d0; background: #ecfdf5; }
[data-theme="light"] #auctionDealPanel .text-gray-400 { color: #6b7280; }
[data-theme="light"] #auctionDealPanel .border-gray-600 { border-color: #d1d5db; }
[data-theme="light"] #auctionDealPanel .text-gray-300 { color: #374151; }

/* ====== Notification bell ====== */
#notificationBell .review-star, .review-star { cursor: pointer; user-select: none; }
#notificationBell .review-star:hover, .review-star:hover { transform: scale(1.15); }
[data-theme="light"] #notificationBell .text-gray-600 { color: #4b5563; }
[data-theme="light"] #notificationBell .hover\:bg-gray-100:hover { background: #f3f4f6; }
#notificationBell .fa-regular.fa-bell { font-family: 'Font Awesome 6 Free'; font-weight: 400; }

/* Sidebar trigger — always framed and readable, in both themes. It sits next
   to the language/currency selectors so it never competes with the nav links. */
[data-theme="light"] #notificationBellBtn { background-color: #f9fafb; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] #notificationBellBtn:hover { background-color: #f3f4f6; border-color: #d1d5db; }
[data-theme="dark"] #notificationBellBtn { background-color: #1f1f26 !important; border-color: #2c2c37 !important; color: #f3f4f6 !important; }
[data-theme="dark"] #notificationBellBtn:hover { background-color: #2c2c37 !important; border-color: #3f3f46 !important; }
[data-theme="dark"] #notificationBellBtn i { color: #f9a8d4 !important; }
#notificationBellBtn[aria-expanded="true"] { background-color: #fdf2f8; border-color: #f9a8d4; color: #be185d; }
#notificationBellBtn[aria-expanded="true"] i { color: #db2777; }
[data-theme="dark"] #notificationBellBtn[aria-expanded="true"] { background-color: #3b1d31 !important; border-color: #db2777 !important; color: #f9a8d4 !important; }

/* The dropdown lives outside the sidebar flow: position is fixed and the
   coordinates come from positionNotificationPanel() in app.js, so it opens to
   the right of the rail instead of covering the navigation links. */
#notificationPanel { width: 340px; max-width: calc(100vw - 24px); max-height: min(420px, calc(100vh - 24px)); display: flex; flex-direction: column; }
#notificationPanel.hidden { display: none !important; }
#notificationPanel > div:first-child { flex: 0 0 auto; }
#notificationList { flex: 1 1 auto; min-height: 0; }
[data-theme="dark"] #notificationPanel { background-color: #16161c !important; border-color: #2c2c37 !important; box-shadow: 0 22px 55px rgba(0, 0, 0, .55) !important; }
[data-theme="dark"] #notificationPanel .notification-row { border-bottom-color: #222228 !important; }
[data-theme="dark"] #notificationPanel .notification-row:hover { background-color: #222228 !important; }
[data-theme="light"] #notificationPanel { box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }


