/* Zuto Classified — centered sign-in / create account modal */
.zuto-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.zuto-auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zuto-auth-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background:
    linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 55%, rgba(12, 18, 32, 1) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(234, 88, 12, 0.12);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}

.zuto-auth-modal.is-open .zuto-auth-modal__dialog {
  transform: translateY(0) scale(1);
}

.zuto-auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zuto-auth-modal__close:hover,
.zuto-auth-modal__close:focus-visible {
  background: rgba(234, 88, 12, 0.14);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fff;
  outline: none;
}

.zuto-auth-modal__header {
  padding: 28px 28px 0;
  text-align: center;
}

.zuto-auth-modal__brand {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(251, 146, 60, 0.1));
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fb923c;
  font-size: 1.25rem;
}

.zuto-auth-modal__title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.zuto-auth-modal__subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.zuto-auth-modal__body {
  padding: 22px 28px 28px;
}

.zuto-auth-modal__tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zuto-auth-modal__tab {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.zuto-auth-modal__tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.zuto-auth-modal__error {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.84rem;
  line-height: 1.45;
}

.zuto-auth-modal__field {
  margin-bottom: 14px;
}

.zuto-auth-modal__field label {
  display: block;
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
}

.zuto-auth-modal__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zuto-auth-modal__field input:focus {
  outline: none;
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

.zuto-auth-modal__pass-wrap {
  position: relative;
}

.zuto-auth-modal__pass-wrap input {
  padding-right: 2.75rem;
}

.zuto-auth-modal__pass-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.zuto-auth-modal__pass-toggle:hover,
.zuto-auth-modal__pass-toggle:focus-visible {
  color: #fb923c;
  background: rgba(234, 88, 12, 0.12);
  outline: none;
}

.zuto-auth-modal__success {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 0.84rem;
  line-height: 1.45;
}

.zuto-auth-modal__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.zuto-auth-modal__submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.zuto-auth-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.34);
}

.zuto-auth-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.zuto-auth-modal__submit--signup {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.22);
}

.zuto-auth-modal__footer {
  margin: 16px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.86rem;
}

.zuto-auth-modal__footer a {
  color: #fb923c;
  font-weight: 700;
  text-decoration: none;
}

.zuto-auth-modal__footer a:hover {
  text-decoration: underline;
}

.zuto-nav-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(234, 88, 12, 0.12);
  color: #fdba74;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.zuto-nav-signin-btn:hover {
  background: rgba(234, 88, 12, 0.22);
  border-color: rgba(251, 146, 60, 0.7);
  color: #fff;
}

body.zuto-auth-modal-open {
  overflow: hidden;
}

.zuto-auth-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 100060;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(234, 88, 12, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.zuto-auth-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.zuto-auth-toast__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.18);
  color: #fb923c;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .zuto-auth-toast {
    top: 76px;
    left: 12px;
    right: 12px;
    transform: translateY(-12px);
    justify-content: center;
  }

  .zuto-auth-toast.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .zuto-auth-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .zuto-auth-modal__dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 92vh;
  }

  .zuto-auth-modal__header {
    padding-top: 22px;
  }

  .zuto-auth-modal__body {
    padding: 18px 20px 24px;
  }

  .zuto-auth-modal__grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Post an Ad modal — warm dark Material-style design */
.zuto-post-ad-modal {
  --zpa-primary: #ff9800;
  --zpa-secondary: #f57c00;
  --zpa-background: #1a120b;
  --zpa-surface: #2c1e16;
  --zpa-surface-container: #3d2a1f;
  --zpa-surface-container-low: #4d3628;
  --zpa-surface-container-lowest: #241810;
  --zpa-on-surface: #fff3e0;
  --zpa-on-surface-variant: #ffe0b2;
  --zpa-outline: #ff9800;
  position: fixed;
  inset: 0;
  z-index: 100055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 18, 11, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.zuto-post-ad-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zuto-post-ad-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: min(92vh, 900px);
  border-radius: 12px;
  border: 1px solid var(--zpa-outline);
  background: var(--zpa-background);
  color: var(--zpa-on-surface);
  box-shadow: 0 0 24px rgba(255, 152, 0, 0.18), 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.zuto-post-ad-modal.is-open .zuto-post-ad-modal__dialog {
  transform: translateY(0) scale(1);
}

.zuto-post-ad-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: var(--zpa-surface);
  border-bottom: 1px solid var(--zpa-outline);
  flex-shrink: 0;
}

.zuto-post-ad-modal__topbar-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--zpa-primary);
}

.zuto-post-ad-modal__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--zpa-on-surface-variant);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

.zuto-post-ad-modal__icon-btn:hover,
.zuto-post-ad-modal__icon-btn:focus-visible {
  background: var(--zpa-surface-container-low);
  color: var(--zpa-on-surface);
  outline: none;
}

.zuto-post-ad-modal__icon-btn:active {
  transform: scale(0.95);
}

.zuto-post-ad-modal__icon-btn .material-symbols-outlined {
  font-size: 22px;
}

.zuto-post-ad-modal__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 28px;
}

.zuto-post-ad-modal__scroll.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.zuto-post-ad-modal__scroll.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.zuto-post-ad-modal__scroll.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--zpa-primary);
  border-radius: 20px;
}

.zuto-post-ad-modal__lead {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--zpa-on-surface-variant);
}

