#rcTool{
  --rc-green: #16a34a;
  --rc-red: #ef4444;
  --rc-amber: #f59e0b;
  --rc-blue: var(--blue-100);
  --rc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#rcTool.tool-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(10, 5, 35, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#rcTool [hidden]{ display:none !important; }
#rcTool *,
#rcTool *::before,
#rcTool *::after{ box-sizing:border-box; }

#rcTool label{
  display:block;
  font-weight: 700;
  color: var(--berry-black-60);
  margin: 0 0 8px;
}

#rcTool input[type="text"]{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  line-height: 1.45;
  color: var(--berry-black-60);
}

#rcTool input[type="text"]:focus{
  border-color: rgba(0, 106, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

#rcTool .grid{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: end;
}

@media (max-width: 860px){
  #rcTool .grid{ grid-template-columns: 1fr; }
}

#rcTool .actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap: wrap;
  align-self: end;
}

@media (max-width: 860px){
  #rcTool .actions{ justify-content:flex-start; }
}

@media (max-width: 480px){
  #rcTool .actions{ width: 100%; gap: 8px; }
  #rcTool .tool-btn,
  #rcTool .btn-ghost{
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }
  #rcTool .tool-btn,
  #rcTool .btn-ghost{ flex: 1 1 0; }

  #rcTool .tool-btn .icon{
    width: 16px;
    height: 16px;
  }
  #rcTool .tool-btn .icon svg{ width: 16px; height: 16px; }
}

#rcTool .tool-btn{
  width: auto;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  gap: 10px;
  white-space: nowrap;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00)), var(--turquoise-specialdark);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#rcTool .tool-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18);
}

#rcTool .tool-btn:active{ transform: translateY(0); filter: brightness(0.94) saturate(1.05); }

#rcTool .tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 184, 222, 0.20), 0 20px 38px rgba(10, 5, 35, 0.18);
}

#rcTool .tool-btn .icon{ width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
#rcTool .tool-btn .icon svg{ display:block; }

#rcTool .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#rcTool .btn-ghost{
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00)), var(--salmon);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#rcTool .btn-ghost:hover{ transform: translateY(-1px); filter: brightness(0.96) saturate(1.05); box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18); }
#rcTool .btn-ghost:active{ transform: translateY(0); filter: brightness(0.94) saturate(1.05); }
#rcTool .btn-ghost:focus-visible{ outline: none; box-shadow: 0 0 0 4px rgba(255, 128, 114, 0.24), 0 20px 38px rgba(10, 5, 35, 0.18); }

#rcTool select{
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: var(--berry-black-60);
}

#rcTool .tool-meta{
  margin-top: 10px;
  color: var(--berry-black-60-opacity60);
  font-size: 12px;
}

#rcTool .status{
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: rgba(255,255,255,0.88);
  color: var(--berry-black-60);
}

#rcTool .status.is-error{ border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); }
#rcTool .status.is-ok{ border-color: rgba(22,163,74,0.25); background: rgba(22,163,74,0.06); }

#rcTool .progress{
  margin-top: 14px;
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
}

#rcTool .progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
  margin-bottom: 8px;
}

#rcTool .bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 5, 35, 0.08);
  overflow: hidden;
}

#rcTool #progressBar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--turquoise-specialdark), var(--blue-100));
  transition: width 0.25s ease;
}

#rcTool .results{ margin-top: 16px; }

#rcTool .results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

#rcTool .results-title{ font-weight: 700; font-size: 18px; color: var(--berry-black-60); }
#rcTool .results-sub{ font-size: 12px; color: var(--berry-black-60-opacity60); }

#rcTool .chain{ display:flex; flex-direction:column; gap: 0; }

/* ── Individual hop card ── */
#rcTool .hop{
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 14px;
  background: rgba(255,255,255,0.90);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#rcTool .hop:hover{
  border-color: rgba(0,106,255,0.30);
  box-shadow: 0 4px 14px rgba(10,5,35,0.08);
}

#rcTool .hop.hop-selected{
  border-color: rgba(0,106,255,0.55);
  box-shadow: 0 0 0 3px rgba(0,106,255,0.12);
}

#rcTool .hop.hop-last.hop-selected{
  border-color: rgba(22,163,74,0.55);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

#rcTool .hop-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px 8px;
}

#rcTool .hop-left{ display:flex; align-items:center; gap: 10px; min-width: 0; flex-wrap: wrap; }

#rcTool .hop-num{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
  flex: 0 0 auto;
  min-width: 44px;
}

#rcTool .pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: rgba(10,5,35,0.04);
  color: var(--berry-black-60);
  flex: 0 0 auto;
}

#rcTool .pill.ok{ background: rgba(22,163,74,0.10); border-color: rgba(22,163,74,0.25); color: var(--rc-green); }
#rcTool .pill.warn{ background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.30); color: var(--rc-amber); }
#rcTool .pill.bad{ background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.28); color: var(--rc-red); }

#rcTool .hop-url{
  font-family: var(--rc-mono);
  font-size: 12px;
  color: var(--berry-black-60);
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 0 14px 10px;
}

