/* Viralee HEIC to JPG Converter - all selectors are prefixed with .vhj to avoid theme / Elementor conflicts */
.vhj, .vhj *, .vhj *::before, .vhj *::after { box-sizing: border-box; }
.vhj { max-width: 960px; margin: 0 auto; font-family: inherit; line-height: 1.6; }
.vhj [hidden] { display: none !important; }

/* ---------- Head ---------- */
.vhj .vhj-head { text-align: center; margin: 0 0 24px; }
.vhj .vhj-title { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; font-weight: 800; }
.vhj .vhj-sub { margin: 0 auto 16px; max-width: 720px; font-size: 17px; opacity: .85; }
.vhj .vhj-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vhj .vhj-badges li { margin: 0; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: 999px;
  color: var(--vhj-accent, #4f46e5); background: rgba(79, 70, 229, .1); background: color-mix(in srgb, var(--vhj-accent, #4f46e5) 12%, transparent); }

/* ---------- Tool panel ---------- */
.vhj .vhj-tool { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06); }

.vhj .vhj-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 36px 20px; border: 2px dashed #c7cbd6; border-radius: 14px; background: #f9fafb; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s; outline: none; }
.vhj .vhj-drop:hover, .vhj .vhj-drop:focus-visible, .vhj .vhj-drop.is-over { border-color: var(--vhj-accent, #4f46e5);
  background: rgba(79, 70, 229, .06); background: color-mix(in srgb, var(--vhj-accent, #4f46e5) 7%, #fff); }
.vhj .vhj-drop:focus-visible { box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }
.vhj .vhj-drop.is-over { transform: scale(1.01); }
.vhj .vhj-drop-ico { width: 54px; height: 54px; color: var(--vhj-accent, #4f46e5); margin-bottom: 6px; }
.vhj .vhj-drop-title { margin: 0; font-size: 19px; font-weight: 700; color: #111827; }
.vhj .vhj-drop-hint { margin: 0; font-size: 14px; color: #6b7280; }
.vhj .vhj-link { color: var(--vhj-accent, #4f46e5); font-weight: 600; text-decoration: underline; }
.vhj .vhj-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* ---------- Cloud import ---------- */
.vhj .vhj-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.vhj .vhj-cloud-l { font-size: 13px; color: #6b7280; font-weight: 600; }
.vhj .vhj-cloud-btn svg { flex: none; }

/* ---------- Controls ---------- */
.vhj .vhj-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; }
.vhj .vhj-qwrap { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; min-width: 0; }
.vhj .vhj-qlabel { font-size: 14px; font-weight: 600; white-space: nowrap; color: #111827; }
.vhj .vhj-qval { display: inline-block; min-width: 44px; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: #3730a3;
  font-weight: 700; font-size: 13px; text-align: center; }
.vhj .vhj-quality { flex: 1; min-width: 100px; accent-color: var(--vhj-accent, #4f46e5); margin: 0; }
.vhj .vhj-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.vhj .vhj-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid #d1d5db; background: #fff; color: #374151; transition: all .15s; line-height: 1.2; }
.vhj .vhj-chip:hover { border-color: var(--vhj-accent, #4f46e5); color: var(--vhj-accent, #4f46e5); }
.vhj .vhj-chip.is-on { background: var(--vhj-accent, #4f46e5); border-color: var(--vhj-accent, #4f46e5); color: #fff; }

/* ---------- Buttons ---------- */
.vhj .vhj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700;
  line-height: 1.2; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--vhj-accent, #4f46e5); background: var(--vhj-accent, #4f46e5);
  color: #fff; cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s; }
.vhj .vhj-btn:hover { filter: brightness(1.08); color: #fff; }
.vhj .vhj-btn:active { transform: translateY(1px); }
.vhj .vhj-btn:disabled { opacity: .6; cursor: wait; }
.vhj .vhj-btn-sm { padding: 7px 12px; font-size: 13px; }
.vhj .vhj-btn-ghost { background: #fff; color: #374151; border-color: #d1d5db; }
.vhj .vhj-btn-ghost:hover { color: #111827; border-color: #9ca3af; filter: none; }
.vhj .vhj-icon-btn { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
  font-size: 18px; line-height: 1; cursor: pointer; }
.vhj .vhj-icon-btn:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* ---------- Notice / progress ---------- */
.vhj .vhj-notice { position: relative; margin-top: 16px; padding: 12px 40px 12px 14px; border-radius: 10px; background: #fffbeb;
  border: 1px solid #fde68a; color: #92400e; font-size: 14px; }
.vhj .vhj-notice p { margin: 0 0 4px; }
.vhj .vhj-notice p:last-child { margin: 0; }
.vhj .vhj-notice-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.vhj .vhj-progress { margin-top: 16px; }
.vhj .vhj-bar { height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.vhj .vhj-bar span { display: block; height: 100%; width: 0; background: var(--vhj-accent, #4f46e5); transition: width .3s ease; }
.vhj .vhj-progress-text { margin: 6px 0 0; font-size: 13px; color: #6b7280; }

/* ---------- Summary ---------- */
.vhj .vhj-summary { margin-top: 18px; padding: 14px; border-radius: 12px; background: #f9fafb; border: 1px solid #eef0f3; }
.vhj .vhj-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.vhj .vhj-stat { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #eef0f3; }
.vhj .vhj-stat-v { display: block; font-size: 17px; font-weight: 800; color: #111827; line-height: 1.3; }
.vhj .vhj-stat-l { display: block; font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.vhj .vhj-stat.is-good .vhj-stat-v { color: #047857; }
.vhj .vhj-stat.is-bad .vhj-stat-v { color: #b91c1c; }
.vhj .vhj-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Result cards ---------- */
.vhj .vhj-list { display: grid; gap: 10px; margin-top: 14px; }
.vhj .vhj-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px;
  border: 1px solid #e5e7eb; background: #fff; }
.vhj .vhj-card[data-status="error"] { border-color: #fecaca; background: #fef2f2; }
.vhj .vhj-thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.vhj .vhj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhj .vhj-ph { font-size: 13px; font-weight: 800; color: #9ca3af; letter-spacing: .05em; }
.vhj .vhj-ph-bad { color: #b91c1c; font-size: 26px; }
.vhj .vhj-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: var(--vhj-accent, #4f46e5);
  animation: vhj-rot .8s linear infinite; }
@keyframes vhj-rot { to { transform: rotate(360deg); } }
.vhj .vhj-info { min-width: 0; }
.vhj .vhj-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vhj .vhj-name { font-weight: 700; font-size: 15px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vhj .vhj-badge { flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px;
  background: #e5e7eb; color: #4b5563; }
.vhj .vhj-card[data-status="working"] .vhj-badge { background: #e0e7ff; color: #3730a3; }
.vhj .vhj-card[data-status="done"] .vhj-badge { background: #d1fae5; color: #065f46; }
.vhj .vhj-card[data-status="error"] .vhj-badge { background: #fee2e2; color: #991b1b; }
.vhj .vhj-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.vhj .vhj-m { font-size: 12.5px; color: #6b7280; }
.vhj .vhj-m b { margin-left: 5px; color: #111827; font-weight: 700; }
.vhj .vhj-msg { margin: 6px 0 0; font-size: 12.5px; color: #92400e; }
.vhj .vhj-card[data-status="error"] .vhj-msg { color: #991b1b; }
.vhj .vhj-msg:empty { display: none; }
.vhj .vhj-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- SEO content ---------- */
.vhj .vhj-seo { margin-top: 40px; }
.vhj .vhj-seo h2 { font-size: clamp(21px, 3vw, 28px); line-height: 1.3; margin: 34px 0 12px; }
.vhj .vhj-seo h3 { font-size: 18px; margin: 18px 0 8px; }
.vhj .vhj-seo p, .vhj .vhj-seo li { font-size: 16px; }
.vhj .vhj-seo ol, .vhj .vhj-seo ul { padding-left: 22px; margin: 0 0 14px; }
.vhj .vhj-seo li { margin-bottom: 8px; }
.vhj .vhj-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.vhj .vhj-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.vhj .vhj-table th, .vhj .vhj-table td { padding: 10px 12px; text-align: left; border: 1px solid #e5e7eb; vertical-align: top; }
.vhj .vhj-table th { background: #f3f4f6; color: #111827; font-weight: 700; }
.vhj .vhj-table td { background: #fff; color: #374151; }
.vhj .vhj-faq details { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.vhj .vhj-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 16px; color: #111827; list-style: none; position: relative; padding-right: 44px; }
.vhj .vhj-faq summary::-webkit-details-marker { display: none; }
.vhj .vhj-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--vhj-accent, #4f46e5); }
.vhj .vhj-faq details[open] summary::after { content: "\2212"; }
.vhj .vhj-faq details > div { padding: 0 16px 14px; color: #374151; }
.vhj .vhj-faq details > div p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .vhj .vhj-tool { padding: 14px; border-radius: 14px; }
  .vhj .vhj-drop { padding: 28px 14px; }
  .vhj .vhj-card { grid-template-columns: 60px 1fr; }
  .vhj .vhj-thumb { width: 60px; height: 60px; }
  .vhj .vhj-actions { grid-column: 1 / -1; justify-content: space-between; }
  .vhj .vhj-actions .vhj-btn { flex: 1; }
  .vhj .vhj-qwrap { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vhj *, .vhj *::before, .vhj *::after { transition: none !important; animation-duration: .01ms !important; }
}

[dir="rtl"] .vhj .vhj-notice { padding: 12px 14px 12px 40px; }
[dir="rtl"] .vhj .vhj-notice-x { right: auto; left: 8px; }
[dir="rtl"] .vhj .vhj-faq summary { padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .vhj .vhj-faq summary::after { right: auto; left: 16px; }
[dir="rtl"] .vhj .vhj-table th, [dir="rtl"] .vhj .vhj-table td { text-align: right; }
