/* ============================================================
   reports-list.css — Reports archive page specific styles
   ============================================================ */

/* ── Header variant (compact) ── */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 28px;
}

.brand-n {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.hdr-a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.hdr-a:hover {
  color: var(--text);
  border-color: var(--primary);
}

/* ── Email gate ── */
.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 61px);
  padding: 40px 20px;
}

.gc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.gi {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.gt {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.gs {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 26px;
  line-height: 1.6;
}

.ginp {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.ginp:focus {
  border-color: var(--primary);
}

.gbtn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.gbtn:hover {
  background: var(--primary-hover);
}
.gbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gerr {
  color: var(--field-err);
  font-size: 0.82rem;
  margin-top: 10px;
  min-height: 18px;
}

/* ── Main content ── */
.main {
  display: none;
  padding: 32px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.main.on {
  display: block;
}

.ph {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.pt {
  font-size: 1.5rem;
  font-weight: 800;
}
.pt span {
  color: var(--primary);
}

/* ── Stats row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.sn {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
}

.sl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Table wrapper ── */
.tw {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.tb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.si {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.si:focus {
  border-color: var(--primary);
}

.chip {
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Table ── */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

tbody tr {
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

td {
  padding: 13px 16px;
  font-size: 0.86rem;
  vertical-align: middle;
}

.tdd {
  font-weight: 700;
}
.tdf {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.8rem;
}
.tdt,
.tdz {
  color: var(--muted);
  white-space: nowrap;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bs {
  background: rgba(79, 172, 254, 0.12);
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.3);
}
.bd2 {
  background: rgba(250, 112, 154, 0.12);
  color: #fa709a;
  border: 1px solid rgba(250, 112, 154, 0.3);
}

/* ── Action buttons ── */
.tda {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ab {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.ab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ab.p {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ab.p:hover {
  background: var(--primary-hover);
}
.ab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Empty / loading states ── */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.ei {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.et {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.sw {
  text-align: center;
  padding: 56px;
}

.sp {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(233, 30, 99, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 12px;
}

.sw-text {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── PDF overlay ── */
.ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.ov.on {
  display: flex;
}

.ov-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.ov p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hdr {
    padding: 12px 18px;
  }
  .main {
    padding: 20px 14px;
  }
  table {
    display: block;
    overflow-x: auto;
  }
}

/* ── Full-report generation modal ── */
.fr-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fr-modal-bg.open {
  display: flex;
}
.fr-modal {
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.fr-modal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.fr-modal p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.fr-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.92rem;
  outline: none;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.fr-input:focus {
  border-color: #e91e63;
}
.fr-btn {
  width: 100%;
  padding: 12px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.fr-btn:hover {
  background: #c2185b;
}
.fr-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.fr-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.fr-close:hover {
  color: #f1f5f9;
}
.fr-err {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 18px;
}
.fr-progress {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.fr-progress.show {
  display: block;
}
.fr-prog-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0;
}
.fr-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #e91e63, #7a3678);
  border-radius: 3px;
  transition: width 0.4s;
  width: 0%;
}
.fr-prog-txt {
  color: #94a3b8;
  font-size: 0.85rem;
}
.fr-result {
  display: none;
  text-align: center;
  padding: 10px 0;
}
.fr-result.show {
  display: block;
}
.fr-result-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.fr-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.fr-result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ── Tier badges ── */
.badge-free {
  background: rgba(251, 191, 36, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge-full {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ── Page header actions ── */
.ph-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
