/* Desktop accuracy toast animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Search dropdown styles */
.search-dropdown {
  --card-bg: #fff;
  --border-color: #e5e7eb;
  --text-color: #1f2937;
  --hover-bg: #f3f4f6;
  --pill-bg: #f3f4f6;
}

[data-theme="dark"] .search-dropdown {
  --card-bg: #1e293b;
  --border-color: #334155;
  --text-color: #e2e8f0;
  --hover-bg: #334155;
  --pill-bg: #334155;
}

.search-category-pill:hover {
  background: var(--hover-bg, #e5e7eb) !important;
}

@keyframes img-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.image-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #f3f4f6;
  pointer-events: none;
}

.image-shell {
  position: relative;
  display: block;
  line-height: 0;
}

.image-shell>img {
  display: block;
}

/* Modern brand header */
.brand-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #111827);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.45), transparent 55%);
  opacity: 0.9;
}

.brand-initials {
  position: relative;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #22c55e;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #64748b;
}

[data-theme="dark"] .brand-title {
  color: #94a3b8;
}

.brand-tagline {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

/* Nav unread dot (desktop) */
.nav-unread-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
}

[data-theme="dark"] .nav-unread-dot {
  box-shadow: 0 0 0 2px var(--bg-primary, #1a1b26);
}

/* Ad card */
.ad-card {
  position: relative;
  display: grid;
  /* Use CSS variable for image size - content takes remaining space */
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--ad-image-size, 42%));
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ad-card.no-art {
  grid-template-columns: 1fr;
}

.ad-card.ad-preview {
  pointer-events: none;
}

.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
}

.ad-card:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.4);
  outline-offset: 4px;
  box-shadow: 0 24px 50px rgba(99, 102, 241, 0.35);
}

.ad-card__content {
  display: grid;
  gap: 8px;
  align-content: center;
}

.ad-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.72);
}

.ad-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ad-card__subtitle {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.78);
}

.ad-card__ctaRow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}

.ad-card__cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.ad-card__arrow {
  font-size: 0.9rem;
}

.ad-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card__art .image-shell {
  width: 100%;
  max-height: 160px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.ad-card__art img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 16px;
}


/* Modern button system */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-contrast: #f8fafc;
  --btn-radius: 14px;
}

/* Toggle control */
.toggle-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.toggle-card[data-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

.listing-queue-toast {
  position: fixed;
  top: 140px;
  right: 16px;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  opacity: 0;
  z-index: 2000;
  pointer-events: none;
}

.listing-queue-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.listing-queue-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
}

.listing-queue-toast__text {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

/* Edit listing toast styles */
.edit-listing-toast {
  position: fixed;
  top: 140px;
  right: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  z-index: 2000;
  cursor: pointer;
  animation: editToastSlideInOut 5s ease-out forwards;
  touch-action: pan-x;
  user-select: none;
}

.edit-listing-toast:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@keyframes editToastSlideInOut {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  /* Slide in complete */
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  /* Stay visible for 4 seconds */
  90% {
    transform: translateX(0);
    opacity: 1;
  }
  /* Slide out */
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.edit-listing-toast__cog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  animation: cogSpinInOut 5s ease-out forwards;
}

.edit-listing-toast__cog svg {
  width: 24px;
  height: 24px;
}

@keyframes cogSpinInOut {
  0% {
    transform: rotate(0deg);
  }
  /* Rotate forward during slide in, then ease to stop */
  10% {
    transform: rotate(720deg);
  }
  /* Stay still while toast is visible */
  90% {
    transform: rotate(720deg);
  }
  /* Rotate backward during slide out */
  100% {
    transform: rotate(0deg);
  }
}

.edit-listing-toast__text {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.toggle-card .toggle-copy {
  display: grid;
  gap: 2px;
}

.inquiry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #9f1239;
  background: linear-gradient(135deg, #fde68a 0%, #fbcfe8 100%);
  border: 1px solid rgba(219, 39, 119, 0.35);
  box-shadow: 0 6px 16px rgba(248, 113, 113, 0.25);
  letter-spacing: 0.2px;
}

.card .listing-description {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.toggle-input:checked+.toggle-slider {
  background: var(--accent);
}

.toggle-input:checked+.toggle-slider::after {
  transform: translateX(20px);
}

.toggle-card[data-disabled="true"] .toggle-input:checked+.toggle-slider {
  background: #9ca3af;
}

.toggle-card .toggle-slider:focus-visible,
.toggle-input:focus-visible+.toggle-slider {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  min-height: 0;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.36);
}

.btn.primary:focus-visible {
  outline-color: rgba(99, 102, 241, 0.55);
}

.btn.primary:disabled {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.28);
}

.btn.danger:hover:not(:disabled) {
  box-shadow: 0 18px 36px rgba(248, 113, 113, 0.32);
}

.btn.danger:focus-visible {
  outline-color: rgba(239, 68, 68, 0.55);
}

.btn.danger:disabled {
  background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

/* Global status banner */
.global-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  box-shadow: 0 6px 24px rgba(185, 28, 28, 0.12);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 32px));
  z-index: 9999;
  flex-direction: column;
  text-align: center;
}

