/* Reporter Panel - Frontend CSS (modern responsive UI) */
:root {
  --rp-primary: #2563eb;
  --rp-primary-dark: #1d4ed8;
  --rp-primary-soft: rgba(37, 99, 235, 0.12);
  --rp-secondary: #eff6ff;
  --rp-success: #16a34a;
  --rp-warning: #ca8a04;
  --rp-danger: #dc2626;
  --rp-dark: #0f172a;
  --rp-gray: #64748b;
  --rp-light: #f1f5f9;
  --rp-surface: #ffffff;
  --rp-border: #e2e8f0;
  --rp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --rp-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.1);
  --rp-radius: 14px;
  --rp-radius-sm: 10px;
  --rp-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --rp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --rp-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --rp-duration: 0.18s;
  --rp-content-max: 72rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rp-duration: 0.01ms;
  }
}

body.reporter-panel-page {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.reporter-panel-page .rp-wrapper {
  isolation: isolate;
}

.rp-wrapper {
  font-family: var(--rp-font);
  color: var(--rp-dark);
  width: 100%;
  max-width: var(--rp-content-max);
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(12px, 3.5vw, 28px) clamp(12px, 4vw, 24px);
  line-height: 1.5;
}

/* ===================== CARDS ===================== */
.rp-card {
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: clamp(18px, 4vw, 30px);
  margin-bottom: clamp(16px, 3vw, 24px);
  border: 1px solid var(--rp-border);
  transition: box-shadow var(--rp-duration) var(--rp-ease), border-color var(--rp-duration) var(--rp-ease);
}

.rp-card:hover {
  border-color: #cbd5e1;
}

.rp-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(16px, 3vw, 24px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rp-border);
}

.rp-card-header-action {
  margin-left: auto;
}

.rp-card-toolbar {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rp-card-header h2,
.rp-card-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rp-dark);
}

.rp-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--rp-primary-soft);
  border-radius: var(--rp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* ===================== FORMS ===================== */
.rp-form-group {
  margin-bottom: 20px;
}

.rp-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--rp-dark);
  font-size: 0.9rem;
}

.rp-form-group label span.required {
  color: var(--rp-danger);
  margin-left: 3px;
}

.rp-form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-sm);
  font-size: 1rem;
  font-family: var(--rp-font);
  transition: border-color var(--rp-duration) var(--rp-ease), box-shadow var(--rp-duration) var(--rp-ease);
  box-sizing: border-box;
  background: var(--rp-surface);
  color: var(--rp-dark);
  -webkit-tap-highlight-color: transparent;
}

.rp-form-control:focus {
  outline: none;
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px var(--rp-primary-soft);
}

.rp-form-control::placeholder {
  color: #94a3b8;
}

.rp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 3vw, 20px);
}

@media (max-width: 720px) {
  .rp-form-row { grid-template-columns: 1fr; }
}