#rcTool .hop-meta{
  padding: 0 14px 12px;
  color: var(--berry-black-60-opacity60);
  font-size: 12px;
}

#rcTool .note{
  display:inline-block;
  margin-right: 10px;
  font-weight: 700;
}

/* ── Arrow connector between hops ── */
#rcTool .chain-arrow{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  color: var(--berry-black-60-opacity60);
  flex-shrink: 0;
}

#rcTool .chain-arrow svg{
  width: 20px;
  height: 36px;
  display: block;
}

/* ── Problems section ── */
#rcTool .rc-problems{
  margin-top: 16px;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 14px;
  background: rgba(245,158,11,0.07);
  padding: 14px 16px;
}

#rcTool .rc-problems-title{
  font-weight: 700;
  font-size: 15px;
  color: var(--rc-amber);
  margin-bottom: 8px;
}

#rcTool .rc-problems ul{
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

#rcTool .rc-problems li{
  font-size: 13px;
  color: var(--berry-black-60);
  line-height: 1.55;
  margin-bottom: 4px;
}

/* ── HTTP Headers section ── */
#rcTool .rc-headers-section{
  margin-top: 16px;
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 14px;
  overflow: hidden;
}

#rcTool .rc-headers-title{
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--berry-black-60);
  background: rgba(255,255,255,0.90);
  border-bottom: 1px dashed var(--berry-black-60-opacity10);
}

#rcTool .rc-headers-hop-label{
  font-weight: 400;
  font-size: 12px;
  opacity: .65;
}

#rcTool .rc-headers-pre{
  margin: 0;
  padding: 14px 16px;
  font-family: var(--rc-mono);
  font-size: 12px;
  line-height: 1.6;
  background: #0b1020;
  color: #a8ff60;
  overflow: auto;
  max-height: 360px;
  white-space: pre;
}

/* --- Content + FAQ (match SERP Preview Tool styling) --- */
#rcContent.content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#rcContent h2{
  margin: 0 0 12px 0;
  color: black;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

#rcContent h3{
  margin: 18px 0 8px;
  color: black;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

#rcContent p{
  margin: 0 0 12px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

#rcContent ol,
#rcContent ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: black;
  line-height: 1.55;
}

#rcContent ul{ list-style: disc; }
#rcContent ol{ list-style: decimal; }

#rcContent li{
  margin: 0 0 8px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

/* FAQ styles (accordion, matching SERP Preview Tool) */
#rcContent .serp-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

#rcContent .serp-faq.first-faq-block .accordian-wrapper {
  background: linear-gradient(138deg, #fff0 0%, #fff0 100%);
  padding: .15rem;
  border-radius: 15px;
  position: relative;
}

#rcContent .serp-faq.first-faq-block .faq-boxes {
  background-color: #fff;
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 15px;
  border: 2px solid #a200ff38;
}

#rcContent .serp-faq.first-faq-block .faq-boxes.active {
  background-color: #FBF4FF;
  border: 2px solid #A200FF;
}

#rcContent .serp-faq .accordion-body {
  padding: 0 15px 18px 22px;
  font-size: 20px;
  font-weight: 400;
  color: #000;
}

#rcContent .serp-faq .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 15px 18px 22px;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff0;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
  cursor: pointer;
}

#rcContent .serp-faq .accordion-button h3 {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.3;
  color: #000;
}

#rcContent .serp-faq.first-faq-block .get-started-faq-inner .accordion .accordion-item .accordion-button:not(.collapsed)::before {
  border: 6px solid #c3dae7;
  background-color: #0582d2;
  top: 28%;
}

#rcContent .serp-faq .accordion-button:not(.collapsed) {
  color: #212529;
  background-color: #fff0;
  transition: 0.2s ease-in all;
  padding-bottom: 12px;
  border: 0;
  box-shadow: none;
}

#rcContent .serp-faq .accordion-button:focus {
  z-index: 3;
  border-color: #cecbdc;
  outline: 0;
  box-shadow: 0 0 0 .25rem #fff0;
}

#rcContent .serp-faq.first-faq-block .accordion-item {
  background-color: #fff0;
  border: 0 solid rgb(0 0 0 / .125);
  margin-bottom: 20px;
}

#rcContent .serp-faq.first-faq-block .accordion-body p {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  margin-bottom: 0;
  padding-right: 11%;
  line-height: 26px;
}

#rcContent .serp-faq.first-faq-block .accordion-body p a {
  color: #4A2574;
  font-size: 18px;
  line-height: 32px;
  text-decoration: none;
  font-weight: 400;
}

#rcContent .serp-faq.first-faq-block .accordion-button:not(.collapsed)::after {
  content: "–";
  transform: none;
}

#rcContent .serp-faq.first-faq-block .accordion-button::after {
  margin-left: auto;
  content: "+";
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  align-self: center;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #4A2574;
}

/* Collapse behavior (we implement via JS; keep same class names) */
#rcContent .serp-faq .accordion-collapse{ display: none; }
#rcContent .serp-faq .accordion-collapse.show{ display: block; }

@media (max-width: 480px){
  #rcContent .serp-faq.first-faq-block .faq-boxes{ padding-right: 18px; }
}
        /* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }