
.nav-search-select--compact {
  width: 11rem !important;
  min-width: 0 !important;
  font-size: 0.875rem !important;
  padding: 0 1.75rem 0 0.875rem !important;
  height: 42px !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(82, 82, 91, 0.4) !important;
  background: transparent !important;
  color: #e4e4e7 !important;
  box-shadow: none !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}

select.nav-search-select--compact option {
  background: #18181b;
  color: #e4e4e7;
  padding: 6px 12px;
}

.nav-search-select--compact:focus,
.nav-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav-search-input {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.nav-search-submit {
  border-radius: 10px !important;
  margin-left: 4px !important;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Nunito:wght@800&display=swap');

body {
  font-family: var(--obid-font-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.05) 22%, transparent 48%),
    linear-gradient(180deg, #060816 0%, #020617 100%);
  color: #f8fafc;
  transition: background 0.24s ease, color 0.24s ease;
}

#footer-placeholder {
  margin-top: auto;
}

:root {
  --obid-font-body: 'Roboto', 'Segoe UI', sans-serif;
  --obid-font-brand: 'Roboto', 'Segoe UI', sans-serif;
  --obid-radius-panel: 12px;
  --obid-radius-control: 8px;
  --obid-bevel-top: rgba(255, 255, 255, 0.1);
  --obid-bevel-bottom: rgba(0, 0, 0, 0.28);
  --obid-btn-overlay-top: rgba(255, 255, 255, 0.08);
  --obid-btn-overlay-bottom: rgba(0, 0, 0, 0.08);
  --obid-btn-hover-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--obid-font-brand);
}

nav,
footer {
  font-family: var(--obid-font-brand);
}

.rounded-3xl,
.rounded-2xl {
  border-radius: var(--obid-radius-panel) !important;
}

.rounded-xl,
.rounded-lg {
  border-radius: var(--obid-radius-control) !important;
}

/* Ensure elements with .hidden stay invisible even when they have display:inline-flex from their own classes */
#global-theme-toggle.hidden,
#nav-notification-link.hidden,
#nav-basket-link.hidden,
#nav-my-shop-link.hidden,
#nav-admin-pill.hidden {
  display: none !important;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #d4d4d8;
  transition: all 0.2s ease;
}

.theme-switch:hover {
  background: transparent;
  color: #ffffff;
}

.theme-switch:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.theme-switch-icon {
  width: 16px;
  height: 16px;
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-switch-icon svg {
  width: 14px;
  height: 14px;
}

.theme-switch-track {
  width: 30px;
  height: 16px;
  background: #3f3f46;
  border-radius: 999px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.theme-switch-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transform: translateX(14px);
  transition: transform 0.2s ease;
}

.theme-switch[data-theme='light'] .theme-switch-thumb {
  transform: translateX(0);
}

.theme-switch[data-theme='light'] .theme-switch-icon--sun,
.theme-switch[data-theme='dark'] .theme-switch-icon--moon {
  color: #ffffff;
}

body.light-theme {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12) 0%, rgba(219, 234, 254, 0.22) 26%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  color: #0f172a !important;
}

.bg-zinc-950 {
  background-color: #030712 !important;
  background-image: linear-gradient(180deg, rgba(10, 15, 31, 0.98) 0%, rgba(2, 6, 23, 1) 100%);
}

.bg-zinc-900 {
  background-color: rgba(17, 24, 39, 0.92) !important;
  background-image: linear-gradient(160deg, rgba(24, 24, 27, 0.97) 0%, rgba(15, 23, 42, 0.92) 100%);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.18);
}

.bg-zinc-800,
.bg-zinc-800\/70 {
  background-color: rgba(24, 24, 27, 0.84) !important;
  background-image: linear-gradient(160deg, rgba(30, 41, 59, 0.78) 0%, rgba(24, 24, 27, 0.86) 100%);
}

body.light-theme .bg-zinc-950 {
  background-color: #fdfeff !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

/* Durable fallback: catch Tailwind opacity variants like bg-zinc-950/50 */
body.light-theme [class*="bg-zinc-950/"]:not(nav) {
  background-color: #f4f8ff !important;
  background-image: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%) !important;
}

body.light-theme .bg-zinc-900 {
  background-color: #ffffff !important;
  background-image: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Durable fallback: catch Tailwind opacity variants like bg-zinc-900/70 */
body.light-theme [class*="bg-zinc-900/"]:not(nav) {
  background-color: #f8fbff !important;
  background-image: linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* Keep the Shop Owner pill legible on light backgrounds */
body.light-theme #shop-owner-pill {
  background-color: rgba(109, 40, 217, 0.12) !important;
  border-color: rgba(109, 40, 217, 0.4) !important;
  color: #6d28d9 !important;
}

body.light-theme .bg-zinc-800,
body.light-theme .bg-zinc-800\/70 {
  background-color: #f9fbff !important;
  background-image: linear-gradient(160deg, #fdfefe 0%, #f6faff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

body.light-theme .border-zinc-800,
body.light-theme .border-zinc-900,
body.light-theme .border-zinc-700,
body.light-theme .border-zinc-600 {
  border-color: #dbe2ea !important;
}

/* Durable fallback: catch Tailwind opacity variants like border-zinc-800/40 */
body.light-theme [class*="border-zinc-"][class*="/"] {
  border-color: rgba(148, 163, 184, 0.38) !important;
}

body.light-theme .text-zinc-500,
body.light-theme .text-zinc-400,
body.light-theme .text-zinc-200,
body.light-theme .text-zinc-300,
body.light-theme .text-zinc-100 {
  color: #64748b !important;
}

body.light-theme .text-white {
  color: #0f172a !important;
}

/* Sections with hardcoded dark backgrounds — preserve light text in light theme */
body.light-theme .dark-bg-section .text-white,
body.light-theme .dark-bg-section.text-white {
  color: #ffffff !important;
}
body.light-theme .dark-bg-section .text-zinc-500,
body.light-theme .dark-bg-section .text-zinc-400,
body.light-theme .dark-bg-section .text-zinc-200,
body.light-theme .dark-bg-section .text-zinc-300,
body.light-theme .dark-bg-section .text-zinc-100 {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* sell.html shop-nudge: adapt semi-transparent violet banner for light theme */
body.light-theme #shop-nudge {
  background-color: #ede9fe !important;
  background-image: none !important;
  border-color: #8b5cf6 !important;
}
body.light-theme #shop-nudge .text-violet-200 {
  color: #5b21b6 !important;
}
body.light-theme #shop-nudge .text-violet-400 {
  color: #7c3aed !important;
}
body.light-theme #shop-nudge .text-violet-500,
body.light-theme #shop-nudge .hover\:text-violet-300:hover {
  color: #7c3aed !important;
}
body.light-theme #shop-nudge .bg-violet-600\/20 {
  background-color: rgba(124, 58, 237, 0.12) !important;
}

body.light-theme .hover\:bg-zinc-800:hover,
body.light-theme .hover\:bg-zinc-700:hover,
body.light-theme .hover\:bg-zinc-600:hover {
  background-color: #edf3fb !important;
}

body.light-theme .hover\:text-white:hover {
  color: #0f172a !important;
}

body.light-theme .modal-content {
  background-color: #ffffff !important;
  border-color: #dbe2ea !important;
}

body.light-theme .carousel-arrow {
  background: rgba(241, 245, 250, 0.6) !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

body.light-theme .carousel-arrow:hover:not(:disabled) {
  background: rgba(226, 232, 240, 0.9) !important;
  border-color: #94a3b8 !important;
  color: #1e293b !important;
}

body.light-theme .gallery-container {
  background-color: #f7fbff !important;
}

body.light-theme #global-theme-toggle {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none;
}

body.light-theme .theme-switch:hover {
  background: transparent !important;
}

body.light-theme .theme-switch-track {
  background: rgba(255, 255, 255, 0.35);
}

body.light-theme .theme-switch-icon {
  color: rgba(255, 255, 255, 0.8);
}

body.light-theme .theme-switch[data-theme='light'] .theme-switch-icon--sun,
body.light-theme .theme-switch[data-theme='dark'] .theme-switch-icon--moon {
  color: #ffffff;
}

body.light-theme .from-blue-500.to-blue-700 {
  color: #ffffff !important;
}

body.light-theme button[class*="bg-blue-"],
body.light-theme button[class*="bg-emerald-"],
body.light-theme button[class*="bg-green-"],
body.light-theme button[class*="bg-red-"],
body.light-theme button[class*="bg-orange-"],
body.light-theme button[class*="bg-violet-"],
body.light-theme a[class*="bg-blue-"],
body.light-theme a[class*="bg-emerald-"],
body.light-theme a[class*="bg-green-"],
body.light-theme a[class*="bg-red-"],
body.light-theme a[class*="bg-orange-"],
body.light-theme a[class*="bg-violet-"] {
  color: #ffffff !important;
}

body.light-theme #quick-bids-box {
  background-color: #f2f6fb !important;
  border-color: #dbe2ea !important;
}

body.light-theme #quick-bids-box [data-snipe-amount] {
  background-color: #ffffff !important;
  border-color: #c8d4e0 !important;
  color: #1e293b !important;
}

body.light-theme #quick-bids-box [data-snipe-amount]:hover {
  background-color: #e2eaf5 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.light-theme #sniper-custom-amount {
  background-color: #ffffff !important;
  border-color: #c8d4e0 !important;
  color: #0f172a !important;
}

body.light-theme #quick-bids-box .text-zinc-400 {
  color: #475569 !important;
}

body.light-theme #quick-bids-box .text-zinc-500 {
  color: #64748b !important;
}