/* ===================== BUTTONS ===================== */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--rp-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--rp-duration) var(--rp-ease), color var(--rp-duration) var(--rp-ease), transform var(--rp-duration) var(--rp-ease-out), box-shadow var(--rp-duration) var(--rp-ease);
  text-decoration: none;
  font-family: var(--rp-font);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.rp-btn-primary {
  background: var(--rp-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.rp-btn-primary:hover {
  background: var(--rp-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.rp-btn-success {
  background: var(--rp-success);
  color: #fff;
}

.rp-btn-success:hover {
  background: #2d9249;
  color: #fff;
}

.rp-btn-danger {
  background: var(--rp-danger);
  color: #fff;
}

.rp-btn-danger:hover {
  background: #c5221f;
  color: #fff;
}

.rp-btn-secondary {
  background: var(--rp-light);
  color: var(--rp-dark);
  border: 1.5px solid var(--rp-border);
}

.rp-btn-secondary:hover {
  background: #e2e8f0;
  color: var(--rp-dark);
}

.rp-btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.rp-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ===================== ALERTS ===================== */
.rp-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rp-alert-success {
  background: #e6f4ea;
  color: #1e7e34;
  border-left: 4px solid var(--rp-success);
}

.rp-alert-error {
  background: #fce8e6;
  color: #c5221f;
  border-left: 4px solid var(--rp-danger);
}

.rp-alert-info {
  background: #e8f0fe;
  color: #1557b0;
  border-left: 4px solid var(--rp-primary);
}

.rp-alert-warning {
  background: #fef9e7;
  color: #856404;
  border-left: 4px solid var(--rp-warning);
}

/* ===================== STATS GRID ===================== */
.rp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(10px, 2.5vw, 16px);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.rp-stat-card {
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  padding: clamp(16px, 3vw, 22px);
  text-align: center;
  box-shadow: var(--rp-shadow);
  border: 1px solid var(--rp-border);
  transition: transform var(--rp-duration) var(--rp-ease-out), box-shadow var(--rp-duration) var(--rp-ease);
}

.rp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rp-shadow-hover);
}

.rp-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rp-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.rp-stat-label {
  font-size: 0.82rem;
  color: var(--rp-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================== NAVIGATION ===================== */
.rp-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 3vw, 28px);
  background: var(--rp-surface);
  padding: 8px;
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  border: 1px solid var(--rp-border);
  align-items: center;
}

.rp-nav a {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--rp-radius-sm);
  text-decoration: none;
  color: var(--rp-gray);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color var(--rp-duration) var(--rp-ease), color var(--rp-duration) var(--rp-ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
}

.rp-nav a:hover,
.rp-nav a.active {
  background: var(--rp-secondary);
  color: var(--rp-primary);
}

.rp-nav a.active {
  box-shadow: inset 0 0 0 1px var(--rp-primary-soft);
}

.rp-nav a:focus-visible {
  outline: 2px solid var(--rp-primary);
  outline-offset: 2px;
}

.rp-btn:focus-visible {
  outline: 2px solid var(--rp-primary);
  outline-offset: 2px;
}

.rp-nav-logout {
  color: var(--rp-danger) !important;
}

.rp-nav-logout:hover,
.rp-nav-logout:focus-visible {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.rp-dashboard-notice {
  margin: 0 0 16px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--rp-shadow);
}

.rp-dashboard-notice-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 10px 14px;
  font-weight: 600;
  color: #1e3a8a;
  animation: rpNoticeScroll 22s linear infinite;
}

.rp-dashboard-notice-track span {
  display: inline-flex;
  align-items: center;
}

@keyframes rpNoticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 901px) {
  .rp-nav .rp-nav-logout {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .rp-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .rp-nav a {
    justify-content: center;
    text-align: center;
    min-width: 0;
    white-space: normal;
  }

  .rp-nav .rp-nav-logout {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .rp-nav {
    grid-template-columns: 1fr;
  }
}

/* Dashboard-only nav polishing */
.rp-dashboard-nav a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .rp-dashboard-nav {
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  }
}

/* ===================== TABLES ===================== */
.rp-table-wrapper {
  overflow-x: auto;
}

.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rp-table th {
  background: var(--rp-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--rp-gray);
  border-bottom: 2px solid var(--rp-border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rp-border);
  vertical-align: middle;
}

.rp-table tr:hover {
  background: var(--rp-light);
}

/* ===================== BADGES ===================== */
.rp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rp-badge-pending {
  background: #fff3cd;
  color: #856404;
}

.rp-badge-published {
  background: #d4edda;
  color: #155724;
}

.rp-badge-approved {
  background: #d4edda;
  color: #155724;
}

.rp-badge-rejected {
  background: #f8d7da;
  color: #721c24;
}

.rp-badge-draft {
  background: #e2e3e5;
  color: #383d41;
}

/* ===================== OUR FAMILY ===================== */
.rp-page-hero {
  display:flex;
  align-items:center;
  gap:14px;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26,115,232,0.08) 0%, rgba(26,115,232,0.02) 100%);
  border: 1px solid rgba(26,115,232,0.14);
  margin-bottom: 18px;
}
.rp-page-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.rp-page-hero-text h2 { margin:0; font-size:1.55rem; font-weight: 900; letter-spacing: 0.01em; }
.rp-page-hero-text p { margin:4px 0 0; color: var(--rp-gray); font-size: 0.92rem; }

