
/* NUJIZ MERGE PREMIUM V1 */

body[data-audio-tool="merge"] .audio-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: #222a39;
  border: 1px solid #39445a;
}

body[data-audio-tool="merge"] .audio-file.is-playing {
  border-color: #a46bf3;
  background: #29243d;
}

body[data-audio-tool="merge"] .audio-file-preview {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-audio-tool="merge"] .audio-file-name {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-audio-tool="merge"] .audio-file-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}

body[data-audio-tool="merge"] .merge-file-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
}

body[data-audio-tool="merge"] .merge-file-meta b {
  color: #f8fafc;
}

body[data-audio-tool="merge"] .merge-order-buttons {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body[data-audio-tool="merge"] .merge-order-btn {
  min-width: 29px;
  min-height: 26px;
  padding: 2px 6px;
  border: 1px solid #53617a;
  border-radius: 7px;
  background: #343e53;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

body[data-audio-tool="merge"] .merge-order-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

body[data-audio-tool="merge"] .merge-order-btn:not(:disabled):hover {
  background: #7552c9;
}

body[data-audio-tool="merge"] #mergePremiumSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0;
}

body[data-audio-tool="merge"] #mergePremiumSummary[hidden] {
  display: none !important;
}

body[data-audio-tool="merge"] #mergePremiumSummary > div {
  background: #202838;
  border: 1px solid #39445a;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-audio-tool="merge"] #mergePremiumSummary span {
  color: #bfcbe0;
  font-size: 12px;
}

body[data-audio-tool="merge"] #mergePremiumSummary strong {
  color: #fff;
  font-size: 16px;
}

@media(max-width:600px) {
  body[data-audio-tool="merge"] .audio-file {
    flex-wrap: wrap;
  }

  body[data-audio-tool="merge"] .audio-file-preview {
    flex-basis: 100%;
  }

  body[data-audio-tool="merge"] .audio-file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  body[data-audio-tool="merge"] .merge-order-buttons {
    flex-direction: row;
  }
}

/* NUJIZ MERGE CONTRAST FIX V2 */

body[data-audio-tool="merge"] .merge-order-btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #3b4760 !important;
  border: 1px solid #71809c !important;
  opacity: 1 !important;
  font-family: Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  width: 38px !important;
  height: 34px !important;
  min-width: 38px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

body[data-audio-tool="merge"] .merge-order-btn:disabled {
  opacity: .48 !important;
  color: #d5deef !important;
  -webkit-text-fill-color: #d5deef !important;
  background: #30394c !important;
  cursor: not-allowed;
}

body[data-audio-tool="merge"] .merge-order-btn:not(:disabled):hover {
  background: #7552c9 !important;
  border-color: #b99bff !important;
}

body[data-audio-tool="merge"] .merge-file-meta,
body[data-audio-tool="merge"] .merge-file-meta span,
body[data-audio-tool="merge"] .merge-file-meta b {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

body[data-audio-tool="merge"] #mergePremiumSummary > div {
  background: #263247 !important;
  border: 1px solid #52627c !important;
}

body[data-audio-tool="merge"] #mergePremiumSummary span {
  color: #e4ebf8 !important;
  -webkit-text-fill-color: #e4ebf8 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body[data-audio-tool="merge"] #mergePremiumSummary strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

body[data-audio-tool="merge"] .audio-file-name {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body[data-audio-tool="merge"] .audio-file-remove {
  color: #ffb8c4 !important;
  -webkit-text-fill-color: #ffb8c4 !important;
  font-size: 21px !important;
}

body[data-audio-tool="merge"] .audio-file-play-icon {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 18px !important;
}

@media (max-width: 600px) {
  body[data-audio-tool="merge"] .merge-order-btn {
    width: 42px !important;
    height: 38px !important;
  }

  body[data-audio-tool="merge"] #mergePremiumSummary span {
    font-size: 12px !important;
  }

  body[data-audio-tool="merge"] #mergePremiumSummary strong {
    font-size: 16px !important;
  }
}


/* NUJIZ MERGE RESULT PLAYER V2 */

body[data-audio-tool="merge"] #mergePreviewLabel {
  margin: 15px 0 8px;
  color: #e2e8f0 !important;
  font-size: 14px;
  font-weight: 700;
}

body[data-audio-tool="merge"] #mergeResultPanel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #8164d8;
  border-radius: 15px;
  background: #26283b;
}

body[data-audio-tool="merge"] #mergeResultPanel strong {
  color: #fff !important;
  font-size: 18px;
}

body[data-audio-tool="merge"] #mergeResultPanel audio {
  display: block !important;
  width: 100%;
}