body.light-theme .notification-card {
  border-color: rgba(203, 213, 225, 0.6);
  background: #ffffff;
}

body.light-theme .notification-card-detail {
  color: #64748b;
}

body.light-theme .from-zinc-900 {
  --tw-gradient-from: #fbfdff var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(251 253 255 / 0) var(--tw-gradient-to-position) !important;
}

body.light-theme .via-zinc-900 {
  --tw-gradient-stops: var(--tw-gradient-from), #f4f8ff var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

body.light-theme .to-zinc-950 {
  --tw-gradient-to: #edf4ff var(--tw-gradient-to-position) !important;
}

.bid-card {
  transition: all 0.3s ease;
  margin: 0;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.96) 0%, rgba(24, 24, 27, 0.98) 100%);
  border-color: #3f3f46 !important;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.bid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

#mylistings-list > div,
#listings-container > div,
#bids-list > div,
#orders-list > div {
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.96) 0%, rgba(24, 24, 27, 0.98) 100%);
  border-color: #3f3f46 !important;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.bid-card .text-zinc-200,
.bid-card .text-zinc-300,
#mylistings-list > div .text-zinc-200,
#mylistings-list > div .text-zinc-300,
#listings-container > div .text-zinc-200,
#listings-container > div .text-zinc-300 {
  color: #f3f4f6 !important;
}

.bid-card .text-zinc-400,
.bid-card .text-zinc-500,
#mylistings-list > div .text-zinc-400,
#mylistings-list > div .text-zinc-500,
#listings-container > div .text-zinc-400,
#listings-container > div .text-zinc-500 {
  color: #a1a1aa !important;
}

body.light-theme .bid-card,
body.light-theme #mylistings-list > div,
body.light-theme #listings-container > div,
body.light-theme #bids-list > div,
body.light-theme #orders-list > div {
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border-color: #dbe2ea !important;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.light-theme .bid-card .text-zinc-200,
body.light-theme .bid-card .text-zinc-300,
body.light-theme #mylistings-list > div .text-zinc-200,
body.light-theme #mylistings-list > div .text-zinc-300,
body.light-theme #listings-container > div .text-zinc-200,
body.light-theme #listings-container > div .text-zinc-300 {
  color: #0f172a !important;
}

body.light-theme .bid-card .text-zinc-400,
body.light-theme .bid-card .text-zinc-500,
body.light-theme #mylistings-list > div .text-zinc-400,
body.light-theme #mylistings-list > div .text-zinc-500,
body.light-theme #listings-container > div .text-zinc-400,
body.light-theme #listings-container > div .text-zinc-500 {
  color: #64748b !important;
}

body.light-theme .bid-card:hover,
body.light-theme #mylistings-list > div:hover,
body.light-theme #listings-container > div:hover,
body.light-theme #bids-list > div:hover,
body.light-theme #orders-list > div:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.logo-container--nav {
  display: block;
  width: fit-content;
  height: fit-content;
  padding: 0;
  margin: 0;
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  transform: translateX(-14px);
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.logo-container--nav:hover,
.logo-container--nav:focus-visible {
  opacity: 0.98;
  filter: brightness(1.03) drop-shadow(0 2px 8px rgba(15, 23, 42, 0.14));
  transform: translateX(-14px) translateY(-1px);
}

.logo-container--nav .brand-logo {
  display: block;
}

.brand-logo {
  display: inline-block;
  flex-shrink: 0;
  width: var(--brand-logo-width, 258px);
  aspect-ratio: 1024 / 672;
  background: url('assets/svg/logo.svg') center / contain no-repeat;
}

.brand-logo--nav {
  --brand-logo-width: clamp(188px, 15vw, 230px);
  aspect-ratio: 1024 / 250;
  background-size: 100% auto;
  background-position: center 45%;
}

.brand-logo--footer {
  --brand-logo-width: clamp(206px, 18vw, 244px);
  aspect-ratio: 1024 / 290;
  background-size: 100% auto;
  background-position: center 50%;
}

.brand-logo--auth {
  --brand-logo-width: clamp(180px, 22vw, 220px);
  aspect-ratio: 1024 / 290;
  background-size: 100% auto;
  background-position: center 50%;
}

.brand-logo--report {
  --brand-logo-width: clamp(168px, 16vw, 210px);
}

.brand-logo--hero {
  width: min(76vw, 705px);
  opacity: 0.055;
}

.logo-container--muted {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo-container {
  gap: 5px;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo-container .brand-logo {
  --brand-logo-width: clamp(206px, 18vw, 244px);
}

.footer-brand-tagline {
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
}

footer a,
footer a:hover {
  text-decoration: none !important;
}

.logo-wordmark {
  font-family: var(--obid-font-brand);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.28);
}

body.light-theme .logo-container,
body.light-theme .logo-wordmark {
  color: #ffffff !important;
}

body.light-theme .logo-container--nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.light-theme .brand-logo--nav,
body.light-theme .brand-logo--footer,
body.light-theme .brand-logo--auth,
body.light-theme .brand-logo--report,
body.light-theme .brand-logo--hero {
  opacity: inherit;
}

body.light-theme .brand-logo {
  background-image: url('assets/svg/logo-light.svg');
}

body.light-theme .logo-container--muted {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.light-theme .footer-logo-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.light-theme .footer-brand-tagline {
  color: #fdba74;
}

body.light-theme .logo-wordmark {
  -webkit-text-stroke: 0.45px rgba(51, 65, 85, 0.48);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 10px rgba(15, 23, 42, 0.18);
}

.listing-type-banner,
.listing-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.listing-top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  min-height: 34px;
  padding: 8px 14px;
  font-size: clamp(0.68rem, 0.62rem + 0.28vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.listing-top-banner:first-child {
  border-top-left-radius: var(--obid-radius-panel);
  border-top-right-radius: var(--obid-radius-panel);
}

.listing-outcome-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--obid-radius-control);
  font-size: clamp(0.78rem, 0.72rem + 0.34vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid transparent;
}

.listing-outcome-banner__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.listing-outcome-banner__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.95;
}

.listing-outcome-banner__text {
  display: inline-block;
}

.listing-outcome-banner--stacked {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
}

.listing-top-banner + .listing-outcome-banner--stacked {
  border-top-width: 1px;
}

.listing-outcome-banner--stacked + img,
.listing-outcome-banner--stacked + .my-listings-card-inner,
.listing-outcome-banner--stacked + .text-blue-400 {
  margin-top: 0;
}

.listing-outcome-banner--sold {
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
  border-color: rgba(254, 202, 202, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 10px 24px rgba(127, 29, 29, 0.28);
}
.listing-outcome-banner--ended {
  background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
  border-color: rgba(107, 114, 128, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 10px 24px rgba(75, 85, 99, 0.2);
}

.listing-type-banner--auction-only,
.listing-type-badge--auction {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  background-color: rgba(245, 158, 11, 0.12);
}

.listing-type-banner--auction-plus-bin,
.listing-type-badge--mixed {
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  background-color: rgba(59, 130, 246, 0.12);
}

.listing-type-banner--bin-only,
.listing-type-badge--bin {
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  background-color: rgba(34, 197, 94, 0.12);
}

body.light-theme .listing-type-banner,
body.light-theme .listing-type-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(15, 23, 42, 0.06);
}

body.light-theme .listing-type-banner--auction-only,
body.light-theme .listing-type-badge--auction {
  border-color: #f59e0b;
  color: #7c2d12;
  background-color: #ffedd5;
}

body.light-theme .listing-type-banner--auction-plus-bin,
body.light-theme .listing-type-badge--mixed {
  border-color: #3b82f6;
  color: #1e3a8a;
  background-color: #dbeafe;
}

body.light-theme .listing-type-banner--bin-only,
body.light-theme .listing-type-badge--bin {
  border-color: #16a34a;
  color: #14532d;
  background-color: #dcfce7;
}

body.light-theme .listing-outcome-banner {
  color: #ffffff;
}

body.light-theme .listing-outcome-banner--sold {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
  border-color: rgba(127, 29, 29, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(127, 29, 29, 0.2);
}

body.light-theme .listing-outcome-banner--ended {
  background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
  border-color: rgba(107, 114, 128, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(75, 85, 99, 0.12);
}

@media (max-width: 640px) {
  .listing-top-banner {
    min-height: 32px;
    padding: 7px 12px;
    letter-spacing: 0.045em;
  }

  .listing-outcome-banner {
    min-height: 36px;
    padding: 9px 12px;
    letter-spacing: 0.06em;
  }

  .listing-outcome-banner__content {
    gap: 7px;
  }

  .listing-outcome-banner__icon {
    width: 14px;
    height: 14px;
  }

  .listing-meta-grid {
    justify-content: flex-start;
    gap: 6px;
  }

  .listing-meta-item {
    width: auto;
    padding: 0;
  }

  .listing-meta-item + .listing-meta-item {
    border-left: 0;
  }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--obid-font-brand);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26);
}

.logo-mark--sm {
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
}

.logo-mark--lg {
  width: 64px;
  height: 64px;
  font-size: 3rem;
  border-radius: 22px;
}

.logo-mark--consistent {
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  border-radius: 16px;
}

.logo-mark--brand {
  color: #ffffff;
  background-image: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.logo-mark--muted {
  color: #e4e4e7;
  background-image: linear-gradient(135deg, #52525b 0%, #27272a 100%);
  border-color: rgba(255, 255, 255, 0.14);
}

body.light-theme .logo-mark--muted {
  color: #f8fafc;
  background-image: linear-gradient(135deg, #64748b 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.logo-banner-pill {
  padding: 0;
  border-radius: 0;
  border: 0;
}

body.light-theme .logo-banner-pill {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Prevent textareas from being resized by the user */
textarea {
  resize: none !important;
}

/* Hide browser spinner arrows on number inputs */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Sell page — Promote box */
.sell-promote-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(109,40,217,0.10) 100%);
  border: 1px solid rgba(96,165,250,0.35);
}

.sell-promote-title {
  color: #e0eaff;
}

.sell-promote-subtitle {
  color: #94a3b8;
}

body.light-theme .sell-promote-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
}

body.light-theme .sell-promote-title {
  color: #1e40af;
}

body.light-theme .sell-promote-subtitle {
  color: #475569;
}

.sell-page .sell-form input:not([type='radio']):not([type='checkbox']),
.sell-page .sell-form select {
  min-height: 46px;
}

.sell-page .sell-form .sell-field-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35) !important;
}

.sell-page .sell-form .sell-field-error {
  color: #fca5a5;
}

.sell-page .sell-form .sell-form-error-summary {
  color: #fca5a5;
}

body.light-theme .sell-page .sell-form .sell-field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

body.light-theme .sell-page .sell-form .sell-field-error,
body.light-theme .sell-page .sell-form .sell-form-error-summary {
  color: #dc2626;
}

.sell-returns-option {
  min-height: 42px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--obid-radius-control);
}

