/* Authoritative, cache-busted rule for How To Buy/Use/Deposit actions only.
   The Refer & Earn HOW IT WORKS panel (.rhow) intentionally keeps its original theme border. */
html body :is(
  a.how-use-top,
  a.howbar,
  a.btn-how-to-use,
  a.dp-how,
  a.bn-how,
  a.how-to-use,
  a.how-to-use-btn,
  a.how-to-use-card,
  a.how-to-buy-card,
  a.how-to-card,
  a.how-to-deposit-card,
  a.how-to-deposit-btn,
  a.tutorial-card,
  .how-use-top,
  .howbar,
  .btn-how-to-use,
  .dp-how,
  .bn-how,
  .how-to-use,
  .how-to-use-btn,
  .how-to-use-card,
  .how-to-buy-card,
  .how-to-card,
  .how-to-deposit-card,
  .how-to-deposit-btn,
  .tutorial-card
) {
  border: 1px solid #ef4444 !important;
  border-color: #ef4444 !important;
  outline: 1px solid rgba(239,68,68,.10) !important;
  outline-offset: 0 !important;
}

html body :is(
  a.how-use-top,a.howbar,a.btn-how-to-use,a.dp-how,a.bn-how,
  a.how-to-use,a.how-to-use-btn,a.how-to-use-card,a.how-to-buy-card,
  a.how-to-card,a.how-to-deposit-card,a.how-to-deposit-btn,a.tutorial-card,
  .how-use-top,.howbar,.btn-how-to-use,.dp-how,.bn-how,
  .how-to-use,.how-to-use-btn,.how-to-use-card,.how-to-buy-card,
  .how-to-card,.how-to-deposit-card,.how-to-deposit-btn,.tutorial-card
):hover,
html body :is(
  a.how-use-top,a.howbar,a.btn-how-to-use,a.dp-how,a.bn-how,
  a.how-to-use,a.how-to-use-btn,a.how-to-use-card,a.how-to-buy-card,
  a.how-to-card,a.how-to-deposit-card,a.how-to-deposit-btn,a.tutorial-card,
  .how-use-top,.howbar,.btn-how-to-use,.dp-how,.bn-how,
  .how-to-use,.how-to-use-btn,.how-to-use-card,.how-to-buy-card,
  .how-to-card,.how-to-deposit-card,.how-to-deposit-btn,.tutorial-card
):focus-visible {
  border-color: #ff6673 !important;
  outline-color: rgba(255,102,115,.25) !important;
}

/* Preserve readable text while using the YouTube-red border identity. */
html body :is(a.how-use-top,a.howbar,a.btn-how-to-use,a.dp-how,a.bn-how,
  a.how-to-use,a.how-to-use-btn,a.how-to-use-card,a.how-to-buy-card,
  a.how-to-card,a.how-to-deposit-card,a.how-to-deposit-btn,a.tutorial-card) {
  color: #f3f4f6 !important;
}
html body :is(a.how-use-top,a.howbar,a.btn-how-to-use,a.dp-how,a.bn-how,
  a.how-to-use,a.how-to-use-btn,a.how-to-use-card,a.how-to-buy-card,
  a.how-to-card,a.how-to-deposit-card,a.how-to-deposit-btn,a.tutorial-card) > i {
  color: #f04452 !important;
  -webkit-text-fill-color: #f04452 !important;
}
@media (prefers-reduced-motion: reduce) {
  html body :is(a.how-use-top,a.howbar,a.btn-how-to-use,a.dp-how,a.bn-how,
    a.how-to-use,a.how-to-use-btn,a.how-to-use-card,a.how-to-buy-card,
    a.how-to-card,a.how-to-deposit-card,a.how-to-deposit-btn,a.tutorial-card) {
    animation: none !important;
  }
}


/* Final high-specificity overrides for the exact rendered How-To controls on auth,
   dashboard, deposit and admin-facing pages. Keep the rest of each layout untouched. */
html body .topbar.dtop a.dep-btn.how-use-top,
html body .dstack a.nc.howbar,
html body .auth-container a.btn-how-to-use,
html body .dp-card a.dp-how,
html body .bn-card a.bn-how,
html body a.how-use-top,
html body a.howbar,
html body a.btn-how-to-use,
html body a.dp-how,
html body a.bn-how,
html body a.how-to-use,
html body a.how-to-use-btn,
html body a.how-to-use-card,
html body a.how-to-buy-card,
html body a.how-to-card,
html body a.how-to-deposit-card,
html body a.how-to-deposit-btn,
html body a.tutorial-card {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #ef4444 !important;
  outline: 1px solid rgba(239,68,68,.14) !important;
  outline-offset: 0 !important;
}

html body .topbar.dtop a.dep-btn.how-use-top:hover,
html body .dstack a.nc.howbar:hover,
html body .auth-container a.btn-how-to-use:hover,
html body .dp-card a.dp-how:hover,
html body .bn-card a.bn-how:hover,
html body a.how-use-top:hover,
html body a.howbar:hover,
html body a.btn-how-to-use:hover,
html body a.dp-how:hover,
html body a.bn-how:hover,
html body a.how-to-use-btn:hover,
html body a.how-to-buy-card:hover,
html body a.how-to-deposit-card:hover {
  border-color: #ff6673 !important;
}


/* Final stable CTA treatment: exact How-To links use a clearly red border on all pages.
   Keep Refer & Earn's .rhow HOW IT WORKS card on its original theme border. */
html body .topbar.dtop a.dep-btn.how-use-top,
html body .dstack a.nc.howbar,
html body .auth-container a.btn-how-to-use,
html body .dp-card a.dp-how,
html body .bn-card a.bn-how,
html body a.how-use-top,
html body a.howbar,
html body a.btn-how-to-use,
html body a.dp-how,
html body a.bn-how {
  border: 1px solid #f04452 !important;
  border-style: solid !important;
  border-color: #f04452 !important;
  outline: 1px solid rgba(240, 68, 82, .18) !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 1px rgba(240, 68, 82, .16), 0 0 7px rgba(240, 68, 82, .13) !important;
  animation: none !important;
}

/* Stable icon/text alignment for deposit tutorials (UPI and Binance). */
html body .dp-card a.dp-how,
html body .bn-card a.bn-how {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
html body .dp-card a.dp-how > i,
html body .bn-card a.bn-how > i {
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #f04452 !important;
  -webkit-text-fill-color: #f04452 !important;
}
html body .dp-card a.dp-how > span,
html body .bn-card a.bn-how > span {
  display: inline-block !important;
  margin: 0 !important;
}
html body .topbar.dtop a.dep-btn.how-use-top:hover,
html body .dstack a.nc.howbar:hover,
html body .auth-container a.btn-how-to-use:hover,
html body .dp-card a.dp-how:hover,
html body .bn-card a.bn-how:hover,
html body a.how-use-top:hover,
html body a.howbar:hover,
html body a.btn-how-to-use:hover,
html body a.dp-how:hover,
html body a.bn-how:hover {
  border-color: #ff3549 !important;
  box-shadow: 0 0 0 1px rgba(255, 53, 73, .24), 0 0 9px rgba(240, 68, 82, .19) !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .topbar.dtop a.dep-btn.how-use-top,
  html body .dstack a.nc.howbar,
  html body .auth-container a.btn-how-to-use,
  html body .dp-card a.dp-how,
  html body .bn-card a.bn-how,
  html body a.how-use-top,
  html body a.howbar,
  html body a.btn-how-to-use,
  html body a.dp-how,
  html body a.bn-how { animation: none !important; }
}
