/* ============================================================
   EasyConvert design system v4 — "deep space aurora"
   Tokens, base, components. Shared by every page.
   ============================================================ */

:root {
  /* palette */
  --bg: #070a13;
  --bg-elev: #0c101e;
  --panel: rgba(22, 27, 48, .62);
  --panel-solid: #151a30;
  --panel2: rgba(31, 37, 66, .75);
  --panel2-solid: #1e2440;
  --border: rgba(148, 163, 216, .14);
  --border-strong: rgba(148, 163, 216, .26);
  --accent: #7c6af0;
  --accent2: #2dd4cd;
  --accent-soft: rgba(124, 106, 240, .14);
  --accent2-soft: rgba(45, 212, 205, .12);
  --grad: linear-gradient(135deg, #8b7cf7 0%, #6c5ce7 35%, #2dd4cd 100%);
  --grad-flat: linear-gradient(90deg, #8b7cf7, #2dd4cd);
  --text: #f1f3fc;
  --muted: #a3abc8;
  --faint: #6e7694;
  --ok: #2fd49d;
  --err: #ff8585;

  /* shape + depth */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -18px rgba(3, 5, 18, .85), 0 8px 24px -12px rgba(3, 5, 18, .7);
  --shadow-pop: 0 32px 90px -20px rgba(3, 5, 18, .95);
  --glow-accent: 0 10px 36px -10px rgba(124, 106, 240, .55);
  --glow-accent2: 0 10px 36px -10px rgba(45, 212, 205, .45);
  --ring: #9b8df5;

  /* type */
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 48px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* aurora backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 540px at 12% -8%, rgba(108, 92, 231, .22), transparent 62%),
    radial-gradient(820px 520px at 88% -12%, rgba(45, 212, 205, .14), transparent 60%),
    radial-gradient(720px 600px at 50% 112%, rgba(108, 92, 231, .12), transparent 64%),
    var(--bg);
}
/* faint dot grid for texture */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(163, 171, 200, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 520px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 520px);
}

::selection { background: rgba(124, 106, 240, .4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

button, select, input { font-family: inherit; }

/* ---------------- header ---------------- */
header.site {
  width: 100%; max-width: 880px;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 0;
  margin-bottom: clamp(28px, 6vh, 56px);
}
header.site img {
  width: 36px; height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px -4px rgba(108, 92, 231, .55);
}
header.site .brand {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
  text-decoration: none;
  background: var(--grad-flat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#probar {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
  font-size: .85rem; color: var(--muted);
}
#probar .pill {
  background: var(--grad-flat);
  color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  font-size: .74rem; letter-spacing: .8px; display: none;
  box-shadow: var(--glow-accent);
}
#probar a {
  color: var(--text); cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: .82rem;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
#probar a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--glow-accent);
  transform: translateY(-1px);
}

/* ---------------- hero ---------------- */
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-align: center;
  background: linear-gradient(100deg, #fff 10%, #c9c2ff 45%, #7de8e3 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
  max-width: 820px;
  animation: rise .6s cubic-bezier(.22,1,.36,1) both;
}
.sub {
  color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 44px);
  text-align: center; max-width: 620px;
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  line-height: 1.6;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .07s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- main converter card ---------------- */
.card {
  width: 100%; max-width: 680px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-card);
  position: relative;
  animation: rise .6s cubic-bezier(.22,1,.36,1) .14s both;
}
/* gradient hairline along the top edge of the card */
.card::before {
  content: "";
  position: absolute; top: -1px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 141, 245, .65), rgba(45, 212, 205, .55), transparent);
  pointer-events: none;
}

/* ---------------- drop zone ---------------- */
#dropzone {
  --dz-border: rgba(148, 163, 216, .35);
  position: relative;
  border: 1.5px dashed var(--dz-border);
  border-radius: var(--r-md);
  padding: clamp(30px, 6vw, 48px) 20px;
  text-align: center; cursor: pointer;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(124, 106, 240, .07), transparent 70%);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s;
}
#dropzone:hover {
  border-color: var(--accent);
  background-color: rgba(124, 106, 240, .07);
  box-shadow: inset 0 0 0 1px rgba(124, 106, 240, .25), 0 0 0 4px rgba(124, 106, 240, .07);
}
#dropzone.drag {
  border-color: var(--accent2);
  border-style: solid;
  background-color: rgba(45, 212, 205, .08);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 205, .4), 0 0 0 6px rgba(45, 212, 205, .1), var(--glow-accent2);
  transform: scale(1.012);
}
#dropzone .icon {
  font-size: 1.9rem; line-height: 1;
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(124, 106, 240, .22), rgba(45, 212, 205, .14));
  border: 1px solid rgba(155, 141, 245, .3);
  box-shadow: 0 8px 24px -8px rgba(124, 106, 240, .5);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