.sell-returns-option:hover {
  background: rgba(63, 63, 70, 0.25);
}

.sell-returns-input {
  width: 1.05rem;
  height: 1.05rem;
}

.sell-promote-toggle {
  border-radius: var(--obid-radius-control);
  padding: 0.15rem;
}

.sell-promote-input {
  width: 1.1rem;
  height: 1.1rem;
}

.sell-auction-bin-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.38) 0%, rgba(30, 41, 59, 0.26) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.sell-auction-bin-title {
  color: #e2e8f0;
}

.sell-auction-bin-note {
  color: #fbbf24;
}

.sell-auction-bin-input {
  width: 1.05rem;
  height: 1.05rem;
}

body.light-theme .sell-auction-bin-box {
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
  border-color: #93c5fd;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

body.light-theme .sell-auction-bin-title {
  color: #1e3a8a;
}

body.light-theme .sell-auction-bin-note {
  color: #9a3412;
}

body.light-theme .sell-returns-option:hover {
  background: rgba(226, 232, 240, 0.65);
}

@media (max-width: 1023px) {
  .sell-page .sell-form {
    gap: 2rem;
  }

  .sell-page .type-btn {
    min-height: 128px;
  }
}

@media (max-width: 640px) {
  .sell-page .sell-form {
    gap: 1.5rem;
  }

  .sell-page .type-btn {
    padding: 1rem !important;
    min-height: 116px;
  }

  .sell-page .type-btn-title {
    font-size: 1rem;
  }

  .sell-page .type-btn-subtitle {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .sell-page #image-upload {
    padding: 1.25rem;
  }

  .sell-page .sell-returns-options {
    gap: 0.55rem !important;
  }

  .sell-page .sell-returns-option {
    min-height: 44px;
    padding: 0.45rem 0.6rem;
  }

  .sell-page .sell-promote-box {
    padding: 1rem !important;
  }

  .sell-page .sell-promote-title {
    font-size: 0.95rem;
  }

  .sell-page .sell-promote-subtitle {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

/* Sell page - listing type selector buttons */
.type-btn {
  border: 2px solid #3f3f46;
  background: linear-gradient(155deg, #27272a 0%, #1f1f23 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.type-btn:hover {
  border-color: #52525b;
  transform: translateY(-1px);
}

.type-btn-icon {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.type-btn-title {
  color: #d4d4d8;
  transition: color 0.2s ease;
}

.type-btn-subtitle {
  color: #a1a1aa;
  transition: color 0.2s ease;
}

#type-auction.type-btn--active {
  border-color: #3b82f6;
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.30) 0%, rgba(30, 64, 175, 0.24) 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 10px 24px rgba(37, 99, 235, 0.18);
}

#type-bin.type-btn--active {
  border-color: #22c55e;
  background: linear-gradient(155deg, rgba(22, 163, 74, 0.30) 0%, rgba(22, 101, 52, 0.24) 100%);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 10px 24px rgba(22, 163, 74, 0.18);
}

.type-btn--active .type-btn-icon {
  color: #e2e8f0;
}

.type-btn--active .type-btn-title {
  color: #f8fafc;
}

.type-btn--active .type-btn-subtitle {
  color: #e0e7ff;
}

body.light-theme .type-btn {
  border-color: #d4d4d8;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme .type-btn:hover {
  border-color: #94a3b8;
}

body.light-theme .type-btn-icon {
  color: #64748b;
}

body.light-theme .type-btn-title {
  color: #334155;
}

body.light-theme .type-btn-subtitle {
  color: #64748b;
}

body.light-theme #type-auction.type-btn--active {
  border-color: #2563eb;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), 0 10px 24px rgba(59, 130, 246, 0.15);
}

body.light-theme #type-bin.type-btn--active {
  border-color: #16a34a;
  background: linear-gradient(160deg, #ecfdf3 0%, #dcfce7 100%);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 10px 24px rgba(34, 197, 94, 0.15);
}

body.light-theme .type-btn--active .type-btn-icon {
  color: #0f172a;
}

body.light-theme .type-btn--active .type-btn-title {
  color: #0f172a;
}

body.light-theme .type-btn--active .type-btn-subtitle {
  color: #1e293b;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.auction-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auction-btn--state {
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.auction-btn--active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.35);
}

.auction-btn--active:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.auction-btn--ended {
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
  border-color: rgba(107, 114, 128, 0.3);
}

