#ads-enhance-panel {
  margin: 16px 0 32px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
}

.ads-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid #e8eaf6;
  overflow: hidden;
}

.ads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
}

.ads-header h2 { margin: 0; font-size: 20px; }
.ads-sub { margin: 4px 0 0; opacity: .85; font-size: 13px; }

.ads-btn {
  border: 1px solid #c5cae9;
  background: #fff;
  color: #1a237e;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

.ads-btn-primary {
  background: #ff6f00;
  border-color: #ff6f00;
  color: #fff;
  font-weight: 600;
}

.ads-btn-sm { padding: 5px 10px; font-size: 12px; }
.ads-btn-danger { color: #c62828; border-color: #ffcdd2; }

.ads-table-wrap { overflow-x: auto; padding: 12px 16px 20px; }
.ads-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ads-table th, .ads-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: right; vertical-align: middle; }
.ads-table th { color: #5c6bc0; font-weight: 700; background: #f8f9ff; }
.ads-thumb { width: 90px; height: 44px; object-fit: cover; border-radius: 6px; }
.ads-muted { color: #78909c; font-size: 11px; margin-top: 3px; }
.ads-stats { font-size: 11px; color: #455a64; white-space: nowrap; }
.ads-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-top: 4px; }
.ads-badge-ok { background: #e8f5e9; color: #2e7d32; }
.ads-badge-off { background: #ffebee; color: #c62828; }
.ads-badge-warn { background: #fff3e0; color: #e65100; }
.ads-empty, .ads-loading, .ads-error { text-align: center; padding: 40px; color: #78909c; }
.ads-error { color: #c62828; }

.ads-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.ads-modal {
  background: #fff; border-radius: 14px; width: min(640px, 100%);
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.ads-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #eee;
}

.ads-modal-head h3 { margin: 0; font-size: 17px; color: #1a237e; }
.ads-close { border: none; background: none; font-size: 24px; cursor: pointer; color: #888; }
.ads-modal-body { padding: 16px 18px; overflow-y: auto; }
.ads-modal-foot { padding: 12px 18px; border-top: 1px solid #eee; display: flex; gap: 10px; justify-content: flex-end; }

.ads-grid label { display: block; margin-bottom: 12px; font-size: 13px; color: #37474f; }
.ads-grid input, .ads-grid select, .ads-grid textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd8dc;
  border-radius: 8px; font-size: 13px; box-sizing: border-box;
}

.ads-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ads-check { display: flex !important; align-items: center; gap: 8px; }
.ads-img-preview img { max-width: 100%; max-height: 120px; border-radius: 8px; margin-top: 8px; }

.ads-tech-checks {
  max-height: 180px; overflow-y: auto; border: 1px solid #e0e0e0;
  border-radius: 8px; padding: 8px; margin-top: 6px;
}

.ads-tech-item { display: block; padding: 4px 0; font-size: 12px; }

.ads-preview-card { padding: 16px; }
.ads-preview-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; }
.ads-preview-card h4 { margin: 12px 0 6px; color: #1a237e; }
.ads-price-old { text-decoration: line-through; color: #9e9e9e; font-size: 14px; }
.ads-price-new { color: #e65100; font-size: 20px; font-weight: 800; }
.ads-preview-btn {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  background: #ff6f00; color: #fff; border: none; border-radius: 10px;
  font-weight: 700; font-size: 15px;
}
.ads-preview-meta { margin-top: 14px; font-size: 12px; color: #607d8b; line-height: 1.8; }
