/* Copied from mobile — overlay is the only scroller (Android-safe) */

html body div.modal.cl-report-ad-modal-wrap,
html body #cl-report-ad-modal {
  padding: 0 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.65) !important;
  pointer-events: auto !important;
  touch-action: pan-y !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  z-index: 7001 !important;
}

html body div.modal.cl-report-ad-modal-wrap.show,
html body #cl-report-ad-modal.show {
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(40px, env(safe-area-inset-bottom, 0px)) !important;
}

html body div.modal.cl-report-ad-modal-wrap .cl-report-ad-dialog,
html body #cl-report-ad-modal .cl-report-ad-dialog {
  max-width: min(480px, 94vw) !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  display: block !important;
  margin: 12px auto 24px !important;
  border: none !important;
  pointer-events: auto !important;
  transform: none !important;
}

html body .cl-report-ad-content {
  border-radius: 24px !important;
  overflow: visible !important;
  transform: none !important;
  animation: clModalPopIn 0.25s ease both;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  max-height: none !important;
  height: auto !important;
  display: block !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

body[data-skin="dark"] .cl-report-ad-content {
  background: #181d24 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
  color: #f8fafc !important;
}

@keyframes clModalPopIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 4. Modal Header */
.cl-report-ad-header {
  padding: 20px 22px 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  position: relative !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

body[data-skin="dark"] .cl-report-ad-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  background: #181d24 !important;
}

.cl-report-ad-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.cl-report-ad-header__text {
  flex: 1;
  min-width: 0;
}

.cl-report-ad-title {
  margin: 0 0 4px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--cl-primary-text-color, #0f172a) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px !important;
}

body[data-skin="dark"] .cl-report-ad-title {
  color: #f8fafc !important;
}

.cl-report-ad-subtitle {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: var(--cl-secondary-text-color, #64748b) !important;
}

body[data-skin="dark"] .cl-report-ad-subtitle {
  color: #94a3b8 !important;
}

.cl-report-ad-close {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-top: -2px;
}

body[data-skin="dark"] .cl-report-ad-close {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.cl-report-ad-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  transform: rotate(90deg);
}

/* 5. Mini Ad Context Pill */
.cl-report-ad-preview {
  margin: 14px 22px 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0 !important;
}

body[data-skin="dark"] .cl-report-ad-preview {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
}

.cl-report-ad-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.cl-report-ad-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-report-ad-preview__info {
  flex: 1;
  min-width: 0;
}

.cl-report-ad-preview__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cl-primary-text-color, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-skin="dark"] .cl-report-ad-preview__name {
  color: #f1f5f9;
}

.cl-report-ad-preview__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(29, 155, 240, 0.1);
  color: #1d9bf0;
}

.cl-report-ad-preview__desc {
  font-size: 12px;
  color: var(--cl-secondary-text-color, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

body[data-skin="dark"] .cl-report-ad-preview__desc {
  color: #94a3b8;
}

/* 6. Reasons List */
.cl-report-ad-body {
  padding: 10px 22px 14px !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  min-height: auto !important;
  touch-action: pan-y !important;
}

.cl-report-ad-reasons__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--cl-secondary-text-color, #64748b);
  margin-bottom: 10px;
}

body[data-skin="dark"] .cl-report-ad-reasons__label {
  color: #94a3b8;
}

.cl-report-ad-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-report-reason-item {
  display: block;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.cl-report-reason-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cl-report-reason-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-skin="dark"] .cl-report-reason-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.cl-report-reason-item:hover .cl-report-reason-card {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

body[data-skin="dark"] .cl-report-reason-item:hover .cl-report-reason-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.cl-report-reason-card.is-selected {
  background: rgba(239, 68, 68, 0.05) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}

body[data-skin="dark"] .cl-report-reason-card.is-selected {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.22);
}

.cl-report-reason-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cl-report-reason-card.is-selected .cl-report-reason-icon {
  transform: scale(1.08);
}

.cl-report-reason-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.cl-report-reason-icon--purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.cl-report-reason-icon--red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.cl-report-reason-icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.cl-report-reason-icon--teal {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.cl-report-reason-icon--gray {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.cl-report-reason-details {
  flex: 1;
  min-width: 0;
}

.cl-report-reason-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cl-primary-text-color, #0f172a);
  line-height: 1.25;
}

body[data-skin="dark"] .cl-report-reason-title {
  color: #f8fafc;
}

.cl-report-reason-desc {
  font-size: 11.5px;
  color: var(--cl-secondary-text-color, #64748b);
  line-height: 1.35;
  margin-top: 2px;
}

body[data-skin="dark"] .cl-report-reason-desc {
  color: #94a3b8;
}

.cl-report-reason-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

body[data-skin="dark"] .cl-report-reason-check {
  border-color: #475569;
}

.cl-report-reason-card.is-selected .cl-report-reason-check {
  border-color: #ef4444;
  background: #ef4444;
}

.cl-report-reason-card.is-selected .cl-report-reason-check::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

/* 7. Optional Details */
.cl-report-ad-comment-wrap {
  margin-top: 12px;
  animation: clFadeSlideDown 0.2s ease;
}

@keyframes clFadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cl-report-ad-comment-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--cl-secondary-text-color, #64748b);
  margin-bottom: 6px;
}

body[data-skin="dark"] .cl-report-ad-comment-label {
  color: #94a3b8;
}

.cl-report-ad-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cl-primary-text-color, #0f172a);
  resize: none;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

body[data-skin="dark"] .cl-report-ad-textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.cl-report-ad-textarea:focus {
  border-color: #ef4444;
}

/* 8. Footer */
.cl-report-ad-footer {
  padding: 14px 22px 18px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  background: #ffffff !important;
  pointer-events: auto !important;
}

.cl-report-reason-item {
  position: relative;
  pointer-events: auto !important;
  touch-action: manipulation;
}

body[data-skin="dark"] .cl-report-ad-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: #181d24 !important;
}

.cl-report-ad-cancel-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--cl-primary-text-color, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-skin="dark"] .cl-report-ad-cancel-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.cl-report-ad-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

body[data-skin="dark"] .cl-report-ad-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cl-report-ad-submit-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.32);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cl-report-ad-submit-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.cl-report-ad-submit-btn:not(:disabled):hover,
.cl-report-ad-submit-btn:not(:disabled):active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.42);
}