.auction-btn--ended:hover {
  background: linear-gradient(180deg, #7c8590 0%, #6b7280 100%);
}

.auction-btn--sold {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  border-color: rgba(252, 165, 165, 0.34);
}

.auction-btn--sold:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

body.light-theme .auction-btn--state {
  color: #ffffff;
}

body.light-theme [data-live-bidder] .text-zinc-500 {
  color: #64748b !important;
}

body.light-theme [data-live-bidder] .text-zinc-200 {
  color: #0f172a !important;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.buttons-container {
  margin-top: auto;
}

body.account-page {
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.account-page .account-section-panel {
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.account-page .account-section-heading {
  color: #f4f4f5;
}

body.account-page .account-section-heading svg {
  color: #60a5fa;
  opacity: 0.95;
}

body.account-page .account-overview-tile {
  border-color: #3f3f46 !important;
  background: rgba(39, 39, 42, 0.65) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
}

body.account-page .account-overview-tile > :last-child {
  margin-top: auto !important;
}

body.account-page .account-overview-tile:hover {
  background: rgba(39, 39, 42, 0.9) !important;
  border-color: #52525b !important;
}

body.account-page .profile-upload-btn {
  padding: 0.35rem 0.65rem !important;
  border-radius: 0.65rem !important;
  border: 1px solid rgba(82, 82, 91, 0.85);
  background: rgba(63, 63, 70, 0.2);
  color: #d4d4d8;
  font-size: 0.69rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.account-page .profile-upload-btn:hover {
  background: rgba(63, 63, 70, 0.34);
  border-color: rgba(113, 113, 122, 0.95);
  color: #f4f4f5;
}

body.account-page #profile-image-status {
  margin-top: 0.4rem !important;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #9ca3af !important;
}

body.account-page .account-saved-address-card {
  border-color: #52525b !important;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.9) 0%, rgba(24, 24, 27, 0.92) 100%) !important;
}

body.account-page .account-saved-address-title {
  color: #f8fafc !important;
}

body.account-page .account-saved-address-lines {
  color: #e4e4e7 !important;
  font-weight: 500;
}

body.account-page .account-saved-address-lines .text-zinc-400 {
  color: #cbd5e1 !important;
}

body.account-page .watchlist-card {
  background: linear-gradient(165deg, rgba(39, 39, 42, 0.9) 0%, rgba(24, 24, 27, 0.92) 100%) !important;
  border-color: #4b5563 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.2);
}

body.account-page .watchlist-card:hover {
  background: linear-gradient(165deg, rgba(49, 49, 53, 0.96) 0%, rgba(30, 30, 34, 0.96) 100%) !important;
  border-color: #6b7280 !important;
}

body.account-page .watchlist-card-image {
  box-shadow: 0 0 0 1px rgba(113, 113, 122, 0.8) !important;
}

body.account-page .watchlist-card-title {
  color: #f8fafc !important;
}

body.account-page .watchlist-card-primary {
  color: #d1d5db !important;
}

body.account-page .watchlist-card-value,
body.account-page .watchlist-card-meta-value {
  color: #f8fafc !important;
}

body.account-page .watchlist-card-meta {
  color: #9ca3af !important;
}

body.account-page .watchlist-remove-btn {
  color: #fecaca !important;
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

body.account-page .watchlist-remove-btn:hover {
  color: #ffffff !important;
  background: rgba(220, 38, 38, 0.32) !important;
  border-color: rgba(252, 165, 165, 0.78) !important;
}

body.account-page .watchlist-modal-overlay {
  background: rgba(3, 7, 18, 0.78) !important;
}

body.account-page .watchlist-modal-panel {
  background: linear-gradient(165deg, rgba(24, 24, 27, 0.98) 0%, rgba(15, 23, 42, 0.97) 100%) !important;
  border-color: #4b5563 !important;
}

body.account-page .watchlist-modal-message {
  color: #e5e7eb !important;
}

body.account-page .watchlist-modal-cancel {
  color: #e4e4e7 !important;
  border-color: #52525b !important;
  background: rgba(39, 39, 42, 0.88) !important;
}

body.account-page .watchlist-modal-cancel:hover {
  color: #ffffff !important;
  background: rgba(63, 63, 70, 0.9) !important;
}

body.account-page.light-theme {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.16) 0%, rgba(191, 219, 254, 0.28) 26%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, #f3f7ff 0%, #eef4ff 100%);
  color: #0f172a;
}

body.account-page.light-theme .account-section-panel {
  border-color: #d8e2ee !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 10px 22px rgba(15, 23, 42, 0.07);
}

body.account-page.light-theme .account-section-heading {
  color: #0f172a;
}

body.account-page.light-theme .account-section-heading svg {
  color: #2563eb;
}

body.account-page.light-theme .account-overview-tile {
  border-color: #dbe2ea !important;
  background: #f8fbff !important;
  box-shadow: none;
}

body.account-page.light-theme .account-overview-tile:hover {
  background: #edf3fb !important;
  border-color: #cbd5e1 !important;
}

body.account-page.light-theme .profile-upload-btn {
  border-color: #cbd5e1;
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
}

body.account-page.light-theme .profile-upload-btn:hover {
  border-color: #94a3b8;
  background: rgba(226, 232, 240, 0.9);
  color: #0f172a;
}

body.account-page.light-theme #profile-image-status {
  color: #64748b !important;
}

body.account-page.light-theme .account-saved-address-card {
  border-color: #cbd5e1 !important;
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.06);
}

body.account-page.light-theme .account-saved-address-title {
  color: #0f172a !important;
}

body.account-page.light-theme .account-saved-address-lines {
  color: #1e293b !important;
}

body.account-page.light-theme .account-saved-address-lines .text-zinc-400 {
  color: #475569 !important;
}

body.account-page.light-theme .watchlist-card {
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 18px rgba(15, 23, 42, 0.07);
}

body.account-page.light-theme .watchlist-card:hover {
  background: linear-gradient(165deg, #f8fbff 0%, #eef4fb 100%) !important;
  border-color: #94a3b8 !important;
}

body.account-page.light-theme .watchlist-card-image {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.65) !important;
}

body.account-page.light-theme .watchlist-card-title {
  color: #0f172a !important;
}

body.account-page.light-theme .watchlist-card-primary {
  color: #334155 !important;
}

body.account-page.light-theme .watchlist-card-value,
body.account-page.light-theme .watchlist-card-meta-value {
  color: #0f172a !important;
}

body.account-page.light-theme .watchlist-card-meta {
  color: #475569 !important;
}

body.account-page.light-theme .watchlist-remove-btn {
  color: #b91c1c !important;
  background: rgba(254, 226, 226, 0.9) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

body.account-page.light-theme .watchlist-remove-btn:hover {
  color: #7f1d1d !important;
  background: rgba(254, 202, 202, 0.95) !important;
  border-color: rgba(220, 38, 38, 0.58) !important;
}

body.account-page.light-theme .watchlist-modal-overlay {
  background: rgba(15, 23, 42, 0.38) !important;
}

body.account-page.light-theme .watchlist-modal-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
}

body.account-page.light-theme .watchlist-modal-panel .text-zinc-500 {
  color: #64748b !important;
}

body.account-page.light-theme .watchlist-modal-panel .text-zinc-400 {
  color: #475569 !important;
}

body.account-page.light-theme .watchlist-modal-message {
  color: #1e293b !important;
}

body.account-page.light-theme .watchlist-modal-confirm {
  color: #ffffff !important;
  border-color: rgba(220, 38, 38, 0.55) !important;
  background: #dc2626 !important;
}

body.account-page.light-theme .watchlist-modal-confirm:hover {
  background: #b91c1c !important;
}

body.account-page.light-theme .watchlist-modal-cancel {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

body.account-page.light-theme .watchlist-modal-cancel:hover {
  color: #0f172a !important;
  background: #eef2f7 !important;
}

body.account-page.light-theme .bg-zinc-950 {
  background-color: transparent !important;
}

body.account-page.light-theme .bg-zinc-900 {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb;
}

body.account-page.light-theme .bg-zinc-800,
body.account-page.light-theme .bg-zinc-800\/70 {
  background-color: #f7faff !important;
}

body.account-page.light-theme .hover\:bg-zinc-800:hover,
body.account-page.light-theme .bg-zinc-700 {
  background-color: #edf3fb !important;
}

body.account-page.light-theme .hover\:bg-zinc-700:hover,
body.account-page.light-theme .hover\:bg-zinc-600:hover,
body.account-page.light-theme .hover\:bg-zinc-500:hover {
  background-color: #edf3fb !important;
}

body.account-page.light-theme .text-zinc-100,
body.account-page.light-theme .text-zinc-300 {
  color: #0f172a !important;
}

body.account-page.light-theme .text-zinc-400,
body.account-page.light-theme .text-zinc-500 {
  color: #64748b !important;
}

body.account-page.light-theme .border-zinc-700,
body.account-page.light-theme .border-zinc-800 {
  border-color: #dbe2ea !important;
}

body.account-page.light-theme textarea,
body.account-page.light-theme input,
body.account-page.light-theme select {
  color: #0f172a !important;
}

body.account-page.light-theme #messages-list .bg-zinc-900 {
  background: #ffffff !important;
  border-color: #d0ddea !important;
}

body.account-page.light-theme #messages-conversations button.bg-zinc-900 {
  background: #ffffff !important;
  border-color: #d0ddea !important;
}

body.account-page.light-theme #cases-conversations {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0;
}

body.account-page.light-theme #cases-list {
  background-color: #f8fafc;
}

body.account-page.light-theme #cases-thread-header {
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.account-page.light-theme #cases-thread-header .text-zinc-400 {
  color: #64748b !important;
}

body.account-page.light-theme #cases-conversations .text-blue-400 {
  color: #2563eb !important;
}

body.account-page.light-theme #cases-conversations .text-emerald-400 {
  color: #059669 !important;
}

body.account-page.light-theme #cases-conversations .text-amber-400 {
  color: #b45309 !important;
}

body.account-page.light-theme #cases-thread-header .text-blue-400 {
  color: #2563eb !important;
}

body.account-page.light-theme #cases-thread-header .text-emerald-400 {
  color: #059669 !important;
}

body.account-page.light-theme #cases-thread-header .text-amber-400 {
  color: #b45309 !important;
}

body.account-page.light-theme #case-reply-message {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.account-page.light-theme #case-reply-message::placeholder {
  color: #94a3b8 !important;
}

body.account-page.light-theme #case-reply-char-count {
  color: #64748b !important;
}

body.account-page.light-theme .message-conversation-card {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.account-page.light-theme .message-conversation-card--active {
  background: #eef4fb !important;
  border-color: #c5d2e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

body.account-page.light-theme .message-conversation-card--active:hover {
  background: #e7eef7 !important;
}

body.account-page.light-theme .message-conversation-card--active .text-zinc-400,
body.account-page.light-theme .message-conversation-card--active .text-zinc-500,
body.account-page.light-theme .message-conversation-card--active .text-zinc-300 {
  color: #475569 !important;
}


body.account-page.light-theme .message-conversation-card .text-zinc-400,
body.account-page.light-theme .message-conversation-card .text-zinc-500 {
  color: #64748b !important;
}

body.account-page.light-theme .message-conversation-card .text-zinc-300 {
  color: #334155 !important;
}

body.account-page.light-theme .message-conversation-card p {
  color: #1e293b;
}

.case-thread-bubble {
  border: 1px solid #3f3f46;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.case-thread-bubble--other {
  background: rgba(39, 39, 42, 0.9);
  color: #f4f4f5;
  border-color: #52525b;
}

.case-thread-bubble--mine {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.96) 100%);
  color: #ffffff;
  border-color: #3b82f6;
}

.case-thread-meta {
  color: #a1a1aa;
}

.case-thread-bubble--mine .case-thread-meta {
  color: #dbeafe;
}
body.account-page.light-theme .message-bubble--received {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.account-page.light-theme .case-thread-bubble--other {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.account-page.light-theme .case-thread-bubble--mine {
  background: #e8f0ff !important;
  border-color: #b8c7e2 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.12);
}

body.account-page.light-theme .case-thread-meta,
body.account-page.light-theme .case-thread-bubble--mine .case-thread-meta {
  color: #334155 !important;
}

body.account-page.light-theme #messages-list .bg-blue-600,
body.account-page.light-theme #cases-list .bg-blue-600 {
  background: #dbeafe !important;
  color: #1e3a5f !important;
}

.account-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--obid-radius-control);
  border: 1px solid #3f3f46;
  background: rgba(39, 39, 42, 0.88);
  color: #e4e4e7;
}

.account-status-banner--info {
  border-color: #60a5fa;
  color: #bfdbfe;
}

.account-status-banner--success {
  border-color: #34d399;
  color: #86efac;
}

.account-status-banner--error {
  border-color: #f87171;
  color: #fecaca;
}

.listing-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--obid-radius-control);
  border: 1px solid #3f3f46;
  background: rgba(39, 39, 42, 0.88);
  color: #e4e4e7;
}

.listing-status-banner--info {
  border-color: #60a5fa;
  color: #bfdbfe;
}

.listing-status-banner--success {
  border-color: #34d399;
  color: #86efac;
}

.listing-status-banner--error {
  border-color: #f87171;
  color: #fecaca;
}

.inline-field-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35) !important;
}

body.account-page.light-theme .account-status-banner {
  background: #ffffff;
  border-color: #d6e1ee;
  color: #334155;
}

