.callback-guide-enhanced {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.callback-guide-enhanced .callback-guide-lede {
  max-width: 860px;
  margin: 0;
  color: #c8baa8;
  font-size: 18px;
  line-height: 1.7;
}

/* ── section cards ── */

.callback-guide-section {
  padding: 24px;
  border: 1px solid rgba(201, 125, 24, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 125, 24, 0.09), transparent 20rem),
    linear-gradient(180deg, rgba(20, 14, 8, 0.96), rgba(10, 7, 4, 0.98));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.callback-guide-section::before,
.callback-guide-section::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
  border-color: rgba(201, 125, 24, 0.28);
}

.callback-guide-section::before {
  top: 11px; left: 11px;
  border-top: 1px solid; border-left: 1px solid;
}

.callback-guide-section::after {
  bottom: 11px; right: 11px;
  border-bottom: 1px solid; border-right: 1px solid;
}

.callback-guide-section .section-heading {
  margin-bottom: 16px;
}

.callback-guide-section h2 {
  margin: 0 0 10px;
  color: #f5e8c4;
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 22px rgba(201,125,24,0.1);
}

.callback-guide-section h3 {
  margin: 0 0 8px;
  color: #e8d4a0;
}

.callback-guide-section p,
.callback-guide-section li {
  color: #c8baa8;
  line-height: 1.68;
}

/* ── brand assets ── */

.brand-asset-grid,
.snippet-grid,
.setup-steps {
  display: grid;
  gap: 16px;
}

.brand-asset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-asset-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(201, 125, 24, 0.2);
  border-radius: 14px;
  background: rgba(10, 7, 3, 0.62);
}

.brand-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(201, 125, 24, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 13, 6, 0.72), rgba(8, 5, 2, 0.78));
}

.brand-preview-icon img {
  width: min(128px, 56vw);
  height: auto;
}

.brand-preview-wordmark img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 108px;
  height: auto;
  object-fit: contain;
}

.asset-actions,
.help-section .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-actions a,
.asset-actions .button,
.help-section .button {
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 125, 24, 0.62);
  border-radius: 9px;
  background: rgba(10, 7, 2, 0.84);
  color: #d4a840;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px rgba(255,210,80,0.07), 0 0 14px rgba(201,125,24,0.16);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.asset-actions a:hover,
.asset-actions .button:hover,
.help-section .button:hover {
  border-color: rgba(232, 150, 18, 0.9);
  color: #f5c84a;
  background: rgba(18, 12, 3, 0.92);
  box-shadow: inset 0 1px rgba(255,220,100,0.1), 0 0 24px rgba(201,125,24,0.38);
}

.asset-actions .button.ghost,
.help-section .button.ghost {
  border-color: rgba(201, 125, 24, 0.28);
  background: rgba(8, 5, 2, 0.6);
  color: #8a7d6e;
}

.asset-actions .button.ghost:hover,
.help-section .button.ghost:hover {
  border-color: rgba(201, 125, 24, 0.52);
  color: #c8a454;
}

/* ── owner snippets ── */

.owner-snippets {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 125, 24, 0.16);
}

.snippet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snippet-helper {
  max-width: 920px;
  margin: 8px 0 16px;
}

.snippet-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(201, 125, 24, 0.18);
  border-radius: 12px;
  background: rgba(8, 5, 2, 0.54);
}

.snippet-card strong {
  display: block;
  color: #e8d4a0;
}

.snippet-card p {
  margin: 8px 0 0;
  font-size: 14px;
}

.callback-guide-enhanced .snippet-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snippet-note {
  margin: 14px 0 0;
  color: #2ab5b5;
}

/* ── setup steps ── */

.setup-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-steps div,
.callback-card-grid > div {
  padding: 16px;
  border: 1px solid rgba(42, 181, 181, 0.16);
  border-radius: 12px;
  background: rgba(8, 5, 2, 0.58);
}

.setup-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 125, 24, 0.44);
  background: rgba(201, 125, 24, 0.12);
  color: #e8c060;
  font-weight: 950;
  box-shadow: 0 0 14px rgba(201, 125, 24, 0.2);
}

.setup-steps strong,
.callback-card-grid strong {
  display: block;
  color: #f5e8c4;
}

.setup-steps p {
  margin: 8px 0 0;
  font-size: 14px;
}

/* ── code blocks ── */