#dropzone:hover .icon, #dropzone.drag .icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px -8px rgba(124, 106, 240, .65);
}
#dropzone p { color: var(--muted); font-size: .95rem; max-width: 420px; margin: 0 auto; }
#dropzone strong { color: var(--text); font-size: 1.06rem; display: block; margin-bottom: 4px; }
#fileinput { display: none; }

/* ---------------- form rows + selects ---------------- */
.row {
  display: flex; gap: 12px; margin-top: 20px;
  align-items: center; flex-wrap: wrap;
}
.row label { color: var(--muted); font-size: .9rem; font-weight: 500; }
select {
  flex: 1; min-width: 150px;
  appearance: none; -webkit-appearance: none;
  background-color: var(--panel2);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a3abc8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 38px 11px 14px;
  font-size: .98rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
select:hover { border-color: var(--accent); }
select:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(155, 141, 245, .25); }
select optgroup, select option { background: var(--bg-elev); color: var(--text); }

/* ---------------- options panel ---------------- */
#optstoggle {
  background: none; border: none; color: var(--accent2); cursor: pointer;
  font-size: .88rem; font-weight: 600; margin-top: 16px;
  padding: 4px 2px; border-radius: 4px;
  transition: color .2s, opacity .2s;
}
#optstoggle:hover { color: #6ee9e3; }
#optspanel {
  display: none; margin-top: 12px;
  background: rgba(10, 13, 26, .55);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px 16px;
}
#optspanel .row { margin-top: 10px; }
#optspanel .row:first-child { margin-top: 2px; }
#optspanel select { background-color: var(--panel2); }
#opt-start, #opt-end {
  width: 130px; background: var(--panel2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
#opt-start:hover, #opt-end:hover { border-color: var(--accent); }
#opt-start:focus-visible, #opt-end:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(155, 141, 245, .25); }
#opt-start::placeholder, #opt-end::placeholder { color: var(--faint); }

/* ---------------- queue ---------------- */
#queue { margin-top: 4px; }
#queue:not(:empty) { margin-top: 18px; }
.qitem {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 15px; margin-top: 10px;
  animation: rise .35s cubic-bezier(.22,1,.36,1) both;
}
.qtop { display: flex; align-items: center; gap: 10px; }
.qname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 500; }
.qsize { color: var(--faint); font-size: .8rem; white-space: nowrap; }
.qstatus { color: var(--muted); font-size: .8rem; white-space: nowrap; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.qstatus.done { color: var(--ok); font-weight: 600; }
.qstatus.err { color: var(--err); font-weight: 600; }
.qx {
  background: none; border: none; color: var(--faint); cursor: pointer;
  font-size: .95rem; line-height: 1;
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  transition: color .15s, background .15s;
}
.qx:hover { color: var(--err); background: rgba(255, 133, 133, .12); }
.qbar {
  height: 5px; background: rgba(7, 10, 19, .8);
  border-radius: 999px; overflow: hidden; margin-top: 10px;
}
.qfill {
  height: 100%; width: 0%;
  background: var(--grad-flat);
  border-radius: 999px;
  transition: width .25s ease;
}
.qactions { display: flex; gap: 16px; margin-top: 9px; font-size: .85rem; flex-wrap: wrap; }
.qactions a {
  color: var(--accent2); text-decoration: none; cursor: pointer; font-weight: 600;
  transition: color .15s;
}
.qactions a:hover { color: #6ee9e3; text-decoration: underline; text-underline-offset: 3px; }
.qpreview { margin-top: 10px; }
.qpreview video, .qpreview img { max-width: 100%; border-radius: var(--r-sm); max-height: 320px; border: 1px solid var(--border); }
.qpreview audio { width: 100%; }

/* ---------------- primary button ---------------- */
#convert {
  width: 100%; margin-top: 22px; padding: 15px 18px;
  font-size: 1.04rem; font-weight: 700; letter-spacing: .01em;
  color: #fff;
  background: var(--grad);
  background-size: 150% 150%;
  border: none; border-radius: var(--r-md); cursor: pointer;
  box-shadow: var(--glow-accent), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s, box-shadow .2s, background-position .35s, filter .2s;
}
#convert:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 80% 50%;
  box-shadow: 0 16px 44px -10px rgba(124, 106, 240, .65), inset 0 1px 0 rgba(255,255,255,.18);
}
#convert:active:not(:disabled) { transform: translateY(0); filter: brightness(.96); }
#convert:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
#convert.dl {
  background: linear-gradient(135deg, #29c98f, #1fb5a4);
  box-shadow: 0 10px 36px -10px rgba(47, 212, 157, .5), inset 0 1px 0 rgba(255,255,255,.18);
}
#convert.dl:hover:not(:disabled) {
  box-shadow: 0 16px 44px -10px rgba(47, 212, 157, .6), inset 0 1px 0 rgba(255,255,255,.18);
}