body.account-page.light-theme .account-status-banner--info {
  border-color: #93c5fd;
  color: #1d4ed8;
}

body.account-page.light-theme .account-status-banner--success {
  border-color: #86efac;
  color: #15803d;
}

body.account-page.light-theme .account-status-banner--error {
  border-color: #fca5a5;
  color: #b91c1c;
}

body.light-theme .listing-status-banner {
  background: #ffffff;
  border-color: #d6e1ee;
  color: #334155;
}

body.light-theme .listing-status-banner--info {
  border-color: #93c5fd;
  color: #1d4ed8;
}

body.light-theme .listing-status-banner--success {
  border-color: #86efac;
  color: #15803d;
}

body.light-theme .listing-status-banner--error {
  border-color: #fca5a5;
  color: #b91c1c;
}

body.light-theme .inline-field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

.auth-page .register-address-toggle {
  border-color: #52525b;
  background: rgba(39, 39, 42, 0.72);
}

.auth-page .register-address-toggle-text {
  color: #e4e4e7;
  font-weight: 500;
}

.register-submit-btn {
  border: 1px solid transparent;
}

.register-submit-btn--enabled {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.register-submit-btn--enabled:hover {
  filter: brightness(1.05);
}

.register-submit-btn--disabled {
  background: #3f3f46;
  color: #a1a1aa;
  border-color: #52525b;
}

body.auth-page.light-theme .register-address-toggle {
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.auth-page.light-theme .register-address-toggle-text {
  color: #1f2937;
}

body.auth-page.light-theme .register-submit-btn--enabled {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

body.auth-page.light-theme .register-submit-btn--disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
}

.auth-page .register-address-card {
  background: rgba(39, 39, 42, 0.62);
  border-color: #52525b;
}

.auth-page .register-address-helper {
  color: #a1a1aa;
}

body.auth-page.light-theme .register-address-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.auth-page.light-theme .register-address-helper {
  color: #64748b;
}

.reply-field-invalid,
.feedback-field-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35) !important;
}

body.account-page.light-theme .reply-field-invalid,
body.account-page.light-theme .feedback-field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

.order-support-heading {
  color: #a1a1aa;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.order-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.order-support-btn:hover {
  transform: translateY(-1px);
}

.order-support-btn--refund {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
}

.order-support-btn--refund:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.order-support-btn--issue,
.order-support-btn--cancel {
  background: rgba(63, 63, 70, 0.85);
  border-color: rgba(113, 113, 122, 0.85);
  color: #e4e4e7;
}

.order-support-btn--issue:hover,
.order-support-btn--cancel:hover {
  background: rgba(82, 82, 91, 0.9);
}

.order-support-btn--submit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.order-support-btn--submit:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.order-support-btn--disabled,
.order-support-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.order-status-banner {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.order-status-banner--completed {
  background: rgba(6, 95, 70, 0.28);
  border-color: rgba(16, 185, 129, 0.55);
  color: #86efac;
}

.order-status-banner--refunded {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.order-status-banner--pending {
  background: rgba(120, 53, 15, 0.3);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

.order-support-active-case {
  color: #fcd34d;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.order-support-active-case--notice {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(120, 53, 15, 0.26);
  font-weight: 600;
}

body.account-page.light-theme .order-support-heading {
  color: #64748b;
}

body.account-page.light-theme .order-status-banner {
  border-color: #c5d4e6;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

body.account-page.light-theme .order-status-banner--completed {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  color: #166534;
}

body.account-page.light-theme .order-status-banner--refunded {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  color: #b91c1c;
}

body.account-page.light-theme .order-status-banner--pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  color: #92400e;
}

body.account-page.light-theme .order-support-btn--issue,
body.account-page.light-theme .order-support-btn--cancel {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1f2937;
}

body.account-page.light-theme .order-support-btn--issue:hover,
body.account-page.light-theme .order-support-btn--cancel:hover {
  background: #dbe4ef;
}

body.account-page.light-theme .order-support-active-case {
  color: #92400e;
}

body.account-page.light-theme .order-support-active-case--notice {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.72);
  color: #e4e4e7;
}

.section-badge svg,
.info-chip svg,
.stat-tile svg,
.button-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(82, 82, 91, 0.5);
  background: rgba(39, 39, 42, 0.35);
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.info-chip strong {
  color: #ffffff;
  font-weight: 700;
}

.listing-meta-panel {
  width: 100%;
  border-top: 1px solid rgba(82, 82, 91, 0.4);
  border-bottom: 1px solid rgba(82, 82, 91, 0.4);
  padding: 8px 0;
}

.listing-meta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 14px;
}

.listing-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-width: 0;
}

.listing-meta-item + .listing-meta-item {
  border-left: 0;
  margin-left: 0;
}

.listing-meta-label {
  margin: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #71717a;
}

.listing-meta-value {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #d4d4d8;
  line-height: 1.2;
}

.stat-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 10px;
  background: rgba(39, 39, 42, 0.35);
}

.stat-tile--subtle {
  background: rgba(39, 39, 42, 0.22);
  border-color: rgba(63, 63, 70, 0.35);
}

.stat-tile-title {
  color: #a1a1aa;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-tile-value {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
}

.seller-feedback-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seller-feedback-tile:hover {
  transform: translateY(-1px);
}

.seller-feedback-tile .stat-tile-title {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.seller-feedback-count {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  margin-top: 8px;
}

.seller-feedback-tile--positive {
  background: linear-gradient(145deg, rgba(5, 46, 22, 0.85) 0%, rgba(22, 101, 52, 0.45) 100%);
  border-color: rgba(34, 197, 94, 0.5);
}

.seller-feedback-tile--positive .stat-tile-title,
.seller-feedback-tile--positive .seller-feedback-count {
  color: #86efac;
}

.seller-feedback-tile--neutral {
  background: linear-gradient(145deg, rgba(39, 39, 42, 0.95) 0%, rgba(63, 63, 70, 0.6) 100%);
  border-color: rgba(113, 113, 122, 0.7);
}

.seller-feedback-tile--neutral .stat-tile-title,
.seller-feedback-tile--neutral .seller-feedback-count {
  color: #e4e4e7;
}

.seller-feedback-tile--negative {
  background: linear-gradient(145deg, rgba(69, 10, 10, 0.85) 0%, rgba(127, 29, 29, 0.5) 100%);
  border-color: rgba(248, 113, 113, 0.5);
}

.seller-feedback-tile--negative .stat-tile-title,
.seller-feedback-tile--negative .seller-feedback-count {
  color: #fca5a5;
}

.seller-feedback-average-tile {
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 8px;
  padding-right: 8px;
}

.seller-feedback-average-tile > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.seller-feedback-average-tile .stat-tile-title {
  margin-bottom: 2px;
}

.seller-feedback-average-label {
  display: block;
  text-align: center;
  color: #e4e4e7;
  font-size: 1rem;
  font-weight: 700;
}

.seller-feedback-average-stars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.seller-feedback-average-stars-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}

.seller-feedback-average-star-icon {
  width: 57px !important;
  height: 57px !important;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
}

.seller-rating-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seller-rating-star {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(63, 63, 70, 0.7);
  background: rgba(39, 39, 42, 0.45);
  color: #52525b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.seller-rating-star svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
}

.seller-rating-star:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.7);
  color: #fde68a;
}

.seller-rating-star.is-active {
  border-color: rgba(245, 158, 11, 0.85);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
  color: #fbbf24;
}

