/* Nujiz Social Video Downloader */

.vd-shell{
  max-width:920px;
  margin:0 auto;
}

.vd-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:24px;
  padding:28px;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}

.vd-platforms{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px;
}

.vd-platform{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 13px;
  border-radius:999px;
  background:#f6f7fb;
  border:1px solid rgba(15,23,42,.08);
  font-size:14px;
  font-weight:800;
  color:#334155;
}

.vd-platform-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#7251f5;
}

.vd-label{
  display:block;
  margin-bottom:9px;
  font-size:15px;
  font-weight:900;
  color:#111827;
}

.vd-input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:stretch;
}

.vd-url{
  width:100%;
  min-width:0;
  height:56px;
  border:1px solid #d7dce5;
  border-radius:15px;
  background:#fff;
  color:#111827;
  font:inherit;
  padding:0 17px;
  outline:none;
  transition:.2s ease;
  box-sizing:border-box;
}

.vd-url:focus{
  border-color:#7251f5;
  box-shadow:0 0 0 4px rgba(114,81,245,.12);
}

.vd-btn{
  appearance:none;
  border:0;
  min-height:56px;
  border-radius:15px;
  padding:0 24px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease,opacity .18s ease,box-shadow .18s ease;
}

.vd-btn:hover:not(:disabled){
  transform:translateY(-1px);
}

.vd-btn:disabled{
  opacity:.58;
  cursor:not-allowed;
}