.rp-filter-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 12px 34px rgba(15,23,42,0.08);
  margin-bottom: 18px;
}
.rp-filter-grid {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items:end;
}
.rp-filter-item label {
  display:block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rp-filter-actions { display:flex; justify-content:flex-end; }

.rp-section-title {
  margin: 22px 0 12px;
  text-align:center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.rp-reporter-link { text-decoration:none; color: inherit; display:block; }
.rp-reporter-card--smart {
  border-radius: 16px;
  padding: 22px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.rp-reporter-card--smart:hover {
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow-hover);
  border-color: rgba(37, 99, 235, 0.22);
}
.rp-reporter-card--smart .rp-reporter-avatar {
  width: 84px;
  height: 84px;
  border: 4px solid rgba(26,115,232,0.15);
}
.rp-reporter-card--smart .rp-reporter-name { font-size: 1.02rem; }
.rp-reporter-card--smart .rp-reporter-designation { color: #0b5cff; }

.rp-empty-state {
  text-align:center;
  padding: 48px 20px;
  color: var(--rp-gray);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 12px 34px rgba(15,23,42,0.06);
}
.rp-empty-icon { font-size: 3rem; margin-bottom: 10px; }

.rp-filter-card .rp-form-control {
  border-radius: 12px;
  border-color: rgba(15,23,42,0.14);
}
.rp-filter-card .rp-form-control:focus {
  box-shadow: 0 0 0 4px rgba(26,115,232,0.12);
}

@media (max-width: 820px) {
  .rp-filter-grid { grid-template-columns: 1fr 1fr; }
  .rp-filter-actions { grid-column: 1 / -1; justify-content:flex-start; }
}
@media (max-width: 520px) {
  .rp-filter-grid { grid-template-columns: 1fr; }
}

.rp-reporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.rp-reporter-card {
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  border: 1px solid var(--rp-border);
  padding: clamp(18px, 3vw, 24px) 16px;
  text-align: center;
  transition: transform var(--rp-duration) var(--rp-ease-out), box-shadow var(--rp-duration) var(--rp-ease), border-color var(--rp-duration) var(--rp-ease);
}

.rp-reporter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow-hover);
  border-color: #cbd5e1;
}

.rp-reporter-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rp-secondary);
  margin: 0 auto 12px;
  display: block;
}

.rp-reporter-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rp-dark);
  margin-bottom: 4px;
}

.rp-reporter-designation {
  font-size: 0.82rem;
  color: var(--rp-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.rp-reporter-district {
  font-size: 0.8rem;
  color: var(--rp-gray);
}

.rp-reporter-id {
  font-size: 0.75rem;
  color: var(--rp-gray);
  background: var(--rp-light);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 8px;
}

.rp-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===================== PROFILE ===================== */
.rp-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.rp-profile-photo-wrap {
  flex-shrink: 0;
  text-align: center;
}

.rp-profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--rp-primary);
  margin-bottom: 10px;
  display: block;
}

.rp-profile-info { flex: 1; }

