:root {
  --brand: #c51a27;
  --brand-dark: #9e1520;
  --brand-light: #fdf0f1;
  --brand-border: #f0b3b7;
  --green: #1a7f3c;
  --green-dark: #145f2d;
  --green-light: #edf7f1;
  --green-border: #a8dbb9;
  --text-dark: #1a1a1a;
  --border-light: #e8e8e8;
}

/* ── Completion section ── */
.adclp_completion_subsection {
  margin: 2.5rem 0 1rem;
  border-top: 3px solid var(--brand);
  padding-top: 2rem;
}

.adclp_completion_inner {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.adclp_completion_inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green-dark);
}

/* ── Completed state ── */
.adclp-message-completed {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.adclp-dashicons-yes::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.adclp-message-completed strong { color: var(--green-dark); font-weight: 600; }

/* ── Guest message ── */
.adclp-message-guest {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  max-width: 480px;
}

.adclp-message-guest strong { color: var(--brand-dark); }

/* ── Buttons ── */
.adclp-complete-button,
.adclp-guest-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.adclp-complete-button {
  background: var(--green);
  color: #fff;
  gap: 10px;
  box-shadow: 0 2px 0 var(--green-dark);
}

.adclp-complete-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--green-dark);
}

.adclp-complete-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--green-dark);
}

.adclp-guest-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.adclp-guest-buttons .button:first-child { background: var(--brand); color: #fff; }
.adclp-guest-buttons .button:first-child:hover { background: var(--brand-dark); transform: translateY(-1px); }
.adclp-guest-buttons .button:last-child { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.adclp-guest-buttons .button:last-child:hover { background: var(--brand-light); transform: translateY(-1px); }

.adclp-btn-icon {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.adclp-complete-label { font-size: 1rem; color: var(--text-dark); }
.adclp-complete-note  { font-size: 0.9rem; color: var(--text-dark); }

/* ── Next course ── */
.adclp-next-course-wrap {
  margin-top: 1.5rem;
  border-top: 1px solid var(--brand-border);
  padding-top: 1.25rem;
  width: 100%;
}

.adclp-next-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.adclp-next-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.adclp-next-card:hover {
  border-color: var(--brand-border);
  box-shadow: 0 2px 8px rgba(197, 26, 39, 0.08);
}

.adclp-next-thumb,
.adclp-next-thumb-placeholder {
  width: 140px;
  height: 90px;
  border-radius: 8px;
  flex-shrink: 0;
}

.adclp-next-thumb { object-fit: cover; }

.adclp-next-thumb-placeholder {
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adclp-next-thumb-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }
.adclp-next-info { flex: 1; min-width: 0; text-align: left; }

.adclp-next-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 5px;
}

.adclp-next-sub { font-size: 0.85rem; color: #888; }

.adclp-next-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  font-size: 16px;
}

/* ── Progress bar — shared ── */
.adclp-subcat-progress {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
}

.adclp-subcat-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.adclp-subcat-progress-label { font-size: 1rem; font-weight: 600; color: var(--green-dark); }
.adclp-subcat-progress-count { font-size: 1rem; color: var(--text-dark); white-space: nowrap; }
.adclp-subcat-progress-pct   { font-size: 0.9rem; color: var(--text-dark); margin-top: 0.4rem; text-align: right; }

.adclp-subcat-bar-track {
  width: 100%;
  height: 10px;
  background: #fff;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--green-border);
}

.adclp-subcat-bar-fill,
.adclp-bar-fill-overall {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.adclp-subcat-bar-fill { background: var(--green); }

/* ── Blueprint link ── */
.adclp-blueprint-link { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.adclp-blueprint-link:hover { color: var(--green); }

/* ── Guest preview ── */
.adclp-guest-preview {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.adclp-guest-preview-bar-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.adclp-guest-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adclp-guest-preview-label { font-size: 0.85rem; font-weight: 600; color: var(--green-dark); opacity: 0.45; }
.adclp-guest-preview-count { font-size: 0.8rem; color: #aaa; white-space: nowrap; }

.adclp-guest-bar-fill {
  height: 100%;
  width: 35%;
  background: repeating-linear-gradient(90deg, var(--green) 0px, var(--green) 8px, var(--green-border) 8px, var(--green-border) 16px);
  border-radius: 99px;
  opacity: 0.4;
}

.adclp-guest-preview-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}

.adclp-guest-next-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.82rem;
  color: #666;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.adclp-guest-next-hint svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }

/* ── Account dashboard ── */
.adclp-account-dashboard { display: flex; flex-direction: column; gap: 1.5rem; }

.adclp-account-overall,
.adclp-account-subcats,
.adclp-activity-chart-wrap {
  padding: 1.25rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adclp-account-overall,
.adclp-activity-chart-wrap {
  background: #f0f0f0;
  border: 1px solid #ddd;
}

.adclp-account-subcats {
  background: var(--green-light);
  border: 1px solid var(--green-border);
}

.adclp-account-overall { gap: 0.5rem; }
.adclp-account-overall .adclp-subcat-progress-label { color: var(--brand); }

.adclp-bar-overall { height: 14px; }

.adclp-bar-fill-overall { background: var(--brand); }

.adclp-account-subcat { 
  background: #fff;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.adclp-account-subcat + .adclp-account-subcat { padding-top: 1rem; border-top: 1px solid var(--green-border); }

.adclp-toggle-courses {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--green-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.adclp-toggle-courses:hover {
  background: var(--green-light);
}

.adclp-toggle-arrow {
  font-size: 12px;
  transition: transform 0.2s;
  display: inline-block;
}

.adclp-subcat-courses {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.adclp-course-row {
  background: #f9f9f9;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.adclp-course-row:hover,
.adclp-next-recommended-row:hover {
  border-color: var(--green-border);
  box-shadow: 0 2px 6px rgba(26, 127, 60, 0.08);
}

.adclp-course-row--completed {
  background: #f0faf4;
  border-color: var(--green-border);
}

.adclp-course-row-thumb {
  width: 52px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.adclp-course-row-thumb--placeholder {
  background: var(--green-light);
}

.adclp-course-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adclp-course-row-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.adclp-course-row-badge--free {
  background: #edf7f1;
  color: var(--green-dark);
}

.adclp-course-row-badge--premium {
  background: #fef9e7;
  color: #92620a;
  border: 1px solid #f5d67a;
}

.adclp-course-row-check {
  font-size: 0.85rem;
  color: #ccc;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.adclp-course-row-check--done {
  color: var(--green);
  font-weight: 700;
}

.adclp-subcat-courses[hidden] {
  display: none !important;
}

.adclp-account-subcats .adclp-subcat-bar-track {
  background: var(--green-light);
}

.adclp-next-recommended-wrap {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.adclp-next-recommended-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
}

.adclp-next-recommended-label--done {
  color: var(--green);
}

.adclp-next-recommended-row {
  border: 1px solid var(--border-light);
  background: #f9f9f9;
}

.adclp-next-recommended-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.adclp-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--brand-border);
  background: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.adclp-dashboard-link:hover {
  background: var(--brand-light);
}