.zuto-post-ad-modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zuto-post-ad-section {
  background: var(--zpa-surface-container-lowest);
  border: 1px solid var(--zpa-outline);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

.zuto-post-ad-section__title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--zpa-on-surface);
}

.zuto-post-ad-modal__field {
  margin-bottom: 12px;
}

.zuto-post-ad-modal__field:last-child {
  margin-bottom: 0;
}

.zuto-post-ad-modal__field > label:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--zpa-on-surface);
}

.zuto-post-ad-modal__field input,
.zuto-post-ad-modal__field textarea,
.zuto-post-ad-modal__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--zpa-outline);
  background: var(--zpa-surface);
  color: var(--zpa-on-surface);
  font-size: 14px;
  line-height: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zuto-post-ad-modal__field input::placeholder,
.zuto-post-ad-modal__field textarea::placeholder {
  color: var(--zpa-on-surface-variant);
  opacity: 0.75;
}

.zuto-post-ad-modal__field textarea {
  resize: vertical;
  min-height: 96px;
}

.glow-input:focus {
  outline: none;
  border-color: var(--zpa-primary);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
  transform: translateY(-1px);
}

.zuto-post-ad-modal__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.zuto-post-ad-modal__grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.zuto-post-ad-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--zpa-on-surface-variant);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.zuto-post-ad-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--zpa-primary);
  border-color: var(--zpa-outline);
}

.zuto-post-ad-input-prefix {
  position: relative;
}

.zuto-post-ad-input-prefix__symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zpa-on-surface-variant);
  font-size: 14px;
  pointer-events: none;
}

.zuto-post-ad-input-prefix input {
  padding-left: 32px;
}

.zuto-post-ad-input-icon {
  position: relative;
}

.zuto-post-ad-input-icon .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--zpa-on-surface-variant);
  pointer-events: none;
  transition: color 0.2s ease;
}

.zuto-post-ad-input-icon:focus-within .material-symbols-outlined {
  color: var(--zpa-primary);
}

.zuto-post-ad-input-icon input {
  padding-left: 40px;
}

.zuto-post-ad-media-drop {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 160px;
  border: 2px dashed var(--zpa-outline);
  border-radius: 8px;
  background: var(--zpa-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.zuto-post-ad-media-drop:hover {
  border-color: var(--zpa-primary);
  background: var(--zpa-surface-container);
  transform: scale(1.01);
}

.zuto-post-ad-media-drop:active {
  transform: scale(0.99);
}

.zuto-post-ad-media-drop.is-dragover {
  border-color: var(--zpa-primary);
  background: var(--zpa-surface-container);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
}

.zuto-post-ad-media-drop__empty {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.zuto-post-ad-media-drop__icon {
  font-size: 48px;
  color: var(--zpa-primary);
  margin-bottom: 4px;
  animation: zpa-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes zpa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.zuto-post-ad-media-drop__label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--zpa-primary);
}

.zuto-post-ad-media-drop__hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--zpa-on-surface-variant);
}

.zuto-post-ad-media-drop__formats {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.03em;
  color: var(--zpa-on-surface-variant);
  opacity: 0.85;
  max-width: 280px;
}

.zuto-post-ad-media-browse {
  border: none;
  background: none;
  color: var(--zpa-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

.zuto-post-ad-media-preview {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.zuto-post-ad-media-preview img,
.zuto-post-ad-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zuto-post-ad-media-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(36, 24, 16, 0.9);
  color: var(--zpa-on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zuto-post-ad-media-remove .material-symbols-outlined {
  font-size: 20px;
}

.zuto-post-ad-modal__error,
.zuto-post-ad-modal__success {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.zuto-post-ad-modal__error {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.zuto-post-ad-modal__success {
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.zuto-post-ad-modal__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--zpa-primary), var(--zpa-secondary));
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.35), 0 0 15px rgba(255, 152, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}

.zuto-post-ad-modal__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4), 0 0 15px rgba(255, 152, 0, 0.25);
}

.zuto-post-ad-modal__submit:active {
  transform: translateY(0) scale(0.98);
}

.zuto-post-ad-modal__submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.zuto-post-ad-modal__submit .material-symbols-outlined {
  font-size: 22px;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

@keyframes zpa-slide-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.zuto-post-ad-animate {
  animation: zpa-slide-up 0.5s ease-out forwards;
}

.zuto-post-ad-animate--2 { animation-delay: 0.1s; opacity: 0; }
.zuto-post-ad-animate--3 { animation-delay: 0.2s; opacity: 0; }
.zuto-post-ad-animate--4 { animation-delay: 0.3s; opacity: 0; }
.zuto-post-ad-animate--5 { animation-delay: 0.4s; opacity: 0; }

body.zuto-post-ad-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .zuto-post-ad-animate,
  .zuto-post-ad-media-drop__icon {
    animation: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 720px) {
  .zuto-post-ad-modal__grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .zuto-post-ad-modal {
    padding: 0;
    align-items: flex-end;
  }

  .zuto-post-ad-modal__dialog {
    width: 100%;
    max-height: 96vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .zuto-post-ad-modal__scroll {
    padding: 16px 16px 24px;
  }

  .zuto-post-ad-modal__grid-2 {
    grid-template-columns: 1fr;
  }
}
