:root {
--bg: #f6f7fb;
--card-bg: #ffffff;
--border: #dde1ea;
--accent: #2563eb;
--accent-soft: rgba(37, 99, 235, 0.08);
--accent-soft-strong: rgba(37, 99, 235, 0.16);
--text-main: #111827;
--text-muted: #6b7280;
--danger: #dc2626;
--success: #16a34a;
--radius: 12px;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: radial-gradient(circle at top left, #e5edff, var(--bg));
color: var(--text-main);
min-height: 100vh;
}
.page {
max-width: 1080px;
margin: 0 auto;
padding: 2rem 1.5rem 3rem;
}
h1 {
font-size: 1.6rem;
margin: 0 0 0.25rem;
}
.subtitle {
color: var(--text-muted);
font-size: 0.9rem;
}
.card {
background: var(--card-bg);
border-radius: 18px;
border: 1px solid rgba(15,23,42,0.03);
box-shadow: 0 18px 45px rgba(15,23,42,0.08);
padding: 1.5rem 1.75rem 1.75rem;
margin-top: 1.25rem;
}
.pill {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.18rem 0.6rem;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent);
font-size: 0.7rem;
font-weight: 500;
}
.pill-dot {
width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.cred-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
gap: 0.75rem;
align-items: end;
}
.field-label {
font-size: 0.78rem;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 0.15rem;
}
.field-input {
width: 100%;
border-radius: 999px;
border: 1px solid var(--border);
padding: 0.45rem 0.8rem;
font-size: 0.85rem;
outline: none;
background: #f9fafb;
}
.field-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent-soft-strong);
background: #ffffff;
}
.tiny-note {
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 0.4rem;
}
.btn {
border-radius: 999px;
border: 1px solid transparent;
padding: 0.45rem 0.95rem;
font-size: 0.82rem;
font-weight: 500;
cursor: pointer;
background: var(--accent);
color: #fff;
transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease, opacity 0.12s ease;
}
.btn:hover {
background: #1d4ed8;
box-shadow: 0 8px 18px rgba(37,99,235,0.3);
transform: translateY(-1px);
}
.btn[disabled] {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.btn-outlined {
background: transparent;
color: var(--accent);
border-color: var(--accent-soft-strong);
box-shadow: none;
}
.btn-outlined:hover {
background: var(--accent-soft);
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
border-color: transparent;
box-shadow: none;
}
.btn-ghost:hover {
background: #f3f4f6;
}
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }

