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; }
#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%; }
[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; }
.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="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="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; }
#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;
}