.rp-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.rp-profile-id {
  font-size: 0.85rem;
  color: var(--rp-gray);
  background: var(--rp-light);
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

/* ===================== PUBLIC REPORTER PROFILE ===================== */
.rp-author-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.rp-author-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  padding: clamp(18px, 4vw, 26px) clamp(16px, 3vw, 20px) 18px;
  margin-bottom: 18px;
}
.rp-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(26,115,232,0.14);
}
.rp-author-name { margin: 8px 0 0; font-size: 1.6rem; font-weight: 800; }
.rp-author-name--center { text-align:center; }
.rp-author-designation { color: var(--rp-primary); font-weight: 700; margin-top: 4px; text-align:center; }
.rp-author-subline { color: var(--rp-gray); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.rp-author-count { display:none; }

.rp-author-lead {
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap:18px;
  padding:16px 0 22px;
  border-top:1px solid #e5e7eb;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:16px;
}
.rp-author-lead-title {
  font-size:1.5rem;
  font-weight:800;
  line-height:1.4;
  margin:0 0 10px;
}
.rp-author-lead-title a { color:#111827; text-decoration:none; }
.rp-author-lead-title a:hover { text-decoration:underline; }
.rp-author-lead-excerpt {
  font-size:0.96rem;
  line-height:1.7;
  color:#374151;
  margin:0;
}
.rp-author-lead-thumb-wrap { display:block; }
.rp-author-lead-thumb {
  width:100%;
  height:100%;
  max-height:280px;
  object-fit:cover;
  border-radius:12px;
}

.rp-author-news-grid {
  display: grid;
  gap: clamp(12px, 2.5vw, 20px);
  margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: start;
}

.rp-author-news-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  align-items: start;
}

/* Reporter public profile: exactly 4 cards per row after the lead */
.rp-author-news-rows .rp-author-news-grid--4cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rp-author-news-rows .rp-author-news-grid--4cols + .rp-author-news-grid--4cols {
  margin-top: 24px;
}
.rp-author-news-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  overflow: hidden;
}
.rp-author-news-card--small {
  border-radius:12px;
  box-shadow:none;
  border:1px solid #e5e7eb;
}
.rp-author-news-thumb-wrap { display: block; min-height: 0; }
.rp-author-news-thumb { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; }
.rp-author-news-thumb--small { min-height:140px; }
.rp-author-news-body { padding: 14px 14px 14px 4px; }
.rp-author-news-title { margin: 0 0 8px; font-size: 1.22rem; line-height: 1.35; font-weight: 800; }
.rp-author-news-title--small { font-size:0.96rem; font-weight:700; }
.rp-author-news-title a { color: var(--rp-dark); text-decoration: none; }
.rp-author-news-title a:hover { color: var(--rp-primary); }
.rp-author-news-meta { color: var(--rp-gray); font-size: 0.82rem; margin-bottom: 8px; }
.rp-author-news-excerpt { color: #334155; margin: 0 0 10px; line-height: 1.6; }
.rp-author-news-link { color: var(--rp-primary); font-weight: 700; text-decoration: none; }
.rp-author-news-link:hover { text-decoration: underline; }

/* ===================== PRESS ID CARD ===================== */
.rp-press-id-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.rp-no-card-msg {
  text-align: center;
  padding: 40px;
  color: var(--rp-gray);
}

/* ===================== LOGIN / REGISTER ===================== */
.rp-auth-wrapper {
  max-width: min(440px, 100%);
  margin: clamp(16px, 5vw, 36px) auto;
}

.rp-auth-card {
  border: 1px solid #dbe5f3;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.rp-auth-app--advanced.rp-auth-wrapper {
  max-width: min(920px, 100%);
}

.rp-auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

.rp-auth-logo img {
  max-height: 60px;
}

.rp-auth-title {
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  color: var(--rp-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.rp-auth-subtitle {
  text-align: center;
  color: var(--rp-gray);
  margin-bottom: 24px;
  font-size: 0.9rem;
}


.rp-auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--rp-gray);
}

.rp-auth-links a {
  color: var(--rp-primary);
  font-weight: 600;
  text-decoration: none;
}

.rp-auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ----- Auth: mobile app-style shell (login / registration) ----- */
@media (max-width: 640px) {
  body.reporter-panel-page .rp-auth-app.rp-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-top: env(safe-area-inset-top, 0);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #ffffff;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-logo {
    margin-bottom: 12px;
    padding: 8px 20px 0;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-logo img {
    max-height: 52px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-title {
    color: #0f172a;
    text-shadow: none;
    padding: 0 20px;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-subtitle {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.45;
    padding: 0 24px;
    font-size: 0.9375rem;
  }

  body.reporter-panel-page .rp-auth-app .rp-card {
    border-radius: 24px 24px 0 0;
    border: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 26px rgba(15, 23, 42, 0.06);
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom, 0));
    margin-bottom: 0;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-card {
    border-left: none;
    border-right: none;
  }

  body.reporter-panel-page .rp-auth-app--signin .rp-card {
    margin-top: auto;
  }

  body.reporter-panel-page .rp-auth-app:not(.rp-auth-app--signin) .rp-card {
    margin: 0 16px 0;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  }

  body.reporter-panel-page .rp-auth-app .rp-form-control {
    border-radius: 12px;
    min-height: 48px;
    font-size: 16px;
  }

  body.reporter-panel-page .rp-auth-app .rp-form-group {
    margin-bottom: 14px;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-submit {
    min-height: 52px;
    font-size: 1.02rem;
    border-radius: 14px;
  }

  body.reporter-panel-page .rp-auth-app .rp-form-section-title {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-links {
    margin-top: 0;
    padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0));
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 1px solid #e2e8f0;
  }

  body.reporter-panel-page .rp-auth-app .rp-auth-links a {
    color: #2563eb;
    text-decoration: none;
    text-underline-offset: 3px;
  }

  body.reporter-panel-page .rp-auth-app--signin .rp-auth-links {
    border-radius: 0;
  }

  body.reporter-panel-page .rp-auth-app:not(.rp-auth-app--signin) .rp-auth-links {
    margin-top: 16px;
    border-radius: 0 0 20px 20px;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  }

  body.reporter-panel-page .rp-auth-app--advanced .rp-card {
    border-radius: 18px;
    margin: 0 10px 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.reporter-panel-page .rp-auth-app--advanced .rp-form-section {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
}

/* ===================== SUBMIT NEWS (comfortable editor layout) ===================== */
.rp-page-submit-news .rp-submit-news-card {
  overflow: visible;
}

.rp-form-section {
  margin: 0 0 clamp(20px, 4vw, 28px);
  padding-bottom: clamp(18px, 3vw, 24px);
  border-bottom: 1px solid var(--rp-border);
}

.rp-form-section--last {
  border-bottom: none;
  padding-bottom: 8px;
}

.rp-form-section-title {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-gray);
}

.rp-form-group--flush {
  margin-bottom: 0;
}

.rp-form-group--flush + .rp-form-group {
  margin-top: 16px;
}

.rp-form-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--rp-gray);
  line-height: 1.45;
}

.rp-page-submit-news .rp-input-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.rp-page-submit-news .rp-input-body {
  min-height: 220px;
  line-height: 1.65;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
}

.rp-page-submit-news .rp-input-excerpt {
  min-height: 88px;
  line-height: 1.55;
  resize: vertical;
}

.rp-file-input {
  padding: 14px 12px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--rp-radius-sm);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  min-height: auto;
}