body[data-audio-tool="merge"] .merge-result-download {
  display: block;
  padding: 13px 16px;
  background: #7645d5;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
}

/* Merge audio preview label visibility */
body[data-audio-tool="merge"] #mergePreviewLabel {
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #29334a !important;
  border: 1px solid #7961b9 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin: 16px 0 10px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  text-shadow: none !important;
}


/* NUJIZ MERGE PROGRESS V3 */
body[data-audio-tool="merge"] #mergeProgressPanel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #7661ac;
  border-radius: 14px;
  background: #283249;
}
body[data-audio-tool="merge"] #mergeProgressPanel[hidden] {
  display: none !important;
}
body[data-audio-tool="merge"] .merge-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
body[data-audio-tool="merge"] .merge-progress-head * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 16px;
  font-weight: 800;
}
body[data-audio-tool="merge"] .merge-progress-track {
  height: 13px;
  border-radius: 20px;
  background: #101827;
  overflow: hidden;
}
body[data-audio-tool="merge"] .merge-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#7c3aed,#c084fc);
  transition: width .5s ease;
}
body[data-audio-tool="merge"] .merge-progress-note {
  display: block;
  margin-top: 10px;
  color: #e6eaff !important;
  -webkit-text-fill-color: #e6eaff !important;
  font-size: 13px;
}


/* NUJIZ AUDIO PROGRESS V4 */

html body[data-audio-tool="merge"] #mergeProgressPanel {
  --nap-bg:#f7f8ff;
  --nap-inner:#ffffff;
  --nap-text:#172033;
  --nap-muted:#536078;
  --nap-border:#d8d7e9;
  --nap-track:#e1e5ef;

  position:relative;
  overflow:hidden;
  padding:22px 16px;
  margin:16px 0;
  border:1px solid var(--nap-border);
  border-radius:20px;
  background:var(--nap-bg)!important;
  text-align:center;
}

html[data-theme="dark"] body[data-audio-tool="merge"] #mergeProgressPanel {
  --nap-bg:#1a2030;
  --nap-inner:#141a27;
  --nap-text:#ffffff;
  --nap-muted:#c4cde0;
  --nap-border:#485374;
  --nap-track:#30394b;
}

html body #mergeProgressPanel[hidden] {
  display:none!important;
}

html body #mergeProgressPanel .nap-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.7px;
  color:var(--nap-muted)!important;
  -webkit-text-fill-color:var(--nap-muted)!important;
}

#mergeProgressPanel .nap-brand i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#a855f7;
  animation:napPulse 1.3s infinite;
}

html body #mergeProgressPanel .merge-progress-head {
  display:block;
  margin:15px 0;
}

html body #mergeProgressPanel .merge-progress-title {
  font-size:18px!important;
  font-weight:800!important;
  color:var(--nap-text)!important;
  -webkit-text-fill-color:var(--nap-text)!important;
}

#mergeProgressPanel .nap-ring {
  position:relative;
  width:148px;
  height:148px;
  margin:18px auto;
}

#mergeProgressPanel .nap-orbit {
  position:absolute;
  inset:0;
  border-radius:50%;
  background:conic-gradient(
    #7545ff,
    #ed4fb9,
    #ffb54c,
    #48dfad,
    #38bdf8,
    #7545ff
  );
  animation:napSpin 2.8s linear infinite;
}

#mergeProgressPanel .nap-ring-inner {
  position:absolute;
  inset:7px;
  border-radius:50%;
  background:var(--nap-inner);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

html body #mergeProgressPanel .merge-progress-percent {
  font-size:38px!important;
  font-weight:900!important;
  line-height:1.2!important;
  font-variant-numeric:tabular-nums;
  color:var(--nap-text)!important;
  -webkit-text-fill-color:var(--nap-text)!important;
}

html body #mergeProgressPanel .nap-estimated {
  font-size:11px!important;
  color:var(--nap-muted)!important;
  -webkit-text-fill-color:var(--nap-muted)!important;
}

#mergeProgressPanel .nap-waves {
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  direction:ltr;
  margin:12px auto 20px;
}

#mergeProgressPanel .nap-waves i {
  width:5px;
  max-width:3%;
  height:var(--h);
  border-radius:10px;
  background:#9564ff;
  animation:napWave .9s ease-in-out infinite;
  animation-delay:calc(var(--i)*-65ms);
}

#mergeProgressPanel .nap-waves i:nth-child(n+6) {
  background:#b66af3;
}

#mergeProgressPanel .nap-waves i:nth-child(n+11) {
  background:#ed4fb9;
}

