*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.06);
  --accent: #8b5cf6;
  --accent2: #d946ef;
  --accent3: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 18px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background orbs (Gorgeous theme) ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #7c3aed; top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: #db2777; bottom: -150px; right: -100px; animation-delay: -4s; }
.orb-3 { width: 450px; height: 450px; background: #0284c7; top: 30%; left: 55%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ── Header ── */
header { text-align: center; margin-bottom: 2.5rem; }

/* Global Site Header (Terms, Privacy) */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
}
.nav-menu {
  display: flex;
  gap: 1rem;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.logo-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(108,99,255,.5));
}
.logo-text {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.platform-badge {
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  letter-spacing: .3px;
}
.platform-badge.yt   { background: rgba(255,0,0,.12);    color: #ff6b6b; border-color: rgba(255,0,0,.25); }
.platform-badge.ig   { background: rgba(247,37,133,.12); color: #f72585; border-color: rgba(247,37,133,.25); }
.platform-badge.fb   { background: rgba(76,110,245,.12); color: #74c0fc; border-color: rgba(76,110,245,.25); }
.platform-badge.tw   { background: rgba(29,161,242,.12); color: #74c0fc; border-color: rgba(29,161,242,.25); }
.platform-badge.more { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* ── Glass card ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: border-color .2s;
}
.glass-card:hover { border-color: rgba(255,255,255,.18); }

/* ── Input card ── */
.input-card { padding: 1.5rem; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.3);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}
.input-icon {
  padding: 0 .75rem 0 1rem;
  font-size: 1.1rem;
  opacity: .5;
  flex-shrink: 0;
}
#url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .95rem;
  padding: .85rem .5rem;
  outline: none;
}
#url-input::placeholder { color: var(--text-muted); }
.platform-detect {
  padding-right: 1rem;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 30px;
  text-align: right;
}

/* ── Tor banner ── */
.tor-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(108,99,255,.08);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  flex-wrap: wrap;
}
.tor-dot { font-size: 1rem; transition: color .3s; }
.tor-dot.connecting { color: var(--warning); animation: blink 1s infinite; }
.tor-dot.ready      { color: var(--success); }
.tor-dot.error      { color: var(--error); }
#tor-label { font-weight: 700; }
.tor-info  { color: var(--text-muted); font-size: .78rem; flex: 1; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Proxy row ── */
.proxy-row { margin-bottom: .75rem; }
.proxy-wrapper { margin-bottom: .3rem; }
.proxy-hint { font-size: .72rem; color: var(--text-muted); padding-left: .25rem; }

/* ── Audio row ── */
.audio-row { margin-top: 1rem; }
.audio-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.audio-divider::before,
.audio-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.btn-audio {
  width: 100%;
  background: rgba(76, 201, 240, .08);
  border: 1.5px solid rgba(76, 201, 240, .3);
  border-radius: var(--radius-sm);
  color: var(--accent3);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  padding: .8rem 1.25rem;
  transition: background .15s, border-color .15s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
.btn-audio:hover  { background: rgba(76,201,240,.15); border-color: var(--accent3); transform: translateY(-1px); }
.btn-audio:active { transform: translateY(0); }
.btn-audio:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.audio-badge {
  background: rgba(76,201,240,.2);
  border: 1px solid rgba(76,201,240,.4);
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 800;
  padding: .1rem .45rem;
  letter-spacing: .5px;
}
.audio-hint { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* ── Controls row ── */
.controls-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
}
.quality-wrap { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 180px; }
.label-sm { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }

select {
  background: rgba(0,0,0,.3);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  padding: .65rem 1rem;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b82a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select:focus { border-color: var(--accent); }
select option { background: #1a1d2e; color: var(--text); }

.btn-group { display: flex; gap: .625rem; }

.btn-info, .btn-download {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  padding: .7rem 1.4rem;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.btn-info {
  background: rgba(255,255,255,.08);
  border: 1.5px solid var(--glass-border);
  color: var(--text);
}
.btn-info:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }

.btn-download {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,.4);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(108,99,255,.55); }
.btn-download:active { transform: translateY(0); }
.btn-download:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-arrow { font-size: 1.1rem; }

/* ── Warning banner ── */
.banner-warning {
  background: rgba(243,156,18,.1);
  border: 1px solid rgba(243,156,18,.3);
  border-radius: var(--radius-sm);
  color: #f39c12;
  font-size: .875rem;
  padding: .9rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  backdrop-filter: blur(10px);
}
.warn-icon { font-size: 1.2rem; flex-shrink: 0; }
.banner-warning code {
  background: rgba(243,156,18,.15);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .8rem;
}
.hidden { display: none !important; }

/* ── Info card ── */
.info-card { padding: 1.25rem 1.5rem; }
.info-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
#info-thumb {
  width: 150px;
  min-width: 150px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.info-text { flex: 1; min-width: 0; }
.info-site {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent3);
  margin-bottom: .3rem;
}
#info-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-meta { color: var(--text-muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.info-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: .15rem .7rem;
}

/* ── Section titles ── */
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 1.75rem 0 .75rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46,204,113,.5);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ── Active download item ── */
.dl-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 1.25rem 1.5rem;
  margin-bottom: .875rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; gap: 1rem; }
.dl-url {
  font-size: .82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.dl-filename {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Progress bar */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .6rem;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(108,99,255,.6);
  transition: width .4s ease;
  width: 0%;
}
.progress-fill.done {
  background: linear-gradient(90deg, var(--success), #26d0a0);
  box-shadow: 0 0 10px rgba(46,204,113,.5);
}
.progress-fill.error { background: var(--error); box-shadow: none; }
.progress-fill.indeterminate {
  width: 40% !important;
  animation: indeterminate 1.2s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.dl-meta { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.dl-pct  { font-weight: 700; color: var(--text); font-size: .9rem; }
.dl-error { color: var(--error); font-size: .82rem; margin-top: .5rem; }

/* Badges */
.badge {
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-running     { background: rgba(108,99,255,.2); color: #a89cff; border: 1px solid rgba(108,99,255,.35); }
.badge-processing  { background: rgba(243,156,18,.15); color: var(--warning); border: 1px solid rgba(243,156,18,.3); }
.badge-done        { background: rgba(46,204,113,.15); color: var(--success); border: 1px solid rgba(46,204,113,.3); }
.badge-error       { background: rgba(231,76,60,.15);  color: var(--error);   border: 1px solid rgba(231,76,60,.3); }

/* ── Files card ── */
.files-card { padding: 0; overflow: hidden; }

.file-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(255,255,255,.03); }

.file-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: .9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name a { color: var(--text); text-decoration: none; transition: color .15s; }
.file-name a:hover { color: var(--accent3); }
.file-size { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.btn-delete {
  background: transparent;
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 8px;
  color: rgba(231,76,60,.6);
  cursor: pointer;
  font-size: .78rem;
  padding: .35rem .75rem;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-delete:hover { background: rgba(231,76,60,.15); border-color: var(--error); color: var(--error); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state p { line-height: 1.8; }
.empty-state strong { color: var(--text); }

/* Responsive */
@media (max-width: 560px) {
  .logo-text { font-size: 1.8rem; }
  .info-inner { flex-direction: column; }
  #info-thumb { width: 100%; min-width: unset; max-height: 200px; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .btn-group { flex-direction: column; }
  .btn-info, .btn-download { justify-content: center; }
  .quality-wrap { min-width: unset; }
}

/* ═══════════════════════════════════════════════════════════════
   TAB BAR
═══════════════════════════════════════════════════════════════ */

.tab-bar {
  display: flex;
  gap: .5rem;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: .35rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  padding: .75rem 1rem;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
.tab-btn:hover    { color: var(--text); background: rgba(255,255,255,.05); }
.tab-btn.tab-active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 3px 14px rgba(108,99,255,.4);
}

/* ═══════════════════════════════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════════════════════════════ */

.upload-card { padding: 0; overflow: hidden; cursor: default; }
.upload-zone {
  border: 2px dashed rgba(108,99,255,.35);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(108,99,255,.07);
}
.upload-zone.uploading { pointer-events: none; }
.upload-icon  { font-size: 3rem; margin-bottom: .75rem; opacity: .7; }
.upload-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.upload-sub   { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.upload-browse {
  color: var(--accent3);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}
.upload-types {
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .3px;
}
.upload-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.upload-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* File info bar */
.file-info-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  flex-wrap: wrap;
}
.file-info-icon { font-size: 2rem; flex-shrink: 0; }
.file-info-detail { flex: 1; min-width: 0; }
.file-info-name {
  font-size: .95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info-meta { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.btn-change-file {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-change-file:hover { color: var(--text); border-color: rgba(255,255,255,.25); }

/* Tool section */
.tool-section { margin-bottom: 1.25rem; }
.tool-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: .75rem;
  padding-left: .25rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}
.tool-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.1rem .75rem;
  text-align: center;
  transition: border-color .15s, transform .15s, background .15s;
}
.tool-card:hover {
  border-color: rgba(108,99,255,.5);
  background: rgba(108,99,255,.08);
  transform: translateY(-2px);
}
.tool-card-icon  { font-size: 1.5rem; }
.tool-card-label { font-size: .88rem; font-weight: 700; color: var(--text); }
.tool-card-desc  { font-size: .7rem;  color: var(--text-muted); }
.tool-card-featured {
  border-color: rgba(108,99,255,.4);
  background: rgba(108,99,255,.1);
  grid-column: span 2;
  flex-direction: row;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.tool-card-featured:hover { border-color: var(--accent); background: rgba(108,99,255,.18); }
.tool-card-featured .tool-card-icon { font-size: 2rem; }
.tool-card-featured .tool-card-label { font-size: 1rem; }
.tool-card-featured .tool-card-desc  { font-size: .8rem; }

/* file-type pill in convert page */
.file-type-icon { font-size: 2.4rem; flex-shrink: 0; }

/* pdf split input */
.pdf-options-card { padding: 1.25rem 1.5rem; }
.pdf-opt-title { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.pdf-opt-hint  { font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.pdf-opt-hint code {
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: .1rem .35rem;
  font-size: .78rem;
}
.pdf-pages-input {
  width: 100%;
  background: rgba(0,0,0,.3);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s;
}
.pdf-pages-input:focus { border-color: var(--accent); }
.pdf-pages-input::placeholder { color: var(--text-muted); }

/* ── Compress quality slider ── */
.pdf-compress-card { padding: 1.25rem 1.5rem; }
.compress-quality-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
}
.compress-quality-label { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.compress-quality-slider {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
}
.compress-quality-val {
  font-size: 1rem;
  font-weight: 800;
  min-width: 46px;
  text-align: right;
  color: var(--accent);
}
.compress-quality-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .5rem;
  text-align: center;
}

/* ── Visual page picker (split/extract) ── */
.pdf-split-visual-card { padding: 1.25rem 1.5rem; }
.page-pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.page-pick-count {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 700;
}
.page-pick-actions { display: flex; gap: .5rem; }
.page-pick-action-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  padding: .28rem .7rem;
  transition: all .15s;
}
.page-pick-action-btn:hover { color: var(--text); background: rgba(255,255,255,.13); }
.page-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
}
.page-pick-item {
  position: relative;
  border-radius: 7px;
  border: 2px solid var(--accent);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, opacity .15s;
  background: rgba(0,0,0,.3);
}
.page-pick-item img {
  width: 100%;
  display: block;
  border-radius: 5px;
}
.page-pick-item.page-removed {
  opacity: .35;
  border-color: rgba(255,255,255,.15);
}
.page-pick-item.page-removed .page-pick-x {
  background: rgba(231,76,60,.85);
  color: #fff;
}
.page-pick-num {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  font-weight: 700;
  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  pointer-events: none;
}
.page-pick-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(108,99,255,.85);
  border: none;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.page-pick-x:hover { background: rgba(231,76,60,.9); transform: scale(1.15); }
.page-pick-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE  (index.html)
═══════════════════════════════════════════════════════════════ */

/* ── Popular Destinations ── */
.popular-dest-section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.popular-dest-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.popular-dest-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2rem;
}
.popular-dest-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 2rem;
}
.pdest-pill {
  display: inline-block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.pdest-pill:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.pdest-pill.pdest-hidden { display: none; }
.popular-dest-explore {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #f72585;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(247,37,133,.4);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.popular-dest-explore:hover { color: #ff6eb3; border-color: #ff6eb3; }

/* ── Why Section ── */
.why-section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.why-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.why-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: .6rem;
}
.why-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 3rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  text-align: left;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.why-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-3px);
}
.why-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-card-title {
  font-size: .97rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .35rem;
}
.why-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-title { font-size: 1.5rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Top Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,12,30,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.top-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.top-nav-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.top-nav-links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.top-nav-home {
  background: rgba(108,99,255,.15) !important;
  border: 1px solid rgba(108,99,255,.3);
  color: #a89fff !important;
  margin-right: .5rem;
  font-weight: 700 !important;
}
.top-nav-home:hover { background: rgba(108,99,255,.28) !important; color: #fff !important; }
.top-nav-report {
  background: rgba(247,37,133,.15) !important;
  border: 1px solid rgba(247,37,133,.3);
  color: #f7a8cc !important;
  margin-left: .5rem;
}
.top-nav-report:hover { background: rgba(247,37,133,.28) !important; color: #fff !important; }

/* ── Inner page shared styles ── */
.inner-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  color: var(--text);
}
.inner-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.inner-page-badge {
  display: inline-block;
  background: rgba(108,99,255,.15);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  color: #a89fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.inner-page h1 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, var(--accent3) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.inner-page-sub {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}
.inner-section {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(16px);
}
.inner-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.inner-section p, .inner-section li {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.inner-section ul, .inner-section ol {
  padding-left: 1.25rem;
}
.inner-section li { margin-bottom: .4rem; }
.inner-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.inner-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8e2de2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.inner-step-body strong { display: block; font-size: .9rem; margin-bottom: .2rem; color: #fff; }
.inner-step-body span { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 1rem; margin-bottom: 1rem; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.faq-a { font-size: .84rem; color: var(--text-muted); line-height: 1.7; }
.contact-form, .report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: rgba(108,99,255,.6);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.25); }
.form-submit {
  background: linear-gradient(135deg, var(--accent), #8e2de2);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  padding: .9rem 2rem;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  align-self: flex-start;
}
.form-submit:hover { opacity: .88; transform: translateY(-1px); }
.form-note { font-size: .75rem; color: rgba(255,255,255,.35); }
.contact-info-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(108,99,255,.1);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.contact-info-box .ci-icon { font-size: 1.4rem; }
.contact-info-box .ci-text { font-size: .85rem; color: rgba(255,255,255,.65); }
.contact-info-box .ci-text strong { display: block; color: #fff; font-size: .9rem; }
@media (max-width: 600px) {
  .top-nav-logo { display: none; }
  .top-nav-links { gap: 0; }
  .top-nav-links a { font-size: .72rem; padding: .35rem .5rem; }
  .form-row { grid-template-columns: 1fr; }
}

.home-wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
  text-align: center;
}

.home-header { margin-bottom: 2rem; }
.home-header .logo { justify-content: center; margin-bottom: 1rem; margin-top: -1.25rem; }

/* ── Landing choice cards ── */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.choice-card {
  position: relative;
  border-radius: 24px;
  padding: 2rem 1.6rem 1.8rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid transparent;
}

.choice-free-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(243,156,18,.5);
}

/* Per-card gradient backgrounds */
.choice-pdf {
  background: linear-gradient(145deg, rgba(243,156,18,.22) 0%, rgba(180,90,0,.12) 100%);
  border-color: rgba(243,156,18,.35);
  box-shadow: 0 8px 32px rgba(243,156,18,.15), inset 0 1px 0 rgba(255,255,255,.07);
}
.choice-img {
  background: linear-gradient(145deg, rgba(46,204,113,.22) 0%, rgba(0,120,60,.12) 100%);
  border-color: rgba(46,204,113,.35);
  box-shadow: 0 8px 32px rgba(46,204,113,.15), inset 0 1px 0 rgba(255,255,255,.07);
}
.choice-files {
  background: linear-gradient(145deg, rgba(76,201,240,.22) 0%, rgba(0,100,180,.12) 100%);
  border-color: rgba(76,201,240,.35);
  box-shadow: 0 8px 32px rgba(76,201,240,.15), inset 0 1px 0 rgba(255,255,255,.07);
}
.choice-video {
  background: linear-gradient(145deg, rgba(108,99,255,.22) 0%, rgba(60,0,160,.12) 100%);
  border-color: rgba(108,99,255,.35);
  box-shadow: 0 8px 32px rgba(108,99,255,.15), inset 0 1px 0 rgba(255,255,255,.07);
}

/* Hover lift + glow intensify */
.choice-card:hover { transform: translateY(-8px) scale(1.02); }
.choice-pdf:hover   { box-shadow: 0 24px 60px rgba(243,156,18,.35); border-color: rgba(243,156,18,.75); }
.choice-img:hover   { box-shadow: 0 24px 60px rgba(46,204,113,.35); border-color: rgba(46,204,113,.75); }
.choice-files:hover { box-shadow: 0 24px 60px rgba(76,201,240,.35); border-color: rgba(76,201,240,.75); }
.choice-video:hover { box-shadow: 0 24px 60px rgba(108,99,255,.35); border-color: rgba(108,99,255,.75); }

.choice-glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .3;
  pointer-events: none;
  transition: opacity .3s;
}
.choice-card:hover .choice-glow { opacity: .55; }
.choice-glow-video { background: rgba(108,99,255,1); }
.choice-glow-files { background: rgba(76,201,240,1); }
.choice-glow-pdf   { background: rgba(243,156,18,1); }
.choice-glow-img   { background: rgba(46,204,113,1); }

/* Bottom shimmer line */
.choice-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 24px 24px;
  opacity: 0;
  transition: opacity .3s;
}
.choice-card:hover::after { opacity: 1; }
.choice-pdf::after   { background: linear-gradient(90deg, transparent, rgba(243,156,18,.8), transparent); }
.choice-img::after   { background: linear-gradient(90deg, transparent, rgba(46,204,113,.8), transparent); }
.choice-files::after { background: linear-gradient(90deg, transparent, rgba(76,201,240,.8), transparent); }
.choice-video::after { background: linear-gradient(90deg, transparent, rgba(108,99,255,.8), transparent); }

.choice-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.choice-icon-video { background: rgba(108,99,255,.2); border: 1px solid rgba(108,99,255,.4); }
.choice-icon-files { background: rgba(76,201,240,.18); border: 1px solid rgba(76,201,240,.4); }
.choice-icon-pdf   { background: rgba(243,156,18,.18); border: 1px solid rgba(243,156,18,.4); }
.choice-icon-img   { background: rgba(46,204,113,.18); border: 1px solid rgba(46,204,113,.4); }

.choice-body { flex: 1; }
.choice-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.choice-desc  { font-size: .83rem; color: var(--text-muted); margin-bottom: .9rem; line-height: 1.5; }
.choice-formats {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .75rem;
}
.cfmt {
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border: 1px solid transparent;
  letter-spacing: .2px;
}
.cfmt-v   { background: rgba(108,99,255,.15); color: #a89fff; border-color: rgba(108,99,255,.35); }
.cfmt-a   { background: rgba(76,201,240,.12); color: #74d7f7; border-color: rgba(76,201,240,.35); }
.cfmt-g   { background: rgba(247,37,133,.12); color: #f9a8d4; border-color: rgba(247,37,133,.35); }
.cfmt-r   { background: rgba(46,204,113,.12); color: #6ee7b7; border-color: rgba(46,204,113,.35); }
.cfmt-pdf { background: rgba(243,156,18,.15); color: #fcd34d; border-color: rgba(243,156,18,.4); }
.cfmt-img { background: rgba(76,201,240,.12); color: #74d7f7; border-color: rgba(76,201,240,.35); }
.cfmt-aud { background: rgba(46,204,113,.12); color: #6ee7b7; border-color: rgba(46,204,113,.35); }
.cfmt-vid { background: rgba(108,99,255,.15); color: #a89fff; border-color: rgba(108,99,255,.35); }

.choice-sites {
  font-size: .72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: .2px;
}
.choice-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: flex-end;
  opacity: .4;
  transition: transform .25s, opacity .25s;
}
.choice-card:hover .choice-arrow { transform: translateX(6px); opacity: 1; }

.choice-back-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1rem;
  margin-bottom: 1.25rem;
  transition: color .15s, border-color .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.choice-back-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   FILES PAGE  (files.html)
═══════════════════════════════════════════════════════════════ */

.files-page-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}

.files-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.files-page-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
}
.files-back-link {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  padding: .45rem .9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: color .15s, border-color .15s;
  position: relative;
  z-index: 10;
}
.files-back-link:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

.files-page-hero {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, var(--accent3) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: .5rem;
}
.files-page-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

/* Universal drop zone */
.files-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.1rem 1.5rem;
  border: 2px dashed rgba(108,99,255,.3);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .88rem;
  cursor: default;
  transition: border-color .2s, background .2s;
  margin-bottom: 2rem;
}
.files-dropzone.fdz-hover {
  border-color: var(--accent);
  background: rgba(108,99,255,.06);
  color: var(--text);
}
.fdz-icon { font-size: 1.4rem; }
.fdz-text { line-height: 1.4; }

/* Section */
.fsec {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.fsec-hdr {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.fsec-badge {
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  padding: .45rem 1rem;
  white-space: nowrap;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.fsec-pdf { background: rgba(243,156,18,.15); color: var(--warning); border: 1px solid rgba(243,156,18,.3); }
.fsec-img { background: rgba(76,201,240,.12); color: var(--accent3); border: 1px solid rgba(76,201,240,.3); }
.fsec-aud { background: rgba(46,204,113,.12); color: var(--success); border: 1px solid rgba(46,204,113,.3); }
.fsec-vid { background: rgba(108,99,255,.15); color: #a89cff; border: 1px solid rgba(108,99,255,.3); }

.fsec-hdr-text { flex: 1; min-width: 0; }
.fsec-title { font-size: 1rem; font-weight: 800; margin-bottom: .15rem; }
.fsec-desc  { font-size: .78rem; color: var(--text-muted); }

/* Format flow visualization */
.format-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.05);
}
.fmt-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  color: var(--text);
  letter-spacing: .3px;
}
.fmt-chip-pdf { background: rgba(243,156,18,.12); color: var(--warning); border-color: rgba(243,156,18,.25); }
.fmt-chip-aud { background: rgba(46,204,113,.12); color: var(--success); border-color: rgba(46,204,113,.25); }
.fmt-arr { color: rgba(255,255,255,.3); font-size: .85rem; }

/* Hint below tool grid */
.fsec-upload-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .2px;
}

/* tool-card-text layout for featured card in files page */
.tool-card-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-align: left;
}

/* Upload overlay */
.fupload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fupload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem 3rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.fupload-label { font-size: 1rem; font-weight: 700; }
.fupload-sub   { font-size: .8rem; color: var(--text-muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE  (index.html — original)
═══════════════════════════════════════════════════════════════ */
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(108,99,255,.15);
  border: 1px solid rgba(108,99,255,.35);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  color: #a89fff;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.home-hero-line {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, var(--accent3) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.home-tagline {
  color: var(--text-muted);
  font-size: .92rem;
  max-width: 480px;
  margin: 0 auto .75rem;
  line-height: 1.75;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}
.fpill {
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem 1rem;
  letter-spacing: .3px;
  border: 1px solid transparent;
}
.fpill-video { background: rgba(108,99,255,.12); color: #a89cff; border-color: rgba(108,99,255,.3); }
.fpill-audio { background: rgba(76,201,240,.10); color: var(--accent3); border-color: rgba(76,201,240,.3); }
.fpill-gif   { background: rgba(247,37,133,.10); color: #f72585;        border-color: rgba(247,37,133,.3); }
.fpill-ring  { background: rgba(46,204,113,.10); color: var(--success);  border-color: rgba(46,204,113,.3); }
.fpill-pdf   { background: rgba(243,156,18,.10); color: var(--warning);  border-color: rgba(243,156,18,.3); }
.fpill-conv  { background: rgba(255,255,255,.07); color: var(--text-muted); border-color: rgba(255,255,255,.15); }

/* Big URL input card */
.home-input-card { padding: 1.5rem; text-align: left; }

.home-input-wrapper { margin-bottom: 1rem; }
.home-input-wrapper #url-input {
  font-size: 1rem;
  padding: 1rem .5rem;
}

.btn-process {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  padding: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  box-shadow: 0 4px 24px rgba(108,99,255,.45);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: .2px;
}
.btn-process:hover   { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(108,99,255,.6); }
.btn-process:active  { transform: translateY(0); }
.btn-process:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Options section */
.options-section { text-align: left; }

.video-preview-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  animation: slideIn .3s ease;
}
.preview-thumb {
  width: 140px;
  min-width: 140px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.preview-info { flex: 1; min-width: 0; }
.preview-platform {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .35rem;
}
.preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview-meta {
  color: var(--text-muted);
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* Action cards grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.action-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: border-color .2s, transform .2s;
  animation: slideIn .35s ease;
}
.action-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); }

.action-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.action-icon-video { background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.3); }
.action-icon-mp3   { background: rgba(76,201,240,.12); border: 1px solid rgba(76,201,240,.3); }
.action-icon-gif   { background: rgba(247,37,133,.12); border: 1px solid rgba(247,37,133,.3); }

.action-card-body { flex: 1; }
.action-label { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.action-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

.action-card-foot { display: flex; flex-direction: column; gap: .6rem; }

.quality-mini {
  background: rgba(0,0,0,.35);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .82rem;
  padding: .5rem .75rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%237b82a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}
.quality-mini option { background: #1a1d2e; }

.btn-action {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  padding: .65rem 1rem;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-align: center;
}
.btn-action-video {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 3px 16px rgba(108,99,255,.4);
}
.btn-action-video:hover { transform: translateY(-1px); box-shadow: 0 5px 22px rgba(108,99,255,.55); }
.btn-action-mp3 {
  background: rgba(76,201,240,.12);
  border: 1.5px solid rgba(76,201,240,.35);
  color: var(--accent3);
}
.btn-action-mp3:hover { background: rgba(76,201,240,.2); transform: translateY(-1px); }
.btn-action-gif {
  background: rgba(247,37,133,.1);
  border: 1.5px solid rgba(247,37,133,.35);
  color: var(--accent2);
}
.btn-action-gif:hover { background: rgba(247,37,133,.18); transform: translateY(-1px); }

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .action-grid { grid-template-columns: 1fr; }
  .video-preview-card { flex-direction: column; }
  .preview-thumb { width: 100%; min-width: unset; max-height: 180px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .action-grid { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   PROCESS PAGE  (process.html)
═══════════════════════════════════════════════════════════════ */

.proc-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Nav */
.proc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem;
  position: relative;
}
.proc-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.proc-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  padding: .38rem .9rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: background .18s, border-color .18s, color .18s, transform .15s;
  position: relative;
  z-index: 10;
}
.proc-back:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .proc-nav {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1rem .5rem;
  }
  .proc-logo {
    position: static;
    transform: none;
    order: -1;
  }
  .proc-back {
    order: 1;
    font-size: .8rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    padding: .35rem 1rem;
    color: var(--text-muted);
  }
  .proc-logo img { height: 48px !important; }
}

/* Ad slots */
.ad-slot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.1);
}
.ad-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  gap: .3rem;
  padding: .5rem;
}
.ad-inner-tall { min-height: 160px; }
.ad-label {
  font-size: .6rem;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-placeholder-inner {
  font-size: .8rem;
  color: rgba(255,255,255,.15);
  font-weight: 600;
  text-align: center;
}
.ad-placeholder-tall { writing-mode: vertical-lr; }

.ad-leaderboard { margin-bottom: 1.25rem; }
.ad-leaderboard-bottom { margin-top: 1.5rem; }

/* Video info bar */
.proc-info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.proc-thumb {
  width: 120px;
  min-width: 120px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.proc-details { flex: 1; min-width: 0; }
.proc-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: .25rem 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proc-action-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Body layout */
.proc-body {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 1.25rem;
  align-items: start;
}
.ad-sky { position: sticky; top: 1rem; }
.proc-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* Countdown card */
.countdown-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .4s;
}
.countdown-card.countdown-done { border-color: rgba(46,204,113,.4); }

.countdown-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}
.countdown-svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: url(#grad) var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear;
}
/* fallback gradient via CSS */
.countdown-card:not(.countdown-done) .ring-fill { stroke: var(--accent); }
.countdown-card.countdown-done        .ring-fill { stroke: var(--success); }

.countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdown-done .countdown-num {
  background: linear-gradient(135deg, var(--success), #26d0a0);
  -webkit-background-clip: text;
  background-clip: text;
}

.countdown-heading { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.countdown-sub     { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.opt-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.opt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width .9s linear;
}

/* Download reveal */
.download-reveal {
  text-align: center;
  transition: opacity .3s;
}
.reveal-ready .btn-final { animation: pulse-btn .6s ease; }
@keyframes pulse-btn {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.btn-final {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  box-shadow: 0 4px 24px rgba(108,99,255,.45);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  margin-bottom: .6rem;
}
.btn-final:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-final:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(108,99,255,.6); }

.download-note { font-size: .75rem; color: var(--text-muted); }

/* DL progress card */
.dl-progress-card { padding: 1.25rem 1.5rem; animation: slideIn .25s ease; }
.dl-prog-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.dl-fname {
  font-size: .82rem;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-open-file {
  display: inline-block;
  margin-top: .75rem;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: .88rem;
  font-weight: 700;
  padding: .6rem 1.25rem;
  text-decoration: none;
  transition: background .15s;
}
.btn-open-file:hover { background: rgba(46,204,113,.22); }

.btn-convert-another {
  display: inline-block;
  margin-top: .75rem;
  margin-left: .5rem;
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.35);
  border-radius: var(--radius-sm);
  color: #a89fff;
  font-size: .88rem;
  font-weight: 700;
  padding: .6rem 1.25rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-convert-another:hover { background: rgba(108,99,255,.22); transform: translateY(-1px); }
.btn-convert-another.hidden { display: none; }

/* ── Trimmer ── */
.trimmer-card { padding: 1.5rem; }

.trimmer-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.trimmer-icon { font-size: 1.6rem; flex-shrink: 0; }
.trimmer-title { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.trimmer-hint  { font-size: .78rem; color: var(--text-muted); }

/* Toggle switch */
.trimmer-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}
.trimmer-toggle input { display: none; }
.toggle-track {
  width: 36px; height: 20px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  position: relative;
  transition: background .2s;
}
.trimmer-toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.trimmer-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-label { font-size: .82rem; font-weight: 600; }

/* Trim time row */
.trim-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  font-size: .82rem;
}
.trim-time-label { font-weight: 700; min-width: 36px; }
.trim-window-badge {
  background: rgba(108,99,255,.15);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: 50px;
  color: #a89cff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .75rem;
}

/* Draggable track */
.trimmer-track-wrap { padding: 0 8px; }
.trimmer-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  margin: 1.5rem 0;
  cursor: pointer;
}
.trim-range {
  position: absolute;
  top: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(108,99,255,.5);
  pointer-events: none;
}
.trim-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  cursor: grab;
  transition: transform .1s, box-shadow .1s;
  z-index: 2;
}
.trim-handle:hover, .trim-handle.dragging {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(108,99,255,.35), 0 2px 8px rgba(0,0,0,.5);
  cursor: grabbing;
}
.trim-handle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(108,99,255,.5);
}

.trim-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
}
.trim-reset-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .72rem;
  padding: .2rem .65rem;
  transition: all .15s;
}
.trim-reset-btn:hover { border-color: rgba(255,255,255,.3); color: var(--text); }

/* Process page responsive */
@media (max-width: 900px) {
  .proc-body { grid-template-columns: 1fr; }
  .proc-main { min-width: 0; max-width: 100%; overflow-x: hidden; }
  .ad-sky    { display: none; }
  .compress-quality-row { flex-wrap: wrap; gap: .5rem; }
  .compress-quality-label { white-space: normal; }
  .compress-quality-slider { min-width: 0; width: 100%; flex-basis: 100%; order: 2; }
  .compress-quality-val { order: 3; }
  .glass-card { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 560px) {
  .proc-info-card { flex-direction: column; }
  .proc-thumb     { width: 100%; min-width: unset; max-height: 180px; }
  .logo img, .proc-logo img, .site-header .logo img { height: 38px !important; }
}

/* ── Converter Dropdowns ── */
.converter-dropdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.fmt-select {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: .75rem 2.5rem .75rem 1rem;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b82a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  min-width: 140px;
}
.fmt-select:focus { border-color: var(--accent); }
.fmt-select option { background: #1a1d2e; color: var(--text); }

@media (max-width: 640px) {
  .converter-dropdown-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
  }
  .converter-dropdown-wrap .fmt-arr {
    text-align: center;
    flex-shrink: 0;
  }
  .converter-dropdown-wrap .fmt-select {
    min-width: 0;
    width: 100%;
    font-size: .85rem;
    padding: .65rem .5rem .65rem .75rem;
    background-position: right .5rem center;
  }
  .converter-dropdown-wrap .btn-convert {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.btn-convert {
  position: relative;
  background: linear-gradient(135deg, var(--accent), #8e2de2, var(--accent2));
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: .85rem 1.8rem;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 6px 20px rgba(108,99,255,.4);
  margin-left: .5rem;
  overflow: hidden;
  letter-spacing: 0.5px;
  animation: gradientFlow 5s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-convert::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}
.btn-convert:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(108,99,255,.6), 0 0 15px rgba(247,37,133,.4);
}
.btn-convert:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 15px rgba(108,99,255,.3); }

/* ── Share Section ── */
.share-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.share-buttons {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.share-btn {
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem .85rem;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-wa { background: #25D366; }
.share-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-fb { background: #1877F2; }
.share-gm { background: #EA4335; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col-title {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-popular {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-popular-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  margin-bottom: 1.4rem;
}
.footer-popular-links a {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-popular-links a:hover { color: rgba(255,255,255,.85); }

.footer-popular-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.fpill {
  display: inline-block;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.fpill:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}


/* ── NAV ── */
    .lp-nav {
      background: #fff;
      border-bottom: 1px solid #eee;
      padding: 12px 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,.07);
    }
    .lp-nav-logo a {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }
    .lp-nav-logo img { height: 42px; width: 42px; object-fit: cover; object-position: left center; display: block; flex-shrink: 0; }
    .lp-nav-brand {
      font-size: 1.35rem;
      font-weight: 900;
      color: #6c3fff;
      letter-spacing: -.03em;
    }
    .lp-nav-links { display: flex; gap: 28px; align-items: center; }
    .lp-nav-links a {
      text-decoration: none;
      color: #1a1a2e;
      font-size: .88rem;
      font-weight: 700;
      transition: color .2s;
      padding: 4px 0;
      border-bottom: 2px solid transparent;
    }
    .lp-nav-links a:hover { color: #6c3fff; border-bottom-color: #6c3fff; }
    .lp-nav-report {
      background: #ef4444; color: #fff !important; border-radius: 8px;
      padding: 6px 14px !important; border-bottom: none !important;
    }
    .lp-nav-report:hover { background: #dc2626 !important; color: #fff !important; border-bottom: none !important; }
    @media(max-width:640px) { .lp-nav-links { display: none; } .lp-nav-brand { font-size:1.1rem; } }

/* ── FOOTER ── */
    .lp-footer { background: #1a1a2e; color: #a0aec0; padding: 52px 24px 24px; }
    .lp-footer-logo {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 36px; justify-content: center;
    }
    .lp-footer-logo img { height: 42px; width: 42px; object-fit: cover; object-position: left center; }
    .lp-footer-logo span { font-size: 1.25rem; font-weight: 900; color: #c4b5fd; }
    .lp-footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 32px;
      max-width: 1120px;
      margin: 0 auto 36px;
    }
    .lp-footer-col-title { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
    .lp-footer-links { list-style: none; }
    .lp-footer-links li { margin-bottom: 8px; }
    .lp-footer-links a { color: #a0aec0; text-decoration: none; font-size: .8rem; transition: color .2s; }
    .lp-footer-links a:hover { color: #c4b5fd; }
    .lp-footer-bottom {
      text-align: center; font-size: .75rem; color: #555;
      border-top: 1px solid #2d2d4e; padding-top: 20px; max-width: 1120px; margin: 0 auto;
    }
    .lp-footer-popular { max-width: 1120px; margin: 0 auto 32px; }
    .lp-footer-popular-label { font-size: .7rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
    .lp-footer-popular-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
    .lp-footer-popular-links a { color: #666; text-decoration: none; font-size: .75rem; transition: color .2s; }
    .lp-footer-popular-links a:hover { color: #c4b5fd; }
    .lp-footer-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
    .lp-footer-pill {
      color: #a0aec0; text-decoration: none; font-size: .7rem;
      background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
      border-radius: 100px; padding: 3px 10px; transition: all .2s;
    }
    .lp-footer-pill:hover { background: rgba(124,58,237,.3); color: #c4b5fd; }

/* ── STATIC APP HEADER ── */
.static-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 64px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10000;
}
.sah-left a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sah-left img { height: 38px; width: 38px; object-fit: cover; object-position: left center; flex-shrink: 0; }
.sah-left span.sah-brand { font-size: 1.25rem; font-weight: 900; color: #6c3fff; letter-spacing: -0.03em; }
.sah-right { display: flex; gap: 12px; align-items: center; }
.sah-right a {
  text-decoration: none; font-size: 0.88rem; font-weight: 700; color: #1a1a2e;
  padding: 8px 16px; border-radius: 8px; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.sah-right a:hover { background: rgba(108, 63, 255, 0.1); color: #6c3fff; }

/* ── SEO CONTENT SECTION ── */
.seo-section {
  background: #0f172a !important;
  padding: 64px 24px !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  color: #cbd5e1 !important;
}
.seo-inner {
  max-width: 1000px;
  margin: 0 auto;
  color: #cbd5e1;
}
.seo-inner > h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.seo-inner > p {
  font-size: 1rem;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 0 40px;
  max-width: 780px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}
.seo-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px 20px;
}
.seo-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 10px;
}
.seo-card p {
  font-size: .875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}
.seo-faq h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 4px 0;
}
.faq-item summary {
  font-size: .95rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: #7c3aed;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  font-size: .9rem;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 0 16px;
  padding: 0 4px;
}
@media (max-width: 600px) {
  .seo-section { padding: 44px 16px; }
  .seo-inner > h2 { font-size: 1.3rem; }
  .seo-grid { grid-template-columns: 1fr; }
}
.seo-faq-more { font-size: .85rem; color: #64748b; margin: 20px 0 0; padding: 0 4px; }
.seo-faq-more a { color: #7c3aed; text-decoration: none; font-weight: 600; }
.seo-faq-more a:hover { text-decoration: underline; }

/* ── DARK MODE TOGGLE ── */
.theme-toggle-btn {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,.13);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.theme-toggle-btn:hover { background: rgba(108,63,255,.08); border-color: #6c3fff; }

html.dark-mode .theme-toggle-btn { border-color: rgba(255,255,255,.22); }
html.dark-mode .theme-toggle-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }

html.dark-mode .static-app-header {
  background: rgba(15,23,42,.96) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
html.dark-mode .sah-right a { color: #e2e8f0 !important; }
html.dark-mode .sah-right a:hover { background: rgba(255,255,255,.08) !important; color: #818cf8 !important; }
html.dark-mode .sah-brand { color: #818cf8 !important; }