.rp-file-input::file-selector-button,
.rp-file-input::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--rp-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}

.rp-featured-preview {
  margin-top: 12px;
  max-height: 100px;
  width: auto;
  max-width: 100%;
  border-radius: var(--rp-radius-sm);
  border: 1px solid var(--rp-border);
  display: block;
}

.rp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.rp-form-actions-primary {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  justify-content: center;
}

.rp-form-actions-secondary {
  flex: 1 1 160px;
  min-width: min(100%, 160px);
  justify-content: center;
}

.rp-news-edit-notice {
  margin: 8px 0 4px;
}

@media (max-width: 768px) {
  .rp-page-submit-news .rp-submit-news-card {
    padding-bottom: 8px;
  }

  .rp-page-submit-news .rp-input-body {
    min-height: min(320px, 48vh);
    font-size: 1.0625rem;
  }

  .rp-page-submit-news .rp-input-title {
    font-size: 1.125rem;
  }

  .rp-page-submit-news .rp-form-section-title {
    margin-bottom: 12px;
  }

  .rp-page-submit-news .rp-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 8px;
    margin-left: calc(-1 * clamp(18px, 4vw, 30px));
    margin-right: calc(-1 * clamp(18px, 4vw, 30px));
    padding: 14px clamp(18px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rp-border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
    gap: 10px;
  }

  .rp-page-submit-news .rp-form-actions-primary {
    flex: 1 1 100%;
    order: -1;
    min-height: 50px;
    border-radius: 12px;
  }

  .rp-page-submit-news .rp-form-actions-secondary {
    flex: 1 1 auto;
  }
}

@media (min-width: 769px) {
  .rp-page-submit-news .rp-news-form {
    max-width: 100%;
  }
}

/* ===================== PENDING STATUS ===================== */
.rp-pending-notice {
  text-align: center;
  padding: 40px 24px;
}

.rp-pending-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.rp-pending-notice--smart {
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.08);
}

.rp-pending-notice--smart h3 {
  margin: 0 0 8px;
  color: #92400e;
}

.rp-pending-notice--smart p {
  margin: 0;
  color: #78350f;
}

.rp-alert-pending {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}

.rp-reg-pending-ui {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rp-reg-pending-ui-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  flex-shrink: 0;
}

/* ===================== PHOTO UPLOAD ===================== */
.rp-photo-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rp-photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rp-border);
}

/* ===================== LEADERBOARD (reporter dashboard) ===================== */
.rp-leaderboard-card .rp-card-header {
  align-items: flex-start;
}

.rp-leaderboard-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.rp-leaderboard-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--rp-gray);
  line-height: 1.4;
  font-weight: 500;
}

.rp-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-leaderboard-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius-sm);
  background: var(--rp-light);
}

.rp-leaderboard-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--rp-primary-soft);
  color: var(--rp-primary);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rp-leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rp-border);
  flex-shrink: 0;
}

.rp-leaderboard-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-size: 1rem;
}

