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

:root {
  --bg: #0b0d12;
  --surface: rgba(20, 24, 32, 0.75);
  --surface-solid: #141820;
  --surface-2: #1a1f2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text: #f3f5f9;
  --muted: #9aa3b5;
  --dim: #6b7389;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #a855f7;
  --accent-2: #ec4899;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.3);
  --danger: #ef4444;
  --warn: #f59e0b;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: 680px;
  --wrap-wide: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--sm { width: min(100% - 32px, 560px); }
.wrap--wide { width: min(100% - 32px, var(--wrap-wide)); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ── Background ── */
.page-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}

.page-bg__orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
}

.page-bg__orb--1 {
  width: 560px; height: 560px; top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}

.page-bg__orb--2 {
  width: 420px; height: 420px; bottom: 5%; right: -120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
}

.page-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.header, main, .footer { position: relative; z-index: 1; }

/* ── Instagram in-app browser wall ── */
.inapp-wall {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

html.in-app-browser .inapp-wall { display: flex; }

html.in-app-browser .page-bg,
html.in-app-browser .header,
html.in-app-browser main,
html.in-app-browser .footer,
html.in-app-browser #toast {
  display: none !important;
}

html.in-app-browser { overflow: hidden; }

.inapp-wall__card {
  width: min(100%, 340px);
  padding: 0 4px;
  text-align: center;
}

.inapp-wall__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.inapp-wall__lead {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.45;
  max-width: 30ch;
  margin-inline: auto;
}

.inapp-wall__lead strong { color: var(--muted); font-weight: 600; }

.inapp-wall__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.inapp-wall__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  word-break: break-all;
  user-select: all;
  line-height: 1.3;
}

.inapp-wall__copy {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.inapp-wall__copy:hover { opacity: 0.9; }

.inapp-wall__copy--done {
  background: var(--success) !important;
}

.inapp-wall__tip {
  margin: 0;
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.45;
}

.inapp-wall__tip strong { color: var(--muted); font-weight: 600; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.topbar--scrolled {
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wrap-wide); width: min(100% - 32px, var(--wrap-wide)); margin-inline: auto;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
}

.brand__icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--gradient);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.brand__icon svg { width: 18px; height: 18px; color: #fff; }

.brand__accent {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.header__nav { display: flex; gap: 4px; }

.header__nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.header__nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ── Hero ── */
.hero { padding: 48px 0 72px; }

.hero__inner { display: flex; flex-direction: column; gap: 28px; }

.hero__intro { text-align: center; }

.chip {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.22);
}

.hero__intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero__intro p {
  color: var(--muted); font-size: 1.05rem; max-width: 480px; margin-inline: auto;
}

/* ── Tool card ── */
.tool {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.tool__form { display: flex; flex-direction: column; gap: 18px; }

.tool__input {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool__input:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.tool__yt { width: 22px; height: 22px; flex-shrink: 0; color: #ff0033; }

#url-input {
  flex: 1; min-width: 0; padding: 13px 0;
  border: none; background: transparent;
  color: var(--text); font: inherit; font-size: 0.95rem; outline: none;
}

#url-input::placeholder { color: var(--dim); }

.tool__paste {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: none; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); color: var(--muted);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap;
}

.tool__paste svg { width: 15px; height: 15px; }
.tool__paste:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.tool__formats-label {
  display: block; margin-bottom: 8px;
  font-size: 0.75rem; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 4px; background: var(--surface-solid);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px);
}

.segmented__item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}

.segmented__item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__item svg { width: 18px; height: 18px; }

.segmented__item:hover { color: var(--text); }

.segmented__item:has(input:checked),
.format-chip--active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.tool__quality {
  animation: rise 0.25s ease;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quality-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

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

.quality-opt b {
  font-size: 0.88rem;
  font-weight: 800;
}

.quality-opt small {
  font-size: 0.7rem;
  color: var(--dim);
  font-weight: 600;
}

.quality-opt:hover {
  border-color: var(--border-hover);
}

.quality-opt:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

.quality-opt:has(input:checked) b {
  color: var(--primary-light);
}

.tool__perks {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 28px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border); list-style: none;
}

.tool__perks li {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--dim);
}

.tool__perks svg { width: 15px; height: 15px; color: var(--success); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--radius);
  font-family: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn--main {
  width: 100%; padding: 16px 24px;
  background: var(--gradient); color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 32px var(--primary-glow);
}

.btn--main:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 40px var(--primary-glow); }

.btn--download {
  flex: 1; padding: 14px 22px;
  background: var(--success); color: #fff;
  font-size: 0.95rem; box-shadow: 0 8px 24px var(--success-glow);
}

.btn--download svg { width: 18px; height: 18px; }
.btn--download:hover:not(:disabled) { transform: translateY(-1px); }

.btn--outline {
  padding: 14px 20px; background: transparent;
  color: var(--muted); border: 1px solid var(--border); font-size: 0.92rem;
}