.vd-btn-primary{
  color:#fff;
  background:linear-gradient(135deg,#7251f5,#8b5cf6);
  box-shadow:0 10px 25px rgba(114,81,245,.23);
}

.vd-btn-download{
  width:100%;
  margin-top:18px;
  color:#fff;
  background:linear-gradient(135deg,#7251f5,#5b3ee4);
  box-shadow:0 10px 25px rgba(114,81,245,.22);
}

.vd-help{
  margin:10px 2px 0;
  font-size:13px;
  line-height:1.7;
  color:#64748b;
}

.vd-status{
  display:none;
  margin-top:18px;
  padding:13px 15px;
  border-radius:14px;
  font-size:14px;
  font-weight:700;
  line-height:1.65;
}

.vd-status.is-visible{
  display:block;
}

.vd-status.is-loading{
  color:#5138bd;
  background:#f3f0ff;
  border:1px solid #ddd4ff;
}

.vd-status.is-error{
  color:#b42318;
  background:#fff2f0;
  border:1px solid #ffc9c2;
}

.vd-status.is-success{
  color:#166534;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
}

.vd-result{
  display:none;
  margin-top:24px;
  border-top:1px solid #e7eaf0;
  padding-top:24px;
}

.vd-result.is-visible{
  display:block;
}

.vd-preview{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:22px;
  align-items:center;
}

.vd-thumb-wrap{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/10;
  border-radius:18px;
  background:#eef0f5;
  border:1px solid rgba(15,23,42,.08);
}

.vd-thumb{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.vd-platform-badge{
  position:absolute;
  inset-inline-start:10px;
  bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.82);
  color:#fff;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(8px);
}

.vd-title{
  margin:0 0 9px;
  color:#111827;
  font-size:20px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.vd-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:0;
  color:#64748b;
  font-size:13px;
}

.vd-quality-area{
  margin-top:22px;
}

.vd-quality-title{
  margin:0 0 11px;
  font-size:15px;
  font-weight:900;
  color:#111827;
}

.vd-quality-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.vd-quality{
  position:relative;
}

.vd-quality input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.vd-quality span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:84px;
  height:44px;
  padding:0 14px;
  border-radius:13px;
  border:1px solid #d9dde7;
  background:#fff;
  color:#334155;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}

.vd-quality input:checked + span{
  color:#fff;
  background:#7251f5;
  border-color:#7251f5;
  box-shadow:0 8px 18px rgba(114,81,245,.20);
}

.vd-download-note{
  margin:11px 0 0;
  font-size:12px;
  line-height:1.7;
  color:#64748b;
}

.vd-privacy{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:20px;
  padding:14px 15px;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e5e9f0;
  color:#475569;
  font-size:13px;
  line-height:1.75;
}

.vd-privacy strong{
  color:#111827;
}

.vd-spinner{
  display:inline-block;
  width:16px;
  height:16px;
  margin-inline-end:8px;
  vertical-align:-3px;
  border:2px solid currentColor;
  border-inline-end-color:transparent;
  border-radius:50%;
  animation:vdSpin .75s linear infinite;
}

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

.vd-content{
  max-width:920px;
  margin:34px auto 0;
}

.vd-content h2{
  margin-top:30px;
}

.vd-content p,
.vd-content li{
  line-height:1.9;
}

html[data-theme="dark"] .vd-card,
body.dark .vd-card{
  background:#151824;
  border-color:#2c3140;
  box-shadow:none;
}

html[data-theme="dark"] .vd-url,
body.dark .vd-url,
html[data-theme="dark"] .vd-quality span,
body.dark .vd-quality span{
  background:#10131c;
  color:#f8fafc;
  border-color:#34394a;
}

html[data-theme="dark"] .vd-label,
body.dark .vd-label,
html[data-theme="dark"] .vd-title,
body.dark .vd-title,
html[data-theme="dark"] .vd-quality-title,
body.dark .vd-quality-title,
html[data-theme="dark"] .vd-privacy strong,
body.dark .vd-privacy strong{
  color:#f8fafc;
}

html[data-theme="dark"] .vd-help,
body.dark .vd-help,
html[data-theme="dark"] .vd-meta,
body.dark .vd-meta,
html[data-theme="dark"] .vd-download-note,
body.dark .vd-download-note{
  color:#aab2c2;
}

html[data-theme="dark"] .vd-platform,
body.dark .vd-platform,
html[data-theme="dark"] .vd-privacy,
body.dark .vd-privacy{
  background:#10131c;
  color:#cbd5e1;
  border-color:#303646;
}

html[data-theme="dark"] .vd-result,
body.dark .vd-result{
  border-color:#303646;
}

html[data-theme="dark"] .vd-thumb-wrap,
body.dark .vd-thumb-wrap{
  background:#0e1119;
  border-color:#303646;
}

@media(max-width:700px){
  .vd-card{
    padding:19px;
    border-radius:19px;
  }

  .vd-input-row{
    grid-template-columns:1fr;
  }

  .vd-btn-primary{
    width:100%;
  }

  .vd-preview{
    grid-template-columns:1fr;
  }

  .vd-thumb-wrap{
    max-width:100%;
    aspect-ratio:16/9;
  }

  .vd-quality-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vd-quality span{
    width:100%;
    box-sizing:border-box;
  }
}

/* =========================================================
   NUJIZ VIDEO DOWNLOADER — TEXT CLARITY FIX
   ========================================================= */

/* Main labels and normal text */


/* =========================================================
   NUJIZ VIDEO DOWNLOADER — FINAL DARK MODE
   ========================================================= */

html[data-theme="dark"] [data-video-downloader] .vd-card,
body.dark [data-video-downloader] .vd-card {
    color: #f8fafc !important;
}

/* Instagram / Facebook */
html[data-theme="dark"] [data-video-downloader] .vd-platform,
body.dark [data-video-downloader] .vd-platform {
    color: #e2e8f0 !important;
    opacity: 1 !important;
    border-color: #465166 !important;
}

/* Purple dot */
html[data-theme="dark"] [data-video-downloader] .vd-platform-dot,
body.dark [data-video-downloader] .vd-platform-dot {
    opacity: 1 !important;
}

/* رابط الفيديو */
html[data-theme="dark"] [data-video-downloader] .vd-label,
body.dark [data-video-downloader] .vd-label {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
}

/* URL field */
html[data-theme="dark"] [data-video-downloader] .vd-url,
body.dark [data-video-downloader] .vd-url {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    background: #151b27 !important;
    border-color: #566277 !important;
}

html[data-theme="dark"] [data-video-downloader] .vd-url::placeholder,
body.dark [data-video-downloader] .vd-url::placeholder {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Text immediately below input */
html[data-theme="dark"] [data-video-downloader] .vd-help,
body.dark [data-video-downloader] .vd-help {
    color: #e2e8f0 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* Notice box */
html[data-theme="dark"] [data-video-downloader] .vd-privacy,
body.dark [data-video-downloader] .vd-privacy {
    color: #e2e8f0 !important;
    opacity: 1 !important;
    background: #111722 !important;
    border-color: #394458 !important;
}

/*
 Important:
 The notice text is a raw text node inside this DIV.
 It inherits directly from .vd-privacy > div.
*/
html[data-theme="dark"] [data-video-downloader] .vd-privacy > div,
body.dark [data-video-downloader] .vd-privacy > div {
    color: #e2e8f0 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

/* Info icon */
html[data-theme="dark"] [data-video-downloader] .vd-privacy > span,
body.dark [data-video-downloader] .vd-privacy > span {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* ملاحظة */
html[data-theme="dark"] [data-video-downloader] .vd-privacy strong,
body.dark [data-video-downloader] .vd-privacy strong {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
}

/* Result metadata */
html[data-theme="dark"] [data-video-downloader] .vd-meta,
body.dark [data-video-downloader] .vd-meta {
    color: #d6deea !important;
    opacity: 1 !important;
}

/* Quality title */
html[data-theme="dark"] [data-video-downloader] .vd-quality-title,
body.dark [data-video-downloader] .vd-quality-title {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Quality buttons */
html[data-theme="dark"] [data-video-downloader] .vd-quality span,
body.dark [data-video-downloader] .vd-quality span {
    color: #e2e8f0 !important;
    opacity: 1 !important;
}

/* Text underneath final download button */
html[data-theme="dark"] [data-video-downloader] .vd-download-note,
body.dark [data-video-downloader] .vd-download-note {
    color: #d6deea !important;
    opacity: 1 !important;
}

/* Status */
html[data-theme="dark"] [data-video-downloader] .vd-status,
body.dark [data-video-downloader] .vd-status {
    opacity: 1 !important;
}

/* Main buttons */
html[data-theme="dark"] [data-video-downloader] .vd-btn,
body.dark [data-video-downloader] .vd-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900 !important;
}

/* Arabic text readability */
html[lang="ar"][data-theme="dark"] [data-video-downloader] .vd-help,
html[lang="ar"][data-theme="dark"] [data-video-downloader] .vd-privacy,
html[lang="ar"][data-theme="dark"] [data-video-downloader] .vd-download-note {
    line-height: 1.9 !important;
}


/* =========================================================
   VIDEO DOWNLOADER — MAXIMUM TEXT CLARITY
   ========================================================= */

html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] {
    color: #ffffff !important;
}

/* Every textual element inside the working card */
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card div,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card span,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card label,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card strong,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card small,
html[data-theme="dark"]
body[data-tool-id="video-downloader"]
[data-video-downloader] .vd-card p {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Facebook / Instagram */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-platform {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* رابط الفيديو */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-label {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Input typed text */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-url {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Placeholder only — intentionally slightly softer */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-url::placeholder {
    color: #d7dde8 !important;
    -webkit-text-fill-color: #d7dde8 !important;
    opacity: 1 !important;
}

/* Helper text */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-help {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Notice text */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-privacy,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-privacy > div {
    color: #ffffff !important;
    opacity: 1 !important;
}

html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-privacy strong {
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* Quality / metadata / download note */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-meta,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-quality-title,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-quality,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-download-note,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-status {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Buttons */
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-btn,
html[data-theme="dark"]
body[data-tool-id="video-downloader"] .vd-btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900 !important;
}