.upload-area {
border-radius: var(--radius);
border: 1px dashed var(--border);
background: #f9fafb;
padding: 1rem 1.25rem;
display: flex;
align-items: center;
gap: 1rem;
position: relative;
transition: border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
.upload-area.dragover {
border-color: var(--accent);
background: var(--accent-soft);
}
.upload-icon {
width: 32px; height: 32px; border-radius: 999px;
background: var(--accent-soft);
display: flex; align-items: center; justify-content: center;
color: var(--accent); font-weight: 600; font-size: 1.1rem;
}
.upload-text-main { font-size: 0.95rem; font-weight: 500; }
.upload-text-sub { font-size: 0.8rem; color: var(--text-muted); }
.upload-actions { margin-left: auto; }
.upload-overlay {
position: absolute;
inset: 0;
background: rgba(249,250,251,0.8);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
color: var(--text-muted);
pointer-events: none;
}
.upload-disabled {
opacity: 0.5;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
gap: 0.75rem;
flex-wrap: wrap;
}
.section-header h2 {
font-size: 1rem;
margin: 0;
}
.section-header span {
font-size: 0.75rem;
color: var(--text-muted);
}
.section-header-controls {
display: flex;
align-items: center;
gap: 0.8rem;
font-size: 0.75rem;
color: var(--text-muted);
}
.section-header-controls label {
display: inline-flex;
align-items: center;
gap: 0.25rem;
cursor: pointer;
}

.table-wrapper {
border-radius: var(--radius);
border: 1px solid var(--border);
background: #f9fafb;
overflow-x: auto;
overflow-y: hidden;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.8rem;
min-width: 700px;
}
thead { background: #eef1f6; }
th, td {
padding: 0.55rem 0.75rem;
text-align: left;
}
th {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
}
tbody tr:nth-child(even) { background: #fdfefe; }
tbody tr:hover { background: #eef2ff; }
.checkbox-cell { width: 60px; text-align: center; white-space: nowrap; }
.checkbox-cell input { width: 16px; height: 16px; }
.t-number { font-variant-numeric: tabular-nums; }
.badge-current {
font-size: 0.72rem;
border-radius: 999px;
padding: 0.1rem 0.5rem;
background: var(--accent-soft);
color: var(--accent);
}
.badge-missing {
background: rgba(156,163,175,0.15);
color: var(--text-muted);
}
.status-chip {
font-size: 0.72rem;
color: var(--text-muted);
}
.status-ok { color: var(--success); }
.status-fail { color: var(--danger); }
.actions-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0.85rem;
gap: 1rem;
flex-wrap: wrap;
}
.small-muted {
font-size: 0.7rem;
color: var(--text-muted);
}
.status-area {
margin-top: 1rem;
padding: 0.65rem 0.75rem;
border-radius: var(--radius);
background: #eff6ff;
border: 1px solid var(--accent-soft-strong);
font-size: 0.78rem;
}
.status-area .status-line { margin: 0.05rem 0; }
.status-success { color: var(--success); }
.status-error { color: var(--danger); }
.hidden { display: none !important; }

.row-nochange {
background: transparent !important;
}

/* Account grouping */
.account-group {
margin-bottom: 1rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: #f9fafb;
overflow: hidden;
}
.account-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
background: #eef1f6;
cursor: pointer;
}
.account-header-left {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.account-toggle {
border: none;
background: transparent;
cursor: pointer;
font-size: 0.85rem;
padding: 0;
width: 1.1rem;
text-align: center;
}
.account-title {
font-weight: 600;
font-size: 0.85rem;
}
.account-count {
font-size: 0.75rem;
color: var(--text-muted);
}
.account-body {
border-top: 1px solid var(--border);
}
.account-body.collapsed {
display: none;
}

/* Loading overlay + indeterminate progress */
.loading-backdrop {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.12);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loading-card {
min-width: 260px;
padding: 0.9rem 1.2rem;
border-radius: 14px;
background: #ffffff;
box-shadow: 0 18px 40px rgba(15,23,42,0.25);
display: flex;
flex-direction: column;
gap: 0.55rem;
font-size: 0.85rem;
color: var(--text-main);
}
.loading-top-row {
display: flex;
align-items: center;
gap: 0.75rem;
}
.spinner {
width: 18px;
height: 18px;
border-radius: 999px;
border: 2px solid rgba(148,163,184,0.6);
border-top-color: var(--accent);
animation: spin 0.7s linear infinite;
}
.loading-text {
white-space: nowrap;
}
.progress-bar {
width: 100%;
height: 6px;
background: #f3f4f6;
border-radius: 3px;
overflow: hidden;
}
.progress-inner {
height: 100%;
background: var(--accent);
width: 0%;
}
.progress-inner.indeterminate {
animation: progressIndeterminate 1.1s infinite ease-in-out;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes progressIndeterminate {
0%   { width: 10%; transform: translateX(-30%); }
50%  { width: 70%; transform: translateX(10%); }
100% { width: 10%; transform: translateX(80%); }
}
@media (max-width: 768px) {
.cred-grid {
grid-template-columns: minmax(0, 1fr);
}
.upload-area {
flex-direction: column;
align-items: flex-start;
}
.upload-actions { margin-left: 0; }
}
/* ============================================================
CIB NEON ORANGE 5-RING LOADER (identical to canibreakit.com)
============================================================ */

/* ============================================================
   CIB NEON ORANGE LOGIN-STYLE LOADER OVERLAY
   ============================================================ */

#cib-loader-overlay {
  position: fixed;
  inset: 0;
  display: none;              /* JS toggles display + opacity */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.55);
  z-index: 2147483647;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cib-loader-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cib-loader-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #f9fafb;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

/* Ring container */
.cib-ring-stack {
  position: relative;
  width: 140px;
  height: 140px;
}

/* Base ring style */
.cib-loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #ff6600;
  box-shadow: 0 0 14px rgba(255,102,0,0.55);
  background: radial-gradient(circle at 30% 20%, rgba(255,102,0,0.3), transparent);
  animation: cibSpin 1.8s linear infinite;
}

/* Individual rings, staggered timing & direction */
.cib-loader-ring.ring1 {
  width: 34px;
  height: 34px;
  top: 53px;
  left: 53px;
  animation-duration: 1.0s;
}

.cib-loader-ring.ring2 {
  width: 58px;
  height: 40px;
  top: 50px;
  left: 41px;
  animation-duration: 1.4s;
  animation-direction: reverse;
}

.cib-loader-ring.ring3 {
  width: 82px;
  height: 52px;
  top: 44px;
  left: 29px;
  animation-duration: 1.8s;
}

.cib-loader-ring.ring4 {
  width: 106px;
  height: 64px;
  top: 38px;
  left: 17px;
  animation-duration: 2.2s;
  animation-direction: reverse;
  opacity: 0.7;
}

.cib-loader-ring.ring5 {
  width: 130px;
  height: 76px;
  top: 32px;
  left: 5px;
  animation-duration: 2.6s;
  animation-direction: alternate;
  opacity: 0.5;
}

@keyframes cibSpin {
  0% {
    transform: rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.25;
  }
}



/* Summary strip above groups */
.summary-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.5rem 0.85rem;
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: 0.78rem;
}

.summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  cursor: pointer;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 600;
}