.btn--outline:hover { color: var(--text); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

.btn__text, .cta__label { display: flex; align-items: center; gap: 8px; }
.btn__text svg, .cta__label svg { width: 20px; height: 20px; }

.btn__loader, .cta__spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

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

/* ── Result ── */
.result { animation: rise 0.45s cubic-bezier(0.22,1,0.36,1); }

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

.result__card {
  display: flex; gap: 20px; align-items: center;
  padding: 20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.result__thumb-wrap {
  position: relative; flex-shrink: 0;
  width: 140px; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden;
  background: var(--surface-2);
}

.result__thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.result__tag {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; color: var(--primary-light);
}

.result__info { flex: 1; min-width: 0; }

.result__ready {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--success);
}

.result__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.result__info h2 {
  font-size: 1.05rem; font-weight: 800; line-height: 1.35;
  letter-spacing: -0.02em; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.result__meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }

.result__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.progress {
  margin-top: 12px; padding: 16px 18px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
}

.progress__track {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}

.progress__fill {
  height: 100%; width: 0%; background: var(--gradient);
  border-radius: 999px; transition: width 0.35s ease;
}

.progress__track--busy .progress__fill {
  width: 38%;
  animation: progress-busy 1.35s ease-in-out infinite;
}

@keyframes progress-busy {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

#progress-text { font-size: 0.8rem; font-weight: 600; color: var(--dim); }

/* ── Blocks ── */
.block { padding: 72px 0; }
.block--faq { padding-top: 0; }

.block__head { text-align: center; margin-bottom: 40px; }

.block__head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px;
}

.block__head p { color: var(--muted); font-size: 0.95rem; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: var(--wrap-wide); margin-inline: auto; width: min(100% - 32px, var(--wrap-wide));
}

.cards__item {
  padding: 28px 22px;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.cards__item:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }

.cards__num {
  width: 36px; height: 36px; display: grid; place-items: center;
  margin-bottom: 16px; border-radius: 10px;
  background: var(--gradient); color: #fff;
  font-weight: 800; font-size: 0.95rem;
}

.cards__item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.cards__item p { color: var(--muted); font-size: 0.88rem; }

.faq { display: flex; flex-direction: column; gap: 8px; }

.faq__item {
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

.faq__item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; cursor: pointer;
  font-weight: 700; font-size: 0.92rem; list-style: none;
  transition: background 0.2s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+"; color: var(--dim); font-size: 1.2rem; transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: rgba(255,255,255,0.02); }
.faq__item p { padding: 0 18px 16px; color: var(--muted); font-size: 0.88rem; }

/* ── Footer ── */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dim);
  letter-spacing: -0.01em;
}

.footer__contact-label {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.4;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 2px;
}

.footer__sep {
  color: var(--border);
  font-size: 0.9rem;
  user-select: none;
}

.footer__wa-btn,
.footer__ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

.footer__wa-btn svg,
.footer__ig-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer__wa-btn {
  color: #34d399;
}

.footer__wa-btn:hover {
  color: #6ee7b7;
}

.footer__ig-link {
  color: var(--muted);
}

.footer__ig-link svg {
  color: var(--dim);
}

.footer__ig-link:hover {
  color: var(--text);
}

.footer__ig-link:hover svg {
  color: var(--muted);
}

.footer__legal {
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 34ch;
  opacity: 0.85;
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 10px;
  max-width: min(calc(100vw - 32px), 420px);
  padding: 13px 18px; border-radius: var(--radius);
  background: var(--surface-solid); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
}

.toast.toast--hide { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(12px); } }

.toast__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast--success .toast__dot { background: var(--success); }
.toast--error .toast__dot { background: var(--danger); }
.toast--info .toast__dot { background: var(--primary-light); }

#toast-message { font-size: 0.88rem; font-weight: 600; }

.hidden { display: none !important; }

/* ── Instagram CTA ── */
.btn--instagram {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
  border: none; cursor: pointer;
}

.btn--instagram svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--instagram:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(220, 39, 67, 0.4); color: #fff; }

.btn--instagram-sm {
  padding: 9px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.25);
}

.btn--instagram-sm svg { width: 16px; height: 16px; }

.ig-btn__short { display: none; }

.ig-hint {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 10px 10px 12px;
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.07), rgba(188, 24, 136, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: ig-hint-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ig-hint-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ig-hint__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.28);
}

.ig-hint__icon svg { width: 18px; height: 18px; }

.ig-hint__content { min-width: 0; }

.ig-hint__title {
  margin: 0 0 1px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ig-hint__text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.35;
}

.ig-hint__text strong {
  color: var(--muted);
  font-weight: 700;
}

.ig-hint__btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.ig-hint__btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
}

.ig-hint__close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ig-hint__close svg { width: 14px; height: 14px; }

.ig-hint__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ── Support hint (download failed) ── */
.support-hint {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 14px;
  animation: ig-hint-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-hint__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  flex-shrink: 0;
}

.support-hint__icon svg { width: 18px; height: 18px; }

.support-hint__title {
  margin: 0 0 2px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.support-hint__text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.4;
}

.support-hint__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-hint__btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.support-hint__btn:hover { transform: translateY(-1px); color: #fff; }

.support-hint__btn--ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
}

.support-hint__btn--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.faq__item a { color: var(--primary-light); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header__nav { display: none; }
  .ig-btn__long { display: none; }
  .ig-btn__short { display: inline; }
  .tool { padding: 22px 18px; }

  .tool__input { flex-wrap: wrap; padding: 8px; }
  .tool__yt { width: 20px; height: 20px; }
  #url-input { width: 100%; order: 1; padding: 10px 4px; }
  .tool__paste { order: 2; margin-left: auto; }

  .result__card { flex-direction: column; align-items: stretch; text-align: center; }
  .result__thumb-wrap { width: 100%; max-height: 180px; aspect-ratio: 16/9; }
  .result__btns { flex-direction: column; }
  .btn--download, .btn--outline { width: 100%; }

  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .segmented { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .tool__perks { flex-direction: column; align-items: center; }
  .ig-hint {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 12px;
    gap: 10px 12px;
  }

  .ig-hint__btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    padding: 10px 14px;
  }

  .ig-hint__close {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .ig-hint { position: relative; }

  .support-hint {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .support-hint__actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