body.light-theme .seller-rating-star {
  border-color: rgba(191, 219, 254, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 55%, #eaf3ff 100%);
  color: #94a3b8;
}

body.light-theme .seller-rating-star:hover {
  border-color: rgba(251, 191, 36, 0.9);
  color: #d97706;
}

body.light-theme .seller-rating-star.is-active {
  border-color: rgba(245, 158, 11, 0.95);
  background: linear-gradient(145deg, rgba(254, 240, 138, 0.78) 0%, rgba(253, 186, 116, 0.6) 100%);
  color: #b45309;
}

body.light-theme .seller-feedback-average-label {
  color: #334155;
}

@media (max-width: 640px) {
  .seller-feedback-average-star-icon {
    width: 40px !important;
    height: 40px !important;
  }
}

.seller-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-avatar-fallback {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(24, 24, 27, 0.58);
  border: 1px solid rgba(82, 82, 91, 0.62);
}

.status-pill--active {
  border-color: rgba(22, 163, 74, 0.55);
  background: rgba(22, 163, 74, 0.14);
  color: #86efac;
}

.status-pill--sold {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}

.status-pill--ended {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.light-theme .section-badge,
body.light-theme .info-chip {
  background: #f8fbff;
  border-color: rgba(203, 213, 225, 0.6);
  color: #0f172a;
  font-weight: 500;
}

body.light-theme .info-chip strong {
  color: #0f172a;
  font-weight: 700;
}

body.light-theme .listing-meta-panel {
  border-top-color: rgba(203, 213, 225, 0.85);
  border-bottom-color: rgba(203, 213, 225, 0.85);
}

body.light-theme .listing-meta-item {
  border-color: transparent;
}

body.light-theme .listing-meta-label {
  color: #64748b;
}

body.light-theme .listing-meta-value {
  color: #0f172a;
}

body.light-theme .stat-tile {
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
  border-color: rgba(203, 213, 225, 0.6);
  box-shadow: none;
}

body.light-theme .stat-tile--subtle {
  background: linear-gradient(160deg, #fbfdff 0%, #f7faff 100%);
  border-color: rgba(203, 213, 225, 0.5);
}

body.light-theme .stat-tile-title {
  color: #64748b;
}

.empty-state {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

section {
  transition: opacity 0.3s ease;
}

body.light-theme .stat-tile-value {
  color: #0f172a;
}

body.light-theme .seller-feedback-count {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.light-theme .seller-feedback-tile--positive {
  background: linear-gradient(160deg, #ecfdf3 0%, #dcfce7 100%);
  border-color: #86efac;
}

body.light-theme .seller-feedback-tile--positive .stat-tile-title,
body.light-theme .seller-feedback-tile--positive .seller-feedback-count {
  color: #166534;
}

body.light-theme .seller-feedback-tile--neutral {
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

body.light-theme .seller-feedback-tile--neutral .stat-tile-title,
body.light-theme .seller-feedback-tile--neutral .seller-feedback-count {
  color: #334155;
}

body.light-theme .seller-feedback-tile--negative {
  background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fda4af;
}

body.light-theme .seller-feedback-tile--negative .stat-tile-title,
body.light-theme .seller-feedback-tile--negative .seller-feedback-count {
  color: #b91c1c;
}

body.light-theme .seller-avatar {
  color: #1d4ed8;
  background: linear-gradient(135deg, #e0ecff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 20px rgba(59, 130, 246, 0.12);
}

body.light-theme .status-pill--active {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

body.light-theme .status-pill--sold {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

body.light-theme .status-pill--ended {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

body.light-theme .listing-featured-pill {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

/* account.html — My Shop status badge states */
body.light-theme #myshop-status-badge.bg-emerald-900\/50 {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #6ee7b7 !important;
}
body.light-theme #myshop-status-badge.bg-yellow-900\/50 {
  background-color: #fef9c3 !important;
  color: #854d0e !important;
  border-color: #fde047 !important;
}
body.light-theme #myshop-status-badge.bg-red-900\/50 {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
}
body.light-theme #myshop-status-badge.bg-violet-900\/50 {
  background-color: rgba(109, 40, 217, 0.12) !important;
  color: #6d28d9 !important;
  border-color: rgba(109, 40, 217, 0.4) !important;
}

.notification-summary-card {
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(39, 39, 42, 0.35);
}

.notification-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.notification-summary-value {
  font-size: 1.35rem;
  margin-top: 4px;
  font-weight: 700;
  color: #ffffff;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 10px;
  padding: 14px;
  background: rgba(39, 39, 42, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.notification-card:hover {
  border-color: #52525b;
  transform: translateY(-1px);
}

.notification-card--unread {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.notification-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
}

.notification-card--high .notification-card-icon {
  color: #facc15;
  background: rgba(251, 146, 60, 0.11);
}

.notification-card--medium .notification-card-icon {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.1);
}

body.account-page .section button svg {
  opacity: 0.76;
  transition: opacity 0.2s ease;
}

body.account-page .section button:hover svg {
  opacity: 0.92;
}

.notification-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.notification-card-detail {
  font-size: 0.83rem;
  color: #bdbdbd;
  margin-top: 3px;
  line-height: 1.35;
}

.notification-card-time {
  font-size: 0.74rem;
  color: #8b8b95;
  white-space: nowrap;
}

.notification-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.nav-search-form {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.nav-search-form:focus-within {
  box-shadow: none;
}

.nav-search-select,
.nav-location-input,
.nav-search-input {
  min-height: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #f4f4f5;
  transition: color 0.2s ease;
}

.nav-search-select option,
select.nav-search-select--compact option {
  background: #18181b;
  color: #f4f4f5;
  padding: 6px 12px;
}

.nav-search-select-wrap {
  position: relative;
  min-width: 170px;
}

.nav-category-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  pointer-events: none;
}

.nav-category-icon svg {
  width: 16px;
  height: 16px;
}

.nav-search-select,
.nav-location-input {
  width: 12.5rem;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(82, 82, 91, 0.4);
}

.nav-location-input {
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
}

.nav-search-input {
  flex: 1;
  min-width: 14rem;
  padding: 0 16px;
  font-size: 0.9rem;
  line-height: 1.25;
}

.nav-location-input::placeholder,
.nav-search-input::placeholder {
  color: #a1a1aa;
}

.nav-search-select:focus,
.nav-location-input:focus,
.nav-search-input:focus {
  outline: none;
}

.nav-search-submit {
  min-height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.nav-search-submit-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-search-submit:hover {
  background: transparent;
  color: #ffffff;
}

.nav-search-submit:active {
  transform: translateY(1px);
}

.nav-main-row {
  flex-wrap: nowrap;
}

.nav-main-row > .logo-container--nav {
  margin-left: 0;
  margin-right: -28px;
}

.nav-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-right: -10px;
}

.nav-admin-pill {
  display: inline-block;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transform: translateX(-14px);
  transform-origin: center;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-admin-pill:hover {
  color: #ffffff;
  opacity: 0.9;
}

body.light-theme .nav-admin-pill {
  background: transparent;
  color: #ffffff;
}

body.light-theme .nav-admin-pill:hover {
  color: #ffffff;
}

.nav-utility-group {
  margin-left: auto;
}

.nav-main-search {
  flex: 1 1 35rem;
  min-width: 32rem;
}

.nav-auth-btn {
  white-space: nowrap;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.nav-auth-btn--ghost {
  padding: 0 16px;
  border-radius: 10px;
  background: transparent !important;
  border: none !important;
  color: #93c5fd !important;
  transition: all 0.2s ease;
}

.nav-auth-btn--ghost:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.nav-auth-btn--primary {
  padding: 0 16px;
  border-radius: 10px;
  background: transparent !important;
  border: none !important;
  color: #93c5fd !important;
  transition: all 0.2s ease;
}

.nav-auth-btn--primary:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.nav-sell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  margin-left: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-sell-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-sell-btn:hover {
  background: transparent;
  color: #ffffff;
}

body.light-theme .nav-sell-btn {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
}

body.light-theme .nav-sell-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
}

@media (min-width: 1201px) {
  .nav-search-form {
    height: 34px;
  }
}

@media (max-width: 1200px) {
  .logo-container--nav {
    transform: translateX(-6px);
  }

  .nav-main-row > .logo-container--nav {
    margin-right: 0;
  }

  .nav-search-submit-label {
    display: none;
  }

  .nav-main-row {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.55rem;
    column-gap: 0.5rem;
    overflow-x: clip;
  }

  .logo-container h1 {
    font-size: 1.65rem;
    line-height: 1;
  }

  .nav-brand-stack {
    order: 1;
    align-items: center;
    margin-right: 0;
    gap: 0;
    flex: 0 0 auto;
  }

  .nav-admin-pill {
    min-height: 0;
    margin: -3px 0 0;
    padding: 0;
    font-size: 7px;
    text-align: center;
    transform: translateX(-10px);
  }

  .nav-main-search {
    order: 10;
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-top: 0.25rem;
    overflow: visible;
    clear: both;
  }

  .nav-auth-row {
    order: 2;
    margin-left: 0;
  }

  .nav-utility-group {
    order: 3;
    display: flex;
    width: auto;
    margin-left: auto;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .nav-search-form,
  .nav-search-form > .flex {
    display: flex !important;
    align-items: center;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .nav-search-form {
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
    margin-top: 0 !important;
  }

  body.light-theme .nav-search-form {
    background: rgba(255, 255, 255, 0.16);
  }

  .nav-search-select-wrap {
    width: 40px;
    min-width: 40px;
  }

  .nav-search-input {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0 12px;
    color: #ffffff;
  }

  .nav-search-input::placeholder,
  .nav-location-input::placeholder,
  input.nav-search-select--compact::placeholder {
    color: rgba(255, 255, 255, 0.82);
  }

  .nav-search-select,
  select.nav-search-select--compact {
    display: block;
    flex: 0 0 auto;
    width: 2.6rem !important;
    min-width: 2.6rem !important;
    max-width: 2.6rem !important;
    padding: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.24) !important;
    appearance: none;
    -webkit-appearance: none;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
  }

  .nav-search-select option,
  select.nav-search-select--compact option {
    text-indent: 0;
    color: #f4f4f5;
    font-size: 0.95rem;
  }

  .nav-location-input,
  input.nav-search-select--compact {
    display: block;
    flex: 0 0 12rem;
    width: 12rem !important;
    min-width: 12rem !important;
    max-width: 12rem !important;
    padding: 0 0.875rem !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 0.9rem !important;
    text-indent: 0 !important;
    background-image: none !important;
    background-color: transparent !important;
    caret-color: #ffffff;
  }

  .nav-location-input::placeholder,
  .nav-search-input::placeholder,
  input.nav-search-select--compact::placeholder {
    color: rgba(255, 255, 255, 0.82) !important;
  }

  body.light-theme .nav-search-select,
  body.light-theme select.nav-search-select--compact {
    border-left: 1px solid rgba(15, 23, 42, 0.25) !important;
  }

  body.light-theme .nav-location-input,
  body.light-theme input.nav-search-select--compact {
    color: #ffffff !important;
  }

  .nav-category-icon {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-search-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 2.5rem;
    padding: 0 11px;
  }
}

@media (max-width: 640px) {
  .logo-container--nav {
    transform: translateX(-6px);
  }

  .nav-main-row > .logo-container--nav {
    margin-right: 0;
  }

  .nav-main-row {
    row-gap: 0.45rem;
    column-gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-main-row > .logo-container--nav {
    order: 1;
  }

  .nav-main-row > .nav-utility-group {
    order: 2;
    align-self: stretch;
    flex: 0 0 100%;
  }

  .nav-auth-row {
    order: 2;
    width: auto;
    margin-left: 0;
    justify-content: center;
  }

  .nav-utility-group {
    order: 2;
    width: 100%;
    margin-left: 0;
    flex-shrink: 0;
    gap: 0.32rem;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.32rem;
  }

  #nav-admin-pill,
  .nav-admin-pill {
    display: none !important;
  }

  .nav-main-search {
    order: 4;
    width: 100%;
    flex: 0 0 100%;
    margin-top: 0;
  }

  .nav-sell-label {
    display: none;
  }

  .nav-sell-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
    font-size: 0;
  }

  .nav-sell-btn svg {
    width: 14px;
    height: 14px;
  }

  .theme-switch {
    gap: 5px;
    padding: 3px 6px;
    min-height: 2rem;
  }

  .theme-switch-icon {
    width: 13px;
    height: 13px;
  }

  .theme-switch-icon svg {
    width: 12px;
    height: 12px;
  }

  .theme-switch-track {
    width: 26px;
    height: 14px;
    padding: 2px;
  }

  .theme-switch-thumb {
    width: 10px;
    height: 10px;
    transform: translateX(12px);
  }

  .theme-switch[data-theme='light'] .theme-switch-thumb {
    transform: translateX(0);
  }

  #profile-dropdown-toggle {
    gap: 0.3rem;
    padding: 0 2px;
  }

  #profile-avatar-image,
  #profile-avatar-fallback {
    width: 2rem;
    height: 2rem;
  }

  #profile-dropdown-toggle > svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .nav-notification-link {
    width: 2rem;
    height: 2rem;
  }

  .nav-notification-link svg {
    width: 14px;
    height: 14px;
  }

  .nav-icon-link {
    width: 2rem;
    height: 2rem;
  }

  .nav-icon-link svg {
    width: 14px;
    height: 14px;
  }

  .nav-search-submit,
  .nav-search-select,
  .nav-location-input,
  .nav-search-input {
    min-height: 34px;
  }

  .nav-search-form {
    gap: 4px;
    padding: 3px;
  }

  .nav-search-input {
    flex: 1 1 0;
    width: calc((100% - 2.25rem) / 2);
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 12px;
    font-size: 0.88rem;
    color: #ffffff;
  }

  .nav-search-input::placeholder,
  .nav-location-input::placeholder {
    color: rgba(255, 255, 255, 0.82);
  }

  .nav-search-submit {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    gap: 0;
  }

  .nav-search-select,
  select.nav-search-select--compact {
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    max-width: 2.25rem !important;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    appearance: none;
    -webkit-appearance: none;
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
  }

  body.light-theme .nav-search-select,
  body.light-theme select.nav-search-select--compact {
    border-left: 1px solid rgba(15, 23, 42, 0.25) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E") !important;
  }

  .nav-search-select option,
  select.nav-search-select--compact option {
    text-indent: 0;
    color: #f4f4f5;
    font-size: 0.95rem;
  }

  .nav-location-input,
  input.nav-search-select--compact {
    flex: 1 1 0;
    width: calc((100% - 2.25rem) / 2) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 0.75rem !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 0.88rem !important;
    text-indent: 0 !important;
    background-image: none !important;
    background-color: transparent !important;
    caret-color: #ffffff;
  }

  .nav-location-input::placeholder,
  .nav-search-input::placeholder,
  input.nav-search-select--compact::placeholder {
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.82) !important;
  }

  body.light-theme .nav-location-input,
  body.light-theme input.nav-search-select--compact {
    color: #ffffff !important;
  }

  #profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    width: min(18rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .nav-main-row {
    row-gap: 0.55rem;
  }

  .nav-auth-row {
    order: 3;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-auth-btn {
    padding: 0.42rem 0.62rem !important;
    font-size: 0.74rem;
    border-radius: 10px !important;
  }

  .section-badge {
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .info-chip {
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.77rem;
  }

  .section-badge svg,
  .info-chip svg {
    width: 15px;
    height: 15px;
  }

  body.account-page .section > div[class*='justify-between'] {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }

  body.account-page .section > div[class*='justify-between'] > div[class*='flex gap-2'] {
    width: 100%;
    flex-wrap: wrap;
  }
}

.nav-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d4d8;
  background: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-icon-link:hover {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
}

.nav-icon-link svg {
  width: 15px;
  height: 15px;
}

.nav-notification-link {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  color: #d4d4d8;
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.nav-notification-link:hover {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
}

.nav-notification-link svg {
  width: 15px;
  height: 15px;
}

.nav-notification-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  line-height: 1;
  text-align: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  border: 2px solid #0f172a;
  pointer-events: none;
}

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  line-height: 1;
  text-align: center;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  border: 2px solid #0f172a;
  pointer-events: none;
}

#profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
}

@media (max-width: 1023px) {
  #profile-dropdown-menu {
    position: fixed !important;
    top: 72px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}

body.account-page.light-theme .notification-summary-card {
  border-color: rgba(203, 213, 225, 0.6);
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
}

body.account-page.light-theme .notification-summary-label {
  color: #64748b;
}

body.account-page.light-theme .notification-summary-value {
  color: #0f172a;
}

body.account-page.light-theme .notification-card {
  border-color: #d6e1ee;
  background: #ffffff;
}

body.account-page.light-theme .notification-card:hover {
  border-color: #93c5fd;
}

body.account-page.light-theme .notification-card--unread {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16) inset;
}

body.account-page.light-theme .notification-card-title {
  color: #0f172a;
}

body.account-page.light-theme .notification-card-detail {
  color: #64748b;
}

body.account-page.light-theme .notification-card-time {
  color: #78909c;
}

body.light-theme .nav-notification-link {
  background: transparent;
  color: #ffffff;
  border-color: transparent;
}

body.light-theme .nav-icon-link {
  background: transparent;
  color: #ffffff;
  border-color: transparent;
}

body.light-theme .nav-icon-link:hover {
  background: transparent;
  border-color: transparent;
}

body.light-theme nav {
  background-color: #1468d4 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.16);
}

body.light-theme nav.bg-zinc-950\/90 {
  background-color: #1468d4 !important;
  background-image: none !important;
}

body.light-theme footer.bg-zinc-950 {
  background-color: #1468d4 !important;
  background-image: none !important;
  box-shadow: 0 -2px 10px rgba(30, 64, 175, 0.16);
}

body.account-page.light-theme footer.bg-zinc-950 {
  background-color: #1468d4 !important;
  background-image: none !important;
  box-shadow: 0 -2px 10px rgba(30, 64, 175, 0.16);
}

body.account-page.light-theme footer .text-zinc-100,
body.account-page.light-theme footer .text-zinc-300,
body.account-page.light-theme footer .text-zinc-400,
body.account-page.light-theme footer .text-zinc-500 {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.account-page.light-theme footer .border-zinc-700,
body.account-page.light-theme footer .border-zinc-800 {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.account-page.light-theme footer a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(219, 234, 254, 0.35);
}

body.light-theme footer.border-zinc-800,
body.light-theme footer .border-zinc-800 {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.light-theme footer .text-zinc-300,
body.light-theme footer .text-zinc-400,
body.light-theme footer .text-zinc-500 {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.light-theme footer a:hover,
body.light-theme footer .hover\:text-white:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(219, 234, 254, 0.35);
  text-decoration: none !important;
}

body.account-page.light-theme nav[aria-label="Account sections"] {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.light-theme nav .logo-wordmark {
  color: #ffffff !important;
}

/* Nav buttons — white glass on blue nav (light theme) */
body.light-theme nav .nav-auth-btn--ghost,
body.light-theme nav .nav-auth-btn--primary {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.light-theme nav .nav-auth-btn--ghost:hover,
body.light-theme nav .nav-auth-btn--primary:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

/* Only target the top-level auth/utility row items — not the dropdown content */
body.light-theme nav #nav-auth .text-zinc-100,
body.light-theme nav #nav-auth .text-white {
  color: #ffffff !important;
}

body.light-theme nav #nav-auth .border-zinc-700,
body.light-theme nav #nav-auth .border-zinc-600 {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

body.light-theme nav #nav-auth .hover\:bg-zinc-800:hover,
body.light-theme nav #nav-auth .hover\:bg-zinc-700:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

body.light-theme nav .text-zinc-400 {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.light-theme #profile-dropdown-toggle > svg {
  color: #ffffff !important;
}

body.light-theme .nav-search-form {
  background: transparent;
  box-shadow: none;
}

body.light-theme .nav-search-form:focus-within {
  box-shadow: none;
}

body.light-theme .nav-search-select,
body.light-theme .nav-location-input,
body.light-theme .nav-search-input,
body.light-theme select.nav-search-select--compact {
  background-color: transparent !important;
  color: #ffffff !important;
}

body.light-theme select.nav-search-select--compact {
  border: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 !important;
}

body.light-theme .nav-search-select option,
body.light-theme select.nav-search-select--compact option {
  background: #ffffff;
  color: #0f172a;
}

body.light-theme .nav-category-icon {
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .nav-search-input::placeholder,
body.light-theme .nav-location-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

body.light-theme .nav-location-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.68) 45%, rgba(255, 255, 255, 0.68) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.68) 45%, rgba(255, 255, 255, 0.68) 55%, transparent 55%),
    rgba(255, 255, 255, 0.18);
  border: none;
  box-shadow: none;
}

body.light-theme .nav-location-input::-webkit-search-cancel-button:hover {
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.88) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.88) 55%, transparent 55%),
    rgba(255, 255, 255, 0.28);
}

body.light-theme .nav-search-select:focus,
body.light-theme .nav-location-input:focus,
body.light-theme .nav-search-input:focus {
  outline: none;
}

body.light-theme .nav-search-submit {
  background: transparent;
  border: none;
  color: #ffffff;
}

body.light-theme .nav-search-submit:hover {
  background: transparent;
  color: #ffffff;
}

body.light-theme .nav-notification-link:hover {
  border-color: transparent;
  color: #ffffff;
  background: transparent;
}

body.light-theme .nav-notification-count {
  border-color: #ffffff;
}

body.light-theme .nav-cart-count {
  border-color: #ffffff;
}

@media (max-width: 640px) {
  body.account-page .section {
    padding: 1.25rem !important;
  }
}

@media (max-width: 1023px) {
  body.listing-page #listing-title {
    overflow-wrap: anywhere;
    line-height: 1.15;
  }

  body.listing-page #buy-now-btn,
  body.listing-page #place-bid-btn,
  body.listing-page button[onclick="contactSeller()"] {
    min-height: 46px;
  }
}

@media (max-width: 640px) {
  body.listing-page #listing-trust-grid {
    grid-template-columns: 1fr;
  }

  body.listing-page .button-icon {
    gap: 8px;
  }

  body.account-page #messages-conversations {
    max-height: 240px;
  }

  body.account-page .message-conversation-card {
    padding: 0.75rem !important;
  }

  body.account-page #messages-thread-header p,
  body.account-page #cases-thread-header p {
    overflow-wrap: anywhere;
  }

  body.account-page #messages-list .message-bubble,
  body.account-page #cases-list .message-bubble {
    max-width: 92% !important;
  }
}