.summary-value {
  font-weight: 700;
  color: var(--text-main);
}

.summary-good .summary-value {
  color: var(--success);
}

.summary-updated .summary-value {
  color: #3b82f6;
}

.summary-recommended .summary-value {
  color: var(--danger);
}

/* Hover + active effects on summary chips */
.summary-good:hover,
.summary-good.is-active {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
  background: rgba(34, 197, 94, 0.08);
}

.summary-updated:hover,
.summary-updated.is-active {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background: rgba(59, 130, 246, 0.08);
}

.summary-recommended:hover,
.summary-recommended.is-active {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
  background: rgba(239, 68, 68, 0.08);
}

/* Row highlight borders (no double-thick seams) */
tr.row-hl-good > td {
  border-top: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
}
tr.row-hl-good > td:first-child {
  border-left: 2px solid #22c55e;
}
tr.row-hl-good > td:last-child {
  border-right: 2px solid #22c55e;
}

tr.row-hl-updated > td {
  border-top: 2px solid #3b82f6;
  border-bottom: 2px solid #3b82f6;
}
tr.row-hl-updated > td:first-child {
  border-left: 2px solid #3b82f6;
}
tr.row-hl-updated > td:last-child {
  border-right: 2px solid #3b82f6;
}

tr.row-hl-recommended > td {
  border-top: 2px solid #ef4444;
  border-bottom: 2px solid #ef4444;
}
tr.row-hl-recommended > td:first-child {
  border-left: 2px solid #ef4444;
}
tr.row-hl-recommended > td:last-child {
  border-right: 2px solid #ef4444;
}



/* POC banner */
.poc-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  margin: 0.75rem 0;
  border-radius: var(--radius);
  border: 1px dashed var(--accent);
  background: rgba(234, 179, 8, 0.08);
  font-size: 0.8rem;
}

.poc-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--danger);
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.poc-text {
  color: var(--text-muted);
}

/* POC disclaimer modal */
.poc-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  z-index: 999;
}

.poc-modal {
  width: 100%;
  max-width: 520px;
  padding: 1.5rem 1.75rem;
  border-radius: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
}

.poc-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.poc-modal p {
  margin: 0 0 0.5rem;
}

.poc-modal ul {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
}

.poc-modal li {
  margin-bottom: 0.25rem;
}

.poc-strong {
  font-weight: 600;
  margin-top: 0.25rem;
}

.poc-btn {
  margin-top: 0.85rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.poc-btn:hover {
  filter: brightness(1.1);
}