.rp-leaderboard-meta {
  flex: 1 1 120px;
  min-width: 0;
}

.rp-leaderboard-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.rp-leaderboard-id {
  display: block;
  font-size: 0.78rem;
  color: var(--rp-gray);
}

.rp-leaderboard-views-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
}

.rp-leaderboard-views {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--rp-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rp-leaderboard-views-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rp-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rp-leaderboard-item .rp-btn-sm {
  margin-left: 0;
}

@media (min-width: 600px) {
  .rp-leaderboard-item .rp-btn-sm {
    margin-left: auto;
  }
}

.rp-leaderboard-card--empty .rp-leaderboard-empty-msg {
  margin: 0;
  padding: 8px 0 4px;
  color: var(--rp-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .rp-leaderboard-item {
    flex-wrap: nowrap;
  }
}

/* ===================== PAGINATION ===================== */
.rp-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rp-pagination a,
.rp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--rp-radius-sm);
  border: 1px solid var(--rp-border);
  text-decoration: none;
  color: var(--rp-dark);
  font-size: 0.875rem;
  transition: background-color var(--rp-duration) var(--rp-ease), color var(--rp-duration) var(--rp-ease), border-color var(--rp-duration) var(--rp-ease);
  -webkit-tap-highlight-color: transparent;
}

.rp-pagination a:hover {
  background: var(--rp-secondary);
  color: var(--rp-primary);
  border-color: var(--rp-primary);
}

.rp-pagination .current {
  background: var(--rp-primary);
  color: #fff;
  border-color: var(--rp-primary);
}

/* ===================== RESPONSIVE (tablet & mobile) ===================== */
@media (max-width: 1024px) {
  .rp-author-news-rows .rp-author-news-grid--4cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-reporters-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  .rp-card-header-action {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .rp-card-toolbar {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .rp-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rp-author-hero {
    text-align: center;
  }

  .rp-author-subline {
    justify-content: center;
    flex-wrap: wrap;
  }

  .rp-author-lead {
    grid-template-columns: 1fr;
  }

  .rp-author-news-body {
    padding: 12px 14px 14px;
  }

  .rp-table th,
  .rp-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .rp-table-recent-news thead {
    display: none;
  }

  .rp-table-recent-news,
  .rp-table-recent-news tbody,
  .rp-table-recent-news tr,
  .rp-table-recent-news td {
    display: block;
    width: 100%;
  }

  .rp-table-recent-news tr {
    background: #fff;
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .rp-table-recent-news td {
    border-bottom: 1px dashed #e2e8f0;
    padding: 9px 2px;
  }

  .rp-table-recent-news td:last-child {
    border-bottom: none;
  }

  .rp-table-recent-news td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .rp-table-recent-news .rp-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .rp-table-recent-news .rp-table-actions .rp-btn {
    flex: 1 1 130px;
    min-height: 40px;
  }

  .rp-page-hero {
    flex-wrap: wrap;
  }

  .rp-page-hero-text h2 {
    font-size: 1.35rem;
  }

  .rp-author-news-grid--compact:not(.rp-author-news-grid--4cols) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rp-author-news-card--small {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .rp-author-news-rows .rp-author-news-grid--4cols {
    grid-template-columns: 1fr;
  }

  .rp-stat-number {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-btn:hover,
  .rp-stat-card:hover,
  .rp-reporter-card:hover,
  .rp-reporter-card--smart:hover {
    transform: none !important;
  }

  .rp-card:hover {
    box-shadow: var(--rp-shadow);
  }
}

@media print {
  .rp-wrapper { padding: 0; }
  .rp-nav, .rp-btn, .rp-no-print { display: none !important; }
  .rp-id-sk-face { box-shadow: none !important; }
}

/* Image */
.PrimeItWorld_siteWrap .PrimeItWorld_main .pitw_archive_container .justify-content-center .col-sm-12 .otherPageBody .singleDetails .rp-author-wrap .rp-author-news-grid--compact .rp-author-news-card--small .rp-author-news-thumb-wrap img{
	width:100% !important;
}

/* Image */
.rp-author-wrap .rp-author-news-thumb-wrap img{
	height:140px;
	min-height:1px;
}

/* PrimeItWorld (and similar): hide archive title row + breadcrumb on Reporter Panel pages only */
body.reporter-panel-page .archive_header,
body.reporter-panel-page .pitw_breadCrumb {
	display: none !important;
}