.callback-guide-enhanced .code-block {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(42, 181, 181, 0.2);
  border-radius: 12px;
  background: rgba(3, 5, 10, 0.88);
  color: #d0e8e8;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}

.callback-guide-enhanced .code-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ── special section variants ── */

.php-sample-section {
  border-color: rgba(201, 125, 24, 0.3);
}

.warning-section {
  border-color: rgba(232, 146, 10, 0.36);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 146, 10, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(20, 13, 4, 0.97), rgba(10, 7, 3, 0.98));
}

.warning-section h2 {
  color: #f5c84a;
}

.mistake-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.mistake-list li::marker {
  color: rgba(232, 146, 10, 0.7);
}

/* ── help / CTA section ── */

.help-section {
  display: grid;
  gap: 10px;
}

/* ── section type icons (visual rhythm down the page) ── */

.callback-guide-section[data-guide-icon] .section-heading {
  position: relative;
  padding-left: 46px;
  min-height: 34px;
}

.callback-guide-section[data-guide-icon] .section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(201, 125, 24, 0.4);
  background: rgba(201, 125, 24, 0.1) center / 18px 18px no-repeat;
  box-shadow: 0 0 14px rgba(201, 125, 24, 0.16);
}

/* Inline SVG icons via data-uri, tinted gold. */
.callback-guide-section[data-guide-icon="steps"] .section-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4' cy='6' r='1.6'/%3E%3Ccircle cx='4' cy='12' r='1.6'/%3E%3Ccircle cx='4' cy='18' r='1.6'/%3E%3C/svg%3E");
}
.callback-guide-section[data-guide-icon="fields"] .section-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='5' rx='1.5'/%3E%3C/svg%3E");
}
.callback-guide-section[data-guide-icon="code"] .section-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E");
}
.callback-guide-section[data-guide-icon="check"] .section-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ce6a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
  border-color: rgba(87, 214, 141, 0.4);
  background-color: rgba(87, 214, 141, 0.1);
  box-shadow: 0 0 14px rgba(87, 214, 141, 0.16);
}
.callback-guide-section[data-guide-icon="warning"] .section-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c84a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3z'/%3E%3Cpath d='M12 10v4M12 17v.5'/%3E%3C/svg%3E");
  border-color: rgba(232, 146, 10, 0.45);
  background-color: rgba(232, 146, 10, 0.12);
}
.callback-guide-section[data-guide-icon="help"] .section-heading::before {
  /* help section has no .section-heading; icon sits on the h2 instead */
  display: none;
}

/* ── step connectors + numbered flow ── */

.setup-steps-flow {
  position: relative;
}

.setup-steps-flow > div {
  position: relative;
}

/* Arrow between steps (desktop: horizontal row of 4). */
@media (min-width: 901px) {
  .setup-steps-flow > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -12px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 2px solid rgba(201, 125, 24, 0.55);
    border-right: 2px solid rgba(201, 125, 24, 0.55);
    pointer-events: none;
  }
}

/* Stacked (mobile): arrow points down between steps. */
@media (max-width: 900px) {
  .setup-steps-flow > div:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(135deg);
    border-top: 2px solid rgba(201, 125, 24, 0.55);
    border-right: 2px solid rgba(201, 125, 24, 0.55);
    pointer-events: none;
  }
}

/* ── ✓ / ✗ list markers ── */

/* Verification checklist: green check on each card. */
.check-grid > div {
  position: relative;
  padding-left: 44px;
  border-color: rgba(87, 214, 141, 0.22);
}

.check-grid > div::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ce6a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Common mistakes: red ✗ marker, replacing the plain bullet. */
.mistake-list-x {
  list-style: none;
  padding-left: 0;
}

.mistake-list-x li {
  position: relative;
  padding-left: 30px;
}

.mistake-list-x li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8da6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── code block labels ── */

.callback-guide-enhanced .code-block[data-code-label] {
  position: relative;
  padding-top: 38px;
}

.callback-guide-enhanced .code-block[data-code-label]::before {
  content: attr(data-code-label);
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(42, 181, 181, 0.2);
  border-right: 1px solid rgba(42, 181, 181, 0.2);
  border-radius: 12px 0 10px 0;
  background: rgba(42, 181, 181, 0.1);
  color: #7fd8d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── responsive ── */

@media (max-width: 900px) {
  .brand-asset-grid,
  .snippet-grid,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .callback-guide-section {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .callback-guide-enhanced .callback-guide-lede {
    font-size: 16px;
  }

  .asset-actions,
  .help-section .actions {
    display: grid;
  }

  .asset-actions .button,
  .help-section .button {
    width: 100%;
  }

  .callback-guide-enhanced .code-block {
    font-size: 13px;
  }
}