#mergeProgressPanel .nap-waves i:nth-child(n+16) {
  background:#ffb54c;
}

#mergeProgressPanel .nap-waves i:nth-child(n+21) {
  background:#48dfad;
}

#mergeProgressPanel .nap-waves i:nth-child(n+26) {
  background:#38bdf8;
}

html body #mergeProgressPanel .merge-progress-track {
  height:10px;
  background:var(--nap-track)!important;
  border-radius:30px;
  overflow:hidden;
  direction:ltr;
}

html body #mergeProgressPanel .merge-progress-fill {
  height:100%;
  border-radius:30px;
  background:linear-gradient(
    90deg,
    #7545ff,
    #ed4fb9,
    #ffb54c,
    #48dfad,
    #38bdf8,
    #7545ff
  )!important;
  background-size:200% 100%!important;
  animation:napGradient 2s linear infinite;
  transition:width .55s ease;
}

html body #mergeProgressPanel .merge-progress-note {
  display:block;
  margin:14px 0;
  min-height:24px;
  font-size:13px!important;
  font-weight:700;
  color:var(--nap-muted)!important;
  -webkit-text-fill-color:var(--nap-muted)!important;
}

#mergeProgressPanel .nap-footer {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  border-top:1px solid var(--nap-border);
  padding-top:15px;
}

#mergeProgressPanel .nap-footer > div {
  display:flex;
  flex-direction:column;
  gap:5px;
}

html body #mergeProgressPanel .nap-footer small {
  font-size:12px!important;
  color:var(--nap-muted)!important;
  -webkit-text-fill-color:var(--nap-muted)!important;
}

html body #mergeProgressPanel .nap-footer b {
  font-size:19px!important;
  font-weight:800;
  color:var(--nap-text)!important;
  -webkit-text-fill-color:var(--nap-text)!important;
}

/* Success */

html body #mergeProgressPanel[data-state="complete"] {
  border-color:#22a66c!important;
}

#mergeProgressPanel[data-state="complete"] .nap-orbit {
  animation:none;
  background:#22c55e;
}

html body #mergeProgressPanel[data-state="complete"] .merge-progress-fill {
  animation:none;
  background:#22c55e!important;
}

#mergeProgressPanel[data-state="complete"] .nap-waves i {
  animation:none;
  background:#22c55e;
  transform:scaleY(.45);
}

#mergeProgressPanel[data-state="complete"] .nap-brand i {
  animation:none;
  background:#22c55e;
}

/* Error */

#mergeProgressPanel[data-state="error"] .nap-orbit,
#mergeProgressPanel[data-state="error"] .nap-waves i,
#mergeProgressPanel[data-state="error"] .nap-brand i {
  animation:none;
  background:#ef4444;
}

html body #mergeProgressPanel[data-state="error"] .merge-progress-fill {
  animation:none;
  background:#ef4444!important;
}

/* Download button */

html body[data-audio-tool="merge"] .merge-result-download {
  background:#c5f65c!important;
  color:#19270b!important;
  -webkit-text-fill-color:#19270b!important;
  font-weight:800!important;
  border-radius:12px!important;
}

html body[data-audio-tool="merge"] button[hidden] {
  display:none!important;
}

@keyframes napSpin {
  to {transform:rotate(360deg)}
}

@keyframes napWave {
  0%,100% {transform:scaleY(.25)}
  50% {transform:scaleY(1)}
}

@keyframes napGradient {
  to {background-position:200% center}
}

@keyframes napPulse {
  0%,100% {opacity:1}
  50% {opacity:.35}
}

@media(max-width:600px) {
  #mergeProgressPanel .nap-ring {
    width:128px;
    height:128px;
  }

  #mergeProgressPanel .nap-waves {
    gap:3px;
  }
}

@media(prefers-reduced-motion:reduce) {
  #mergeProgressPanel * {
    animation:none!important;
    transition:none!important;
  }
}



/* NUJIZ MERGE DOWNLOAD CONTRAST V5 */

html body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download,

html[data-theme="dark"] body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download,

html body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download *,

html[data-theme="dark"] body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download * {
    color: #142509 !important;
    -webkit-text-fill-color: #142509 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 800 !important;
}

html body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download {
    background: #c5f65c !important;
    border: 1px solid #b5e64c !important;
    font-size: 18px !important;
    border-radius: 12px !important;
    transition: background .2s ease;
}

html body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download:hover {
    background: #b4ed40 !important;
}

html body[data-audio-tool="merge"]
#mergeResultPanel a.merge-result-download svg {
    color: #142509 !important;
    stroke: currentColor !important;
}