#status { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }
#cancelbtn {
  display: none; margin: 14px auto 0;
  background: none; border: 1px solid var(--border-strong); color: var(--muted);
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 500;
  transition: color .2s, border-color .2s, background .2s;
}
#cancelbtn:hover { color: var(--err); border-color: var(--err); background: rgba(255, 133, 133, .08); }
#freecount { margin-top: 12px; color: var(--faint); font-size: .8rem; text-align: center; }
.error { color: var(--err) !important; }

#zipall {
  display: none; width: 100%; margin-top: 12px; padding: 12px;
  font-weight: 600; color: var(--accent2); background: none;
  border: 1px solid rgba(45, 212, 205, .5); border-radius: var(--r-md); cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
#zipall:hover { background: var(--accent2-soft); box-shadow: var(--glow-accent2); }

/* ---------------- paywall modal ---------------- */
#paywall {
  display: none; position: fixed; inset: 0;
  background: rgba(4, 6, 14, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50; align-items: center; justify-content: center; padding: 16px;
}
.pwcard {
  background: linear-gradient(180deg, rgba(30, 36, 64, .92), rgba(18, 22, 41, .96));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px; max-width: 430px; width: 100%;
  box-shadow: var(--shadow-pop);
  text-align: center; position: relative;
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pwcard::before {
  content: "";
  position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 141, 245, .7), transparent);
}
.pwcard h2 {
  margin-bottom: 6px; font-size: 1.5rem; letter-spacing: -.02em;
  background: var(--grad-flat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pwreason { color: var(--err); font-size: .9rem; margin-bottom: 12px; min-height: 1.1em; }
.pwprice { font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.pwprice span { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.pwcard ul { list-style: none; margin: 16px 0 22px; color: var(--muted); font-size: .95rem; }
.pwcard ul li { margin: 8px 0; padding-left: 24px; position: relative; text-align: left; }
.pwcard ul li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700;
}
#buybtn {
  width: 100%; padding: 14px; font-size: 1rem; font-weight: 700; color: #fff;
  background: var(--grad);
  border: none; border-radius: var(--r-md); cursor: pointer;
  box-shadow: var(--glow-accent), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s, box-shadow .2s;
}
#buybtn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(124, 106, 240, .65), inset 0 1px 0 rgba(255,255,255,.18); }
.linkbtn {
  background: none; border: none; color: var(--accent2); cursor: pointer;
  font-size: .88rem; font-weight: 500; margin-top: 16px;
  transition: color .2s;
}
.linkbtn:hover { color: #6ee9e3; }
#keyentry { display: none; margin-top: 16px; }
#keyinput {
  width: 100%; background: rgba(7, 10, 19, .7); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
#keyinput::placeholder { color: var(--faint); }
#keyinput:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(155, 141, 245, .25); }
#activatebtn {
  width: 100%; margin-top: 10px; padding: 12px; font-weight: 700; color: #04241a;
  background: var(--ok); border: none; border-radius: var(--r-sm); cursor: pointer;
  transition: filter .2s, transform .15s;
}
#activatebtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
#keymsg { margin-top: 12px; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
#closepw {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--faint); font-size: 1.05rem; cursor: pointer;
  width: 34px; height: 34px; border-radius: 10px;
  transition: color .15s, background .15s;
}
#closepw:hover { color: var(--text); background: rgba(148, 163, 216, .12); }

/* ---------------- content sections ---------------- */
.features, .compare, .homefaq, .seo, .poplinks {
  width: 100%; max-width: 880px;
}
.features, .compare, .homefaq { margin-top: clamp(56px, 10vh, 88px); }

.features h2, .compare h2, .homefaq h2 {
  color: var(--text);
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  font-weight: 800; letter-spacing: -.025em;
  margin-bottom: 26px; text-align: center;
}

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.fcard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px -16px rgba(3, 5, 18, .9), 0 0 0 1px rgba(124, 106, 240, .12);
}
.fcard .fi {
  font-size: 1.3rem; line-height: 1;
  width: 46px; height: 46px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(124, 106, 240, .18), rgba(45, 212, 205, .1));
  border: 1px solid rgba(155, 141, 245, .22);
}
.fcard h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 7px; }
.fcard p { color: var(--muted); font-size: .89rem; line-height: 1.6; }

