/* ============================================================
   HASHMICYBERLINKS - v7.5  LOADING + OUTPUT DESIGN
   ------------------------------------------------------------
   • .hcl-loader      — convert hone wali ring + progress
   • .hcl-output      — result card (file ready)
   • .hcl-progress    — slim progress bar
   Purane #jpgConverting / #jpgUploading / .ir-bar ko bhi
   same look milta hai (neeche legacy bridge).
   ============================================================ */

/* ---------- ring loader ---------- */
.hcl-loader{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:44px 20px;
  text-align:center;
}
.hcl-loader-ring{
  position:relative;
  width:74px;
  height:74px;
  flex:0 0 74px;
}
.hcl-loader-ring svg{
  width:100%;
  height:100%;
  transform:rotate(-90deg);
}
.hcl-loader-ring circle{
  fill:none;
  stroke-width:5;
  stroke-linecap:round;
}
.hcl-loader-track{stroke:rgba(255,255,255,.09)}
.hcl-loader-fill{
  stroke:var(--gold, #f5b301);
  stroke-dasharray:201;
  stroke-dashoffset:201;
  transition:stroke-dashoffset .35s ease;
}
.hcl-loader.is-busy .hcl-loader-fill{
  animation:hclSpinFill 1.6s ease-in-out infinite;
}
@keyframes hclSpinFill{
  0%{stroke-dashoffset:201}
  50%{stroke-dashoffset:52}
  100%{stroke-dashoffset:201}
}
.hcl-loader-ic{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  color:var(--gold, #f5b301);
}
.hcl-loader-ic i{
  animation:hclFloat 2.2s ease-in-out infinite;
}
@keyframes hclFloat{
  0%,100%{transform:translateY(0);opacity:.95}
  50%{transform:translateY(-3px);opacity:1}
}
.hcl-loader-title{
  margin:0;
  font-size:17px;
  font-weight:800;
  color:var(--text, #e8edf6);
  letter-spacing:-.2px;
}
.hcl-loader-sub{
  margin:0;
  font-size:13px;
  color:var(--muted, #93a3bd);
  max-width:320px;
  line-height:1.6;
}
.hcl-loader-count{
  font-variant-numeric:tabular-nums;
  font-weight:800;
  color:var(--gold, #f5b301);
}

/* ---------- slim progress ---------- */
.hcl-progress{
  width:100%;
  max-width:340px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  position:relative;
}
.hcl-progress-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--gold, #f5b301), var(--gold2, #ffd34d));
  transition:width .3s ease;
}
.hcl-progress.is-indeterminate .hcl-progress-fill{
  width:40% !important;
  animation:hclSlide 1.25s ease-in-out infinite;
}
@keyframes hclSlide{
  0%{transform:translateX(-105%)}
  100%{transform:translateX(255%)}
}

/* ---------- output / result card ---------- */
.hcl-output{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  max-width:440px;
  margin:0 auto;
  padding:26px 22px;
  text-align:center;
  border:1px solid rgba(74,222,128,.35);
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(74,222,128,.10), transparent 65%),
    rgba(255,255,255,.02);
  animation:hclOutIn .26s ease;
}
@keyframes hclOutIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.hcl-output-badge{
  width:52px;
  height:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,222,128,.16);
  color:#4ade80;
  font-size:22px;
}
.hcl-output-title{
  margin:0;
  font-size:17px;
  font-weight:800;
  color:var(--text, #e8edf6);
}
.hcl-output-file{
  margin:0;
  font-size:13px;
  color:var(--muted, #93a3bd);
  font-weight:600;
  word-break:break-word;
}
.hcl-output-meta{
  margin:0;
  font-size:12px;
  color:var(--muted, #93a3bd);
}
.hcl-output-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  max-width:280px;
  padding:13px 20px;
  border-radius:11px;
  border:1px solid var(--gold, #f5b301);
  background:var(--gold, #f5b301);
  color:#0b1120;
  font-size:14.5px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.hcl-output-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(245,179,1,.30);
  color:#0b1120;
}
.hcl-output-btn.is-ghost{
  background:transparent;
  color:var(--gold, #f5b301);
  box-shadow:none;
}
.hcl-output-btn.is-ghost:hover{
  background:rgba(245,179,1,.09);
  box-shadow:none;
}

/* ============================================================
   LEGACY BRIDGE — purane markers ko naya look
   ============================================================ */

/* jpg-to-pdf: converting spinner */
#jpgConverting{
  text-align:center !important;
  padding:52px 20px !important;
}
#jpgConverting h2{
  font-size:18px !important;
  font-weight:800 !important;
  margin:20px 0 0 !important;
}
#jpgConverting .spinner,
#jpgConverting .fa-spinner,
#jpgConverting i.fa-solid{
  color:var(--gold, #f5b301) !important;
}

/* jpg-to-pdf: uploading state */
#jpgUploading{
  text-align:center !important;
  padding:52px 20px !important;
}
#jpgUploading h2{
  font-size:18px !important;
  font-weight:800 !important;
  margin:20px 0 8px !important;
}

/* image resizer progress bar */
.ir-bar{
  height:9px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.08) !important;
  overflow:hidden !important;
  position:relative !important;
}
.ir-bar-fill{
  height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg, var(--gold, #f5b301), var(--gold2, #ffd34d)) !important;
  transition:width .3s ease !important;
}
.ir-bar-text{
  font-size:11px !important;
  font-weight:800 !important;
  color:var(--muted, #93a3bd) !important;
}

/* JPG-to-PDF thumbnail file actions */
.jpg-order-controls button.jpg-replace{
  color:var(--gold, #f5b301) !important;
  border-color:rgba(245,179,1,.45) !important;
  font-weight:800;
}
.jpg-order-controls button.jpg-replace:hover{
  background:rgba(245,179,1,.12) !important;
}
.jpg-order-controls button.jpg-remove{
  color:#ffd7d7;
  border-color:rgba(229,72,77,.55);
}

/* ---------- mobile ---------- */
@media(max-width:600px){
  .hcl-loader{padding:34px 16px;gap:13px}
  .hcl-loader-ring{width:62px;height:62px;flex-basis:62px}
  .hcl-loader-title{font-size:15.5px}
  .hcl-loader-sub{font-size:12.5px}
  .hcl-output{padding:22px 16px;max-width:100%}
  .hcl-output-btn{padding:12px 16px;font-size:13.5px;max-width:100%}
}

@media(prefers-reduced-motion:reduce){
  .hcl-loader.is-busy .hcl-loader-fill,
  .hcl-loader-ic i,
  .hcl-progress.is-indeterminate .hcl-progress-fill{animation:none}
}