.banner-text {
  flex: 1;
  font-weight: 600;
}

.banner-dismiss {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.banner-dismiss:hover {
  background: rgba(185, 28, 28, 0.12);
}

.banner-dismiss:focus-visible {
  background: rgba(185, 28, 28, 0.18);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Listing modal (all devices) */
.modal-inner.listing-modal {
  background: #fff;
  width: min(92vw, 720px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .modal-inner.listing-modal {
  background: var(--bg-secondary, #24283b);
}

[data-theme="dark"] .modal-inner.listing-modal .card {
  background: var(--bg-secondary, #24283b);
  color: #fff;
}

[data-theme="dark"] .modal-inner.listing-modal .card .muted,
[data-theme="dark"] .modal-inner.listing-modal .card p,
[data-theme="dark"] .modal-inner.listing-modal .card span,
[data-theme="dark"] .modal-inner.listing-modal .card div {
  color: #e2e8f0 !important;
}

/* Action buttons in listing modal - dark mode colors */
/* Danger buttons (Remove Listing) keep their red styling */
[data-theme="dark"] .modal-inner.listing-modal .card .btn.danger {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Buttons with inline background styles (Edit=blue, Mark as sold=green) keep their colors */
[data-theme="dark"] .modal-inner.listing-modal .card .btn[style*="background"],
[data-theme="dark"] .modal-inner.listing-modal .card button.btn[style*="background"] {
  color: #fff !important;
}

/* Inquiry badge - white text on darker background for dark mode */
[data-theme="dark"] .inquiry-badge {
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border-color: rgba(167, 139, 250, 0.5) !important;
}

/* Listing owner action icons */
.listing-action-icon:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .listing-action-icon:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.listing-action-icon:active {
  transform: scale(0.92);
}

/* Mark as sold icon - green always */
.listing-action-sold {
  color: #059669;
}

.listing-action-sold.is-sold {
  color: #059669;
}

.listing-action-sold:hover {
  color: #059669 !important;
}

/* Message icon - blue */
.listing-action-message {
  color: #3b82f6;
}

.listing-action-message:hover {
  color: #2563eb !important;
}

/* Report icon - gray, red on hover */
.listing-action-report {
  color: #9ca3af;
}

.listing-action-report:hover {
  color: #ef4444 !important;
}

/* Make the card behave like a normal sheet inside the modal */
.modal-inner.listing-modal .card {
  width: 100%;
  overflow: hidden;
  box-shadow: none;
}

/* Keep the hero image contained */
.modal-inner.listing-modal .aspect {
  position: relative;
  padding-top: 56%;
  margin-bottom: 12px;
}

.modal-inner.listing-modal .aspect .image-shell {
  position: absolute;
  inset: 0;
}

.modal-inner.listing-modal .aspect img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Padding for the text/buttons area */
.modal-inner.listing-modal .card>div:last-child {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.listing-editor-container {
  max-width: 960px;
  width: 100%;
}

.listing-form-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 32px;
}

.listing-form-screen__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.listing-form-screen__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.listing-form-screen__dismiss {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
  transition: background 120ms ease;
}

.listing-form-screen__dismiss:hover,
.listing-form-screen__dismiss:focus {
  background: #f3f4f6;
}

.listing-form-screen__spacer {
  width: 64px;
  height: 1px;
}

.listing-form-screen__body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.listing-form-screen__content {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 16px;
}

@media (max-width: 640px) {
  .listing-editor-container {
    max-width: 100%;
    padding: 0 12px;
  }

  .listing-form-screen {
    padding: 8px 0 24px;
  }

  .listing-form-screen__header {
    padding: 0 4px 8px;
  }

  .listing-form-screen__content {
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
}

/* Listing form dark mode (desktop only) */
[data-theme="dark"] .listing-form-screen__content {
  background: var(--bg-secondary, #24283b);
}

[data-theme="dark"] .listing-form-screen__header {
  border-bottom-color: var(--border-color, #414868);
}

[data-theme="dark"] .listing-form-screen__title {
  color: var(--text-primary, #c0caf5);
}

[data-theme="dark"] .listing-form-screen__dismiss {
  background: var(--bg-tertiary, #414868);
  border-color: var(--border-color, #414868);
  color: var(--text-primary, #c0caf5);
}

[data-theme="dark"] .listing-form-screen__dismiss:hover,
[data-theme="dark"] .listing-form-screen__dismiss:focus {
  background: var(--bg-primary, #1a1b26);
}

[data-theme="dark"] .listing-form-screen section h2 {
  color: var(--text-primary, #c0caf5) !important;
}

[data-theme="dark"] .listing-form-screen label {
  color: var(--text-secondary, #a9b1d6) !important;
}

[data-theme="dark"] .listing-form-screen input,
[data-theme="dark"] .listing-form-screen textarea,
[data-theme="dark"] .listing-form-screen select {
  background: var(--bg-tertiary, #414868) !important;
  color: var(--text-primary, #c0caf5) !important;
  border-color: var(--border-color, #414868) !important;
}

[data-theme="dark"] .listing-form-screen input::placeholder,
[data-theme="dark"] .listing-form-screen textarea::placeholder {
  color: var(--text-muted, #565f89) !important;
}

[data-theme="dark"] .listing-form-screen button,
[data-theme="dark"] .compact-listing-form button {
  background: var(--bg-tertiary, #414868) !important;
  color: var(--text-primary, #c0caf5) !important;
  border-color: var(--border-color, #414868) !important;
}

[data-theme="dark"] .listing-form-screen button.btn.primary,
[data-theme="dark"] .compact-listing-form button[type="submit"] {
  background: var(--accent-blue, #7aa2f7) !important;
  color: var(--bg-primary, #1a1b26) !important;
  border-color: var(--accent-blue, #7aa2f7) !important;
}

[data-theme="dark"] .compact-listing-form section {
  color: var(--text-primary, #c0caf5) !important;
}

[data-theme="dark"] .compact-listing-form h2 {
  color: var(--text-primary, #c0caf5) !important;
}

[data-theme="dark"] .compact-listing-form label {
  color: var(--text-secondary, #a9b1d6) !important;
}

[data-theme="dark"] .compact-listing-form input,
[data-theme="dark"] .compact-listing-form textarea,
[data-theme="dark"] .compact-listing-form select {
  background: var(--bg-tertiary, #414868) !important;
  color: var(--text-primary, #c0caf5) !important;
  border-color: var(--border-color, #414868) !important;
}

[data-theme="dark"] .compact-listing-form input::placeholder,
[data-theme="dark"] .compact-listing-form textarea::placeholder {
  color: var(--text-muted, #565f89) !important;
}

[data-theme="dark"] .compact-listing-form p {
  color: var(--text-muted, #565f89) !important;
}

[data-theme="dark"] .compact-listing-form span {
  color: var(--text-secondary, #a9b1d6) !important;
}

/* Listing edit modal form (in listings.js) dark mode */
[data-theme="dark"] .modal-inner .card {
  background: var(--bg-tertiary, #414868) !important;
  border-color: var(--border-color, #414868) !important;
}

[data-theme="dark"] .modal-inner .card input,
[data-theme="dark"] .modal-inner .card textarea,
[data-theme="dark"] .modal-inner .card select {
  background: var(--bg-secondary, #24283b) !important;
  color: var(--text-primary, #c0caf5) !important;
  border-color: var(--border-color, #414868) !important;
}

[data-theme="dark"] .modal-inner .card input::placeholder,
[data-theme="dark"] .modal-inner .card textarea::placeholder {
  color: var(--text-muted, #565f89) !important;
}

[data-theme="dark"] .modal-inner .card .muted {
  color: var(--text-muted, #565f89) !important;
}

[data-theme="dark"] .modal-inner .card div {
  color: var(--text-primary, #c0caf5) !important;
}

/* Search tags card in listing form */
.search-tags-card {
  background: #fafafa;
}

[data-theme="dark"] .search-tags-card {
  background: var(--bg-tertiary, #414868) !important;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  backdrop-filter: blur(2px);
  cursor: pointer;
}

@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 40px 16px;
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(90vw, 900px);
  max-height: calc(100vh - 80px);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  cursor: default;
}

.lightbox-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.lightbox-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}


@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 0;
  }

  .lightbox-content {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 100vh;
    padding: 0;
    gap: 8px;
    border-radius: 0;
  }
}

.flagged-detail-button {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  color: #111;
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.flagged-detail-button:hover,
.flagged-detail-button:focus-visible {
  border-color: #94a3b8;
  background: #f1f5f9;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

.flagged-detail-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f2937;
}

.flagged-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flagged-tag {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.flagged-detail-preview {
  font-size: 12px;
  color: #4b5563;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.lightbox-stage-skeleton {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.28) 0%, rgba(71, 85, 105, 0.45) 50%, rgba(148, 163, 184, 0.28) 100%);
  background-size: 240% 240%;
  animation: img-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.lightbox-main {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-main .image-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
}

.lightbox-main .image-shell .image-skeleton {
  border-radius: inherit;
}


.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

@media (max-width: 640px) {
  .lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
  }

  .lightbox-main .image-shell {
    border-radius: 0;
  }
}

.lightbox-empty {
  min-height: 200px;
  min-width: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #d1d5db;
  font-size: 15px;
  text-align: center;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-arrow.left {
  left: 12px;
}

.lightbox-arrow.right {
  right: 12px;
}

.lightbox-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}


.lightbox-counter {
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.lightbox-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px;
  width: 100%;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 12px;
}

.lightbox-thumbs.loading {
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.28);
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumb-skeleton {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.28) 0%, rgba(71, 85, 105, 0.42) 50%, rgba(148, 163, 184, 0.28) 100%);
  background-size: 220% 220%;
  animation: img-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
}

.lightbox-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.6;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.lightbox-thumbs .image-shell {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.lightbox-thumbs img:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.lightbox-thumbs img.active {
  opacity: 1;
  border-color: #3b82f6;
}

.lightbox-thumbs.empty {
  height: 64px;
  align-items: center;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.lightbox-thumbs.empty span {
  opacity: 0.75;
}

.message-toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 48px));
}

.message {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 280px;
}

/* Return to top toast */
.return-to-top-toast {
  position: fixed;
  top: 60%;
  right: 12px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease;
}

.return-to-top-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.return-to-top-toast.visible:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.return-to-top-toast.visible:active {
  transform: scale(0.95);
}

.messages-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  width: 100%;
  height: clamp(420px, 70vh, 640px);
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.messages-panel > * {
  min-height: 0;
}

.messages-panel-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.messages-panel-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  padding: 12px;
  border-left: 1px solid #e5e7eb;
}

.messages-panel-right .messages-thread-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .messages-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
}

.messages-panel .card {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  margin: 0 !important;
}

.messages-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0 12px;
  overflow: hidden;
  width: 280px;
  min-width: 280px;
  height: 100%;
  border-right: 1px solid #e5e7eb;
}

[data-theme="dark"] .messages-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.messages-thread-shell {
  border: none !important;
}

.messages-sidebar__header {
  font-weight: 700;
  margin-bottom: 6px;
}

.messages-sidebar__controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: stretch;
}

.messages-search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: #f9fafb;
  color: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .messages-search-input {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.messages-search-input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.messages-search-input::placeholder {
  color: #9ca3af;
}

[data-theme="dark"] .messages-search-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.messages-mark-read-btn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto !important;
  min-height: auto;
}

[data-theme="dark"] .messages-mark-read-btn {
  background: rgba(243, 244, 246, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: inherit;
}

.messages-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 12px;
  min-height: 0;
  flex: 1;
}

.messages-sidebar__empty {
  padding: 8px 6px;
}

.messages-thread-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.messages-thread-content {
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.messages-thread-header {
  display: none;
}

@media (max-width: 900px) {
  /* Conversations list - allow scrolling under bottom tab */
  .messages-panel {
    grid-template-columns: 1fr;
    height: auto !important;
    max-height: none !important;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible !important;
    position: static;
  }

  .messages-panel .card.messages-sidebar {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .messages-sidebar {
    max-height: none;
    height: auto;
    border-right: none;
    background: transparent !important;
    overflow: visible !important;
  }

  .messages-sidebar__list {
    overflow-y: visible;
    max-height: none;
    padding-bottom: 100px;
  }

  .messages-sidebar__header {
    display: none !important;
  }

  .messages-sidebar.hide-on-mobile {
    display: none;
  }

  /* DM Thread - fixed overlay container */
  .messages-thread-shell.hide-on-mobile {
    display: none !important;
  }

  .messages-thread-shell.show-on-mobile {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: #f8fafc !important;
    z-index: 9999 !important;
    overflow: hidden !important;
  }

  .messages-thread-content {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .messages-thread-shell.show-on-mobile textarea {
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    resize: none !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .messages-thread-header {
    display: flex !important;
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: inherit !important;
  }
}

.message-toast {
  background: rgba(17, 24, 39, 0.94);
  color: #f9fafb;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  outline: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.message-toast:focus,
.message-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
}

.message-toast__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #f9fafb;
}

.message-toast__preview {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(249, 250, 251, 0.85);
}

@media (max-width: 640px) {
  .message-toast-container {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}


.lightbox-info {
  font-size: 12px;
  color: #d1d5db;
  text-align: center;
}

@media (max-width: 640px) {
  .lightbox-thumbs img {
    width: 56px;
    height: 56px;
  }

  .lightbox-thumbs .image-shell {
    width: 56px;
    height: 56px;
  }

  .lightbox-thumb-skeleton {
    width: 56px;
    height: 56px;
  }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  display: block;
}

.premium-badge-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}

.premium-badge-btn:active {
  transform: translateY(0) scale(0.98);
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-body {
  padding: 24px;
}

/* Auth Modal Styles */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.auth-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-modal-header {
  padding: 28px 28px 0;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6b7280;
  transition: background 0.15s, color 0.15s;
}

.auth-modal-close:hover {
  background: #e5e7eb;
  color: #111;
}

.auth-modal-body {
  padding: 24px 28px 28px;
}

.auth-modal-body .form-group {
  margin-bottom: 16px;
}

.auth-modal-body .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.auth-modal-body .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #f9fafb;
}

.auth-modal-body .form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fff;
}

.auth-modal-body .form-group input::placeholder {
  color: #9ca3af;
}

.auth-modal .auth-info {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-modal .auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-modal .auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.auth-modal .auth-submit:hover:not(:disabled) {
  background: #333;
}

.auth-modal .auth-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-modal .auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-modal .auth-footer {
  text-align: center;
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

.auth-modal .auth-footer button {
  background: none;
  border: none;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-modal .auth-footer button:hover {
  text-decoration: underline;
}

.auth-modal .auth-link {
  background: none;
  border: none;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.auth-modal .auth-link:hover {
  text-decoration: underline;
}

.auth-modal .auth-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

[data-theme="dark"] .auth-modal {
  background: #1e293b;
}

[data-theme="dark"] .auth-modal-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .auth-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

[data-theme="dark"] .auth-modal-body .form-group label {
  color: #cbd5e1;
}

[data-theme="dark"] .auth-modal-body .form-group input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

[data-theme="dark"] .auth-modal-body .form-group input:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-modal-body .form-group input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .auth-modal .auth-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

[data-theme="dark"] .auth-modal .auth-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

[data-theme="dark"] .auth-modal .auth-submit {
  background: #3b82f6;
}

[data-theme="dark"] .auth-modal .auth-submit:hover:not(:disabled) {
  background: #2563eb;
}

[data-theme="dark"] .auth-modal .auth-footer {
  color: #94a3b8;
}

[data-theme="dark"] .auth-modal .auth-description {
  color: #94a3b8;
}

/* Profile Picture Avatar */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-small {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.profile-avatar-tiny {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-dropdown__trigger:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.custom-dropdown__trigger:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.custom-dropdown.open .custom-dropdown__trigger {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.custom-dropdown.disabled .custom-dropdown__trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f4f6;
}

.custom-dropdown__value {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown__arrow {
  color: #2563eb;
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 100;
  overflow: hidden;
  animation: dropdown-fade-in 0.15s ease;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dropdown__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-dropdown__option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.custom-dropdown__option:active {
  background: #e2e8f0;
}

.custom-dropdown__option.selected {
  background: #eff6ff;
  color: #2563eb;
}

.custom-dropdown__option.selected:hover {
  background: #dbeafe;
}

.custom-dropdown__option:first-child {
  border-radius: 11px 11px 0 0;
}

.custom-dropdown__option:last-child {
  border-radius: 0 0 11px 11px;
}

.custom-dropdown__option:only-child {
  border-radius: 11px;
}

.custom-dropdown__check {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}