/* comparison table */
.compare { overflow-x: auto; }
.compare table {
  width: 100%; min-width: 560px;
  border-collapse: separate; border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 13px 18px; text-align: left; font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child td { border-bottom: none; }
.compare th {
  color: var(--text); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(31, 37, 66, .8);
}
.compare th:nth-child(2) { color: #b9aef9; }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare td.yes { color: var(--ok); font-weight: 600; }
.compare td.no { color: var(--err); }

/* FAQ accordion */
.homefaq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0; margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.homefaq details[open] { border-color: rgba(155, 141, 245, .35); }
.homefaq summary {
  cursor: pointer; color: var(--text); font-size: .96rem; font-weight: 600;
  padding: 16px 48px 16px 20px;
  list-style: none; position: relative;
  transition: color .2s, background .2s;
}
.homefaq summary::-webkit-details-marker { display: none; }
.homefaq summary:hover { background: rgba(124, 106, 240, .06); }
.homefaq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2); font-size: 1.15rem; font-weight: 400;
  border: 1px solid var(--border-strong); border-radius: 8px;
  transition: transform .25s, color .2s, border-color .2s;
}
.homefaq details[open] summary::after { transform: rotate(45deg); border-color: var(--accent2); }
.homefaq p { color: var(--muted); font-size: .9rem; padding: 0 20px 18px; line-height: 1.65; }

/* SEO copy on converter pages */
.seo { margin-top: clamp(56px, 10vh, 80px); color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 760px; }
.seo h2 {
  color: var(--text); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  margin: 30px 0 10px;
}
.seo h2:first-child { margin-top: 0; }
.seo h3 { color: var(--text); font-size: 1.02rem; font-weight: 600; margin: 20px 0 6px; }
.seo ol { margin: 10px 0 10px 22px; }
.seo li { margin: 6px 0; }
.seo li::marker { color: var(--accent2); font-weight: 700; }
.seo strong { color: var(--text); }

/* popular conversions */
.poplinks { margin-top: clamp(48px, 8vh, 64px); }
.poplinks h2 {
  color: var(--text); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.poplinks div { display: flex; flex-wrap: wrap; gap: 9px; }
.poplinks a {
  color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 500;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.poplinks a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ---------------- footer ---------------- */
footer {
  margin-top: clamp(48px, 8vh, 72px);
  width: 100%; max-width: 880px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--faint); font-size: .82rem; text-align: center;
  line-height: 1.8;
}
footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--text); }

/* ---------------- responsive ---------------- */
@media (max-width: 560px) {
  body { padding: 16px 14px 36px; }
  header.site { margin-bottom: 26px; }
  #probar { font-size: .78rem; gap: 8px; }
  #probar a { padding: 6px 12px; }
  .card { border-radius: 18px; }
  .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .row label { font-size: .85rem; }
  select { width: 100%; }
  #opt-start, #opt-end { width: 100%; }
  .qstatus { min-width: 60px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
