/* =========================
   BattleLock – Modal + Tabs
   (copy & paste ready)
   ========================= */

/* ---- SCOPED modal styles ---- */
.bl-modal{ --bs-modal-width: 830px; }

.bl-modal .modal-dialog{
  width:auto;
  max-width:var(--bs-modal-width);
  margin:1.75rem auto;
}

.bl-modal .modal-content{
  background:#0b0b0bba;
  color:#fff;
  border:0;
  box-shadow:0 1rem 3rem rgba(0,0,0,.6);
  width:785px; /* inner content width for your design */
}

.bl-modal .modal-header{
  border-bottom:1px solid #242424;
}

/* ---- Glass look container ---- */
.bl-modal .bl-glass{
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.83), rgba(12, 14, 20, 0.86));
  border: 1px solid rgba(138, 43, 226, 0.51);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.10) inset,
    0 20px 60px rgba(0,0,0,.6),
    0 0 50px rgba(138,43,226,.12);
  border-radius: 14px;
  overflow: hidden;
}

.bl-header{
  position: relative;
  border-bottom: 1px solid rgba(138,43,226,.25);
  background:
    radial-gradient(1000px 200px at -20% -20%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(800px 200px at 120% -40%, rgba(138,43,226,.10), transparent 60%);
}

/* =========================
   TABS (image buttons)
   – Freeze layout so hover/active never “jumps”
   ========================= */
.bl-tabs.nav-tabs{
  border-bottom:0 !important;            /* kill Bootstrap bottom rule */
  justify-content:center;
  gap:.75rem;
}

.bl-tabs .nav-item{
  margin-bottom:0 !important;
}

.bl-tabs .nav-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.35rem;
  padding:0 !important;
  margin:0 !important;
  line-height:1;
  background:transparent !important;
  border:1px solid transparent !important; /* constant border to avoid reflow */
  box-shadow:none !important;
  outline:0;
}

.bl-tabs .nav-link:hover,
.bl-tabs .nav-link:focus,
.bl-tabs .nav-link:active,
.bl-tabs .nav-link.active{
  border-color:transparent !important;
  box-shadow:none !important;
  outline:0;
}

.bl-tab-img{
  display:block;
  width:240px;
  height:128px;
  object-fit:cover;
  border-radius:.5rem;
  border:2px solid rgba(255,255,255,.25);
  transition:
    box-shadow .15s ease,
    border-color .15s ease,
    transform .15s ease;
  -webkit-user-drag: none;
  user-select: none;
}

/* Keep layout still: remove physical move, use shadow for “lift” */
.bl-tabs .nav-link:hover .bl-tab-img{
  transform:none; /* was translateY(-1px) */
  box-shadow:0 8px 30px rgba(0,0,0,.35);
}

/* Active/focus ring without size change */
.bl-tabs .nav-link.active .bl-tab-img,
.bl-tabs .nav-link:focus .bl-tab-img{
  border-color:#6f42c1;
  box-shadow:0 0 0 .25rem rgba(111,66,193,.25);
}

.bl-tabs .nav-link > span{
  display:block; /* avoid inline baseline shifts */
}

/* =========================
   Cards & Credentials
   ========================= */
.bl-card{
  border:0px solid rgba(255,255,255,.08);
  max-width:720px;
  margin:0 auto;
}

.bl-card-head{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom:.75rem;
}

.bl-card h4{
  font-weight:700;
  letter-spacing:.3px;
}

/* Credential rows */
.bl-cred-list{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}

.bl-cred-row{
  display:grid;
  grid-template-columns: 120px 1fr auto;
  align-items:center;
  gap:.75rem;
  padding:.5rem .5rem;
  border-radius:10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.bl-cred-label{
  color:#fff;
}

/* Copy button */
.bl-copy{
  border-color: rgba(255,255,255,.18) !important;
  color:#e5e9f2;
  background: rgba(255,255,255,.03);
}
.bl-copy:hover{
  color:#fff;
  background: rgba(255,255,255,.08);
}
.bl-copy:focus-visible{
  outline:2px solid rgba(111,66,193,.7);
  box-shadow:0 0 0 .2rem rgba(111,66,193,.25);
}

/* =========================
   Inline copy feedback (next to button)
   ========================= */
.bl-copy-box{
  display:inline-grid;
  grid-auto-flow:column;
  grid-auto-columns:max-content;
  align-items:center;
  gap:.5rem;              /* space between tip and button */
}
.bl-copy-tip-inline{
  font-size:.8rem;
  line-height:1;
  color:#cccccc;         /* success green */
  white-space:nowrap;
  opacity:0;
  transform:translateY(2px);
  transition:opacity .15s ease, transform .15s ease;
  pointer-events:none;   /* never blocks clicks */
}
.bl-copy-tip-inline.show{
  opacity:1;
  transform:translateY(0);
}
.bl-copy-tip-inline.fail{
  color:#ff9aa2;         /* error red */
}

/* Footer (if used) */
.bl-footer{
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

/* =========================
   Small helpers
   ========================= */
.bl-modal{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Transparent, clickable backdrop
   (requires JS to add 'bl-backdrop' to the backdrop element for THIS modal)
   ========================= */
.modal-backdrop.bl-backdrop{
  background-color: transparent !important;
  opacity: 0 !important;                 /* keep backdrop present to capture outside-click */
}
.modal-backdrop.fade.bl-backdrop{
  transition: none !important;           /* prevent brief fade flash */
}
.modal-backdrop.show.bl-backdrop{
  opacity: 0 !important;                 /* ensure it stays invisible when shown */
}



/* Make copy icons follow the button text color */
.bl-modal .bl-copy {
  color: #e5e9f2;                       /* default icon/text color */
}

.bl-modal .bl-copy:hover {
  color: #ffffff;                       /* hover color for icon/text */
}

/* Ensure SVG uses currentColor */
.bl-modal .bl-copy svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Cover all shapes inside the SVG */
.bl-modal .bl-copy svg path,
.bl-modal .bl-copy svg rect,
.bl-modal .bl-copy svg circle,
.bl-modal .bl-copy svg polygon,
.bl-modal .bl-copy svg line {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* (Optional) status tints from your JS */
.bl-modal .bl-copy.bl-copied       { color: #19b36b; }  /* success */
.bl-modal .bl-copy.bl-copy-failed  { color: #ff6b6b; }  /* error   */