.listing-action-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.listing-action-btn--edit {
  background: rgba(82, 82, 91, 0.75);
  border-color: #71717a;
  color: #f8fafc;
}

.listing-action-btn--edit:hover {
  background: rgba(113, 113, 122, 0.85);
  border-color: #a1a1aa;
}

.listing-action-btn--delete {
  background: rgba(127, 29, 29, 0.32);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.listing-action-btn--delete:hover {
  background: rgba(185, 28, 28, 0.45);
  border-color: rgba(252, 165, 165, 0.65);
  color: #ffffff;
}

body.light-theme .listing-action-btn--edit {
  background: #eef2f7;
  border-color: #cbd5e1;
  color: #1f2937;
}

body.light-theme .listing-action-btn--edit:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

body.light-theme .listing-action-btn--delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

body.light-theme .listing-action-btn--delete:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.my-listing-row {
  align-items: center;
}

body.account-page .my-listing-row {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.listing-featured-text {
  color: #facc15;
}

body.light-theme .listing-featured-text {
  color: #92400e;
}

body.account-page .my-listing-actions .account-listing-action {
  min-width: 88px;
  padding: 0.6rem 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.account-page .my-listing-actions .listing-action-btn--edit.account-listing-action {
  background: rgba(59, 130, 246, 0.24);
  border-color: rgba(96, 165, 250, 0.78);
  color: #dbeafe;
}

body.account-page .my-listing-actions .listing-action-btn--edit.account-listing-action:hover {
  background: rgba(59, 130, 246, 0.38);
  border-color: rgba(147, 197, 253, 0.95);
  color: #ffffff;
}

body.account-page .my-listing-actions .listing-action-btn--delete.account-listing-action {
  background: rgba(220, 38, 38, 0.28);
  border-color: rgba(252, 165, 165, 0.72);
  color: #ffe4e6;
}

body.account-page .my-listing-actions .listing-action-btn--delete.account-listing-action:hover {
  background: rgba(220, 38, 38, 0.45);
  border-color: rgba(254, 202, 202, 0.95);
  color: #ffffff;
}

body.light-theme.account-page .my-listing-row {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 10px 20px rgba(15, 23, 42, 0.08);
}

body.light-theme.account-page .my-listing-actions .listing-action-btn--edit.account-listing-action {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

body.light-theme.account-page .my-listing-actions .listing-action-btn--edit.account-listing-action:hover {
  background: #bfdbfe;
  border-color: #60a5fa;
  color: #1e40af;
}

body.light-theme.account-page .my-listing-actions .listing-action-btn--delete.account-listing-action {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

body.light-theme.account-page .my-listing-actions .listing-action-btn--delete.account-listing-action:hover {
  background: #fecaca;
  border-color: #f87171;
  color: #7f1d1d;
}

.my-listings-card-image {
  background: #18181b;
}

@media (max-width: 640px) {
  .my-listing-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .my-listing-media {
    width: 100% !important;
    height: 11rem !important;
    border-radius: 12px;
  }

  .my-listing-headline {
    flex-wrap: wrap;
    align-items: center;
  }

  .my-listing-chips .info-chip {
    font-size: 0.74rem;
    padding: 6px 9px;
  }

  .my-listing-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .my-listing-actions .listing-action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.58rem 0.75rem;
  }

  .my-listings-card-inner {
    flex-direction: column;
  }

  .my-listings-card-image {
    width: 100% !important;
    height: 12rem !important;
  }

  .my-listings-card-body {
    padding: 1rem !important;
  }

  .my-listings-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-listings-card-meta {
    text-align: left;
  }

  .my-listings-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .my-listing-actions,
  .my-listings-card-actions {
    grid-template-columns: 1fr;
  }

  .my-listing-actions .listing-action-btn,
  .my-listings-card-actions .listing-action-btn {
    width: 100%;
  }
}

button[class*="bg-"],
.listing-action-btn,
a[class*="bg-"],
a.auction-btn,
a.btn {
  border-radius: var(--obid-radius-control) !important;
  background-image: linear-gradient(180deg, var(--obid-btn-overlay-top) 0%, var(--obid-btn-overlay-bottom) 100%);
  box-shadow: inset 0 1px 0 var(--obid-bevel-top), inset 0 -1px 0 var(--obid-bevel-bottom);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

button[class*="bg-"]:hover:not(:disabled),
.listing-action-btn:hover,
a[class*="bg-"]:hover,
a.auction-btn:hover,
a.btn:hover {
  box-shadow: inset 0 1px 0 var(--obid-bevel-top), inset 0 -1px 0 var(--obid-bevel-bottom), var(--obid-btn-hover-shadow);
}

button[class*="bg-"]:active:not(:disabled),
.listing-action-btn:active,
a[class*="bg-"]:active,
a.auction-btn:active,
a.btn:active {
  box-shadow: inset 0 1px 0 var(--obid-bevel-top), inset 0 -1px 0 var(--obid-bevel-bottom);
}

button[class*="bg-"]:focus-visible,
.listing-action-btn:focus-visible,
a[class*="bg-"]:focus-visible,
a.auction-btn:focus-visible,
a.btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.bid-card,
#mylistings-list > div,
#listings-container > div,
#bids-list > div,
#orders-list > div,
.notification-card,
.notification-summary-card,
#profile-dropdown-menu {
  border-radius: var(--obid-radius-panel) !important;
}

body.light-theme {
  --obid-bevel-top: rgba(255, 255, 255, 0.88);
  --obid-bevel-bottom: rgba(148, 163, 184, 0.24);
  --obid-btn-overlay-top: rgba(255, 255, 255, 0.22);
  --obid-btn-overlay-bottom: rgba(15, 23, 42, 0.03);
  --obid-btn-hover-shadow: 0 3px 10px rgba(59, 130, 246, 0.14);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE & TABLET POLISH  —  phones ≤ 640px  /  tablets ≤ 1023px
   ═══════════════════════════════════════════════════════════════════ */

/* Keep the viewport locked to screen width on mobile browsers */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* All images stay within their containers */
img {
  max-width: 100%;
}

/* ── Tablets and small laptops: better touch targets for nav icons ── */
@media (max-width: 1200px) {
  .nav-main-row {
    width: 100%;
    min-width: 0;
  }

  .nav-main-search,
  .nav-search-form,
  .nav-search-form > .flex,
  .nav-search-input {
    min-width: 0;
  }

  .nav-notification-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Phones: compact nav touch targets ── */
@media (max-width: 640px) {
  .nav-notification-link {
    min-width: 32px;
    min-height: 32px;
  }

  .nav-search-submit,
  .nav-search-input,
  .nav-search-select,
  .nav-location-input {
    min-height: 34px;
  }

  /* Navbar: ensure full-width search input text is readable */
  .nav-search-input,
  .nav-location-input {
    font-size: 0.9rem;
  }
}

/* ── Account section panels: tighter padding on phones ── */
@media (max-width: 640px) {
  .account-section-panel {
    padding: 1.25rem !important;
    border-radius: 1rem !important;
  }
}

/* ── Listing details: quick bid buttons are easier to tap ── */
@media (max-width: 640px) {
  #quick-bids-box [data-snipe-amount] {
    min-height: 40px;
    padding: 0.4rem 0.65rem;
  }
}

/* ── Listing details: watchlist button expands to fill row ── */
@media (max-width: 480px) {
  #watchlist-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── Sell page: reduce inner panel padding on phone ── */
@media (max-width: 640px) {
  .sell-page .sell-form .bg-zinc-900 {
    padding: 1.1rem !important;
  }
}

/* ── Footer: reduce large padding on phone ── */
@media (max-width: 640px) {
  footer > div {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ── Very narrow phones (≤ 360 px): scale down large numbers ── */
@media (max-width: 360px) {
  #start-price {
    font-size: 1.875rem !important;
  }

  #bin-price {
    font-size: 1.5rem !important;
  }

  #auction-countdown-text {
    font-size: 1.25rem !important;
  }

  .logo-wordmark {
    font-size: 1.65rem;
  }
}