/* ============================================================
   Media-Convert — Master Stylesheet
   Shared across all pages: home, YouTube, Instagram
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg: #F8FAFC;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --card2: #F1F5F9;
  --border: #E2E8F0;
  --border2: #CBD5E1;
  --accent: #7C3AED;
  --accent-h: #6D28D9;
  --accent2: #EC4899;
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --text: #0F172A;
  --text2: #334155;
  --muted: #64748B;
  --muted2: #94A3B8;
  --yt: #FF0000;
  --ig: #dc2743;
  --ig-grad: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

p {
  line-height: 1.7;
  color: var(--text2);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--accent-h);
}

/* ── Gradient text ──────────────────────────────────────── */
.grad {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Instagram accent red */
.accent { color: #dc2743; }

/* ── BG Glow ────────────────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(124, 58, 237, .055) 0%, transparent 65%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  animation: bgPulse 7s ease-in-out infinite alternate;
}

.bg-glow::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, .035) 0%, transparent 65%);
  bottom: -100px;
  right: -80px;
  animation: bgPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes bgPulse {
  from {
    opacity: .5
  }

  to {
    opacity: 1;
    transform: scale(1.1) translateX(-50%)
  }
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  /* background: linear-gradient(135deg, var(--accent), var(--accent2)); */
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card2);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(124, 58, 237, .08);
}

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-btn span {
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .25s;
  display: block;
}

.nav-mobile-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-btn.open span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  z-index: 199;
  box-shadow: var(--shadow);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text2);
  font-size: 15px;
}

.nav-mobile-menu a:hover {
  background: var(--card2);
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(24px, 6vw, 42px);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 44px;
}

/* ── Download Box (main unified input) ─────────────────── */
.dl-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

/* Detection bar */
.detect-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .3s ease;
  min-height: 44px;
}

.detect-bar.yt {
  background: rgba(255, 0, 0, .04);
  border-color: rgba(255, 0, 0, .25);
  color: #b91c1c;
}

.detect-bar.ig {
  background: rgba(220, 39, 67, .04);
  border-color: rgba(220, 39, 67, .25);
  color: #9d174d;
}

.detect-bar.err {
  background: rgba(239, 68, 68, .04);
  border-color: rgba(239, 68, 68, .25);
  color: var(--red);
}

.detect-icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.detect-text {
  flex: 1;
}

/* Input row */
.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.url-input-wrap {
  position: relative;
  flex: 1;
}

.url-platform-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}

.url-input {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--card2);
  border-radius: 12px;
  padding: 15px 16px 15px 48px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

.url-input::placeholder {
  color: var(--muted2);
  font-size: 14px;
}

.btn-go {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #5B21B6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Actions row */
.input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

.paste-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.platform-pills {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--muted2);
  transition: all .25s;
}

.pill.yt.on {
  background: rgba(255, 0, 0, .07);
  border-color: rgba(255, 0, 0, .3);
  color: var(--yt);
}

.pill.ig.on {
  background: rgba(220, 39, 67, .07);
  border-color: rgba(220, 39, 67, .3);
  color: var(--ig);
}

/* Error inline */
.err-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}

/* ── Platform Cards ──────────────────────────────────────── */
.platform-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 32px auto 0;
}

@media(max-width:600px) {
  .platform-section {
    grid-template-columns: 1fr;
  }
}

.pf-card {
  border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.pf-card.yt:hover {
  border-color: rgba(255, 0, 0, .35);
}

.pf-card.ig:hover {
  border-color: rgba(220, 39, 67, .35);
}

.pf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pf-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pf-logo.yt {
  background: rgba(255, 0, 0, .08);
}

.pf-logo.ig {
  background: var(--ig-grad);
}

.pf-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.pf-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pf-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted2);
  background: var(--card2);
}

.pf-card.yt .pf-tag {
  border-color: rgba(255, 0, 0, .2);
  color: #b91c1c;
  background: rgba(255, 0, 0, .04);
}

.pf-card.ig .pf-tag {
  border-color: rgba(220, 39, 67, .2);
  color: #9d174d;
  background: rgba(220, 39, 67, .04);
}

.pf-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.pf-card.yt .pf-action {
  color: var(--yt);
}

.pf-card.ig .pf-action {
  color: var(--ig);
}

/* ── Stats ────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
}

.stat-card {
  text-align: center;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 120px;
  transition: transform .25s, border-color .25s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.stat-val {
  font-size: 24px;
  font-weight: 900;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .5px;
}

/* ── Section layout ──────────────────────────────────────── */
.section {
  padding: 72px 24px;
  background: #fff;
}

.section-alt {
  background: var(--bg2);
}

.sec-head {
  text-align: center;
  margin-bottom: 48px;
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── How it works ────────────────────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 20px;
}

.step-arrow {
  color: var(--muted2);
  font-size: 50px;
  padding-top: 28px;
  flex-shrink: 0;
}

.step-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #5B21B6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 6px 22px rgba(124, 58, 237, .3);
}

.step h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Features grid ───────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.feat-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .28s;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(124, 58, 237, .07);
  border: 1px solid rgba(124, 58, 237, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: .95rem;
  margin-bottom: 7px;
}

.feat-card p {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ── Supported types table ───────────────────────────────── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.type-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .22s;
}

.type-card:hover {
  transform: translateY(-3px);
}

.type-platform {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 6px;
}

.type-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.type-ext {
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.yt-ext {
  background: rgba(255, 0, 0, .08);
  color: var(--yt);
}

.ig-ext {
  background: rgba(220, 39, 67, .08);
  color: var(--ig);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
}

.footer-inner {
  padding: 48px 24px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

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

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

.footer-brand .logo {
  text-decoration: none;
  color: var(--text);
}

.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}

.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-footer ul li a {
  font-size: 13px;
  color: #fff;
  transition: color .15s;
}

.site-footer ul li a:hover {
  color: var(--accent);
}

.footer-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.footer-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}

.footer-dl-btn.yt-btn {
  background: rgba(255, 0, 0, .07);
  color: var(--yt);
}

.footer-dl-btn.yt-btn:hover {
  background: rgba(255, 0, 0, .14);
}

.footer-dl-btn.ig-btn {
  background: rgba(220, 39, 67, .07);
  color: var(--ig);
}

.footer-dl-btn.ig-btn:hover {
  background: rgba(220, 39, 67, .14);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(130%);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  max-width: 300px;
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--accent);
}

/* ── Buttons (generic) ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5B21B6);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}

/* ── Utility ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* ────────────────────────────────────────────────────────────
   youtube-video-downloader — page-specific styles (used in youtube-video-downloader/)
   ──────────────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: 13px;
  padding: 22px 160px 22px 54px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

.search-input::placeholder {
  color: var(--muted2);
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  pointer-events: none;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Autocomplete Suggestions */
.suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  display: none;
}

.suggestions-box.show {
  display: block;
}

.suggestion-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid var(--border2);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--card2);
  color: var(--accent);
}

/* Search Results Grid */
.search-results-wrap {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sr-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.sr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.sr-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.sr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}

.sr-card:hover .sr-thumb img {
  opacity: .8;
}

.sr-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.sr-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sr-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sr-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Video card (convert page) */
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.video-thumb-wrap {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.video-thumb-wrap:hover img {
  transform: scale(1.03);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .3);
  opacity: 0;
  transition: opacity .3s;
}

.video-thumb-wrap:hover .play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  transform: scale(.85);
  transition: transform .3s;
}

.video-thumb-wrap:hover .play-btn-circle {
  transform: scale(1);
}

.video-meta {
  padding: 28px 30px;
}

.video-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.video-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.video-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 26px;
  transition: color .2s;
}

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

.video-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.channel-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* Tabs */
.tab-row {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Quality table */
.q-table-wrap {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-top: none;
}

.q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.q-table thead tr {
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}

.q-table thead th {
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  color: var(--muted);
  text-transform: uppercase;
}

.q-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.q-table tbody tr:last-child {
  border-bottom: none;
}

.q-table tbody tr:hover {
  background: rgba(124, 58, 237, .03);
}

.q-table tbody tr.unavailable {
  opacity: .4;
}

.q-table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
}

.q-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.q-label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
}

.q-height {
  font-size: 14px;
  font-weight: 700;
}

.q-format {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text2);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  display: inline-block;
}

.q-size {
  color: var(--muted);
  font-size: 13px;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .7px;
  text-transform: uppercase;
  min-width: 34px;
}

.tier-4k {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.tier-2k {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
}

.tier-fhd {
  background: linear-gradient(135deg, #059669, #047857);
}

.tier-hd {
  background: linear-gradient(135deg, #0891B2, #0E7490);
}

.tier-sd {
  background: linear-gradient(135deg, #D97706, #B45309);
}

.tier-low {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.tier-ld {
  background: linear-gradient(135deg, #6B7280, #4B5563);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #5B21B6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .22s;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(124, 58, 237, .15);
}

.btn-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, .25);
}

.btn-dl.audio-btn {
  background: linear-gradient(135deg, var(--green), #047857);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 20px 20px 0 0;
}

.skeleton-title {
  height: 26px;
  width: 78%;
  margin-bottom: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* Download button overlay */
.wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.wait-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.wait-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 40px;
  text-align: center;
  max-width: 430px;
  width: 90%;
  box-shadow: 0 30px 100px rgba(15, 23, 42, .1);
  transform: scale(.94);
  transition: transform .3s;
}

.wait-overlay.show .wait-box {
  transform: scale(1);
}

.wait-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .85s linear infinite;
  margin: 0 auto 22px;
}

.wait-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.wait-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.7;
}

.wait-cancel {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

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

.success-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .2), rgba(6, 182, 212, .1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
}

.progress-container {
  margin-top: 18px;
  text-align: left;
}

.progress-bar-bg {
  background: var(--border);
  border-radius: 99px;
  height: 9px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width .2s ease-out;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.progress-percent {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

.progress-details {
  display: flex;
  gap: 5px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  font-size: 12px;
}

.progress-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.progress-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, .5)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0)
  }
}

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

/* Error & loading states */
.error-state {
  text-align: center;
  padding: 60px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
}

.error-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.error-state p {
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 22px;
}

.error-banner {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #DC2626;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin: 0 auto 22px;
  max-width: 720px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ────────────────────────────────────────────────────────────
   InstaGet — page-specific styles (used in instagram-video-download/)
   ──────────────────────────────────────────────────────────── */
.ig-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 52px 0 60px;
}

.ig-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ig);
  background: rgba(220, 39, 67, .07);
  border: 1px solid rgba(220, 39, 67, .22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}

.ig-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.ig-hero .accent {
  color: var(--ig);
}

.ig-hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.ig-form {
  width: 100%;
}

.ig-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 6px 6px 6px 14px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}

.ig-input-wrap:focus-within {
  border-color: var(--ig);
  box-shadow: 0 0 0 3px rgba(220, 39, 67, .1);
}

.ig-input-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.ig-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  padding: 9px 6px;
  min-width: 0;
}

.ig-input-wrap input::placeholder {
  color: var(--muted2);
}

.ig-input-wrap button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ig-grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}

.ig-input-wrap button:hover {
  opacity: .9;
}

.ig-input-wrap button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.ig-error-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-top: 18px;
  text-align: left;
  color: #b91c1c;
}

.ig-error-box strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.ig-error-box p {
  font-size: 13px;
  color: #dc2626;
  margin: 0;
}

.skel-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-box {
  background: #f3f4f6;
  animation: shimmer 1.5s infinite;
}

.ig-result-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  margin-top: 26px;
  box-shadow: var(--shadow);
  text-align: left;
}

@media(min-width:580px) {
  .ig-result-card {
    flex-direction: row;
  }
}

.result-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  background: #1a1a1a;
  width: 100%;
  min-height: 200px;
}

@media(min-width:580px) {
  .result-thumb-wrap {
    width: 220px;
    min-height: 220px;
  }
}

.result-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .3s;
}

.result-thumb-wrap img.loaded {
  opacity: 1;
}

.result-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-primary {
  background: var(--ig-grad);
  color: #fff;
}

.badge-dark {
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-family: monospace;
}

.badge-green {
  background: #16a34a;
  color: #fff;
}

.result-info {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-user {
  font-size: 12px;
  font-weight: 700;
  color: var(--ig);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.result-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.formats-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 7px;
}

.formats-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.no-formats {
  font-size: 14px;
  color: var(--muted);
  background: var(--card2);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.format-row:hover {
  border-color: var(--ig);
  background: rgba(220, 39, 67, .04);
}

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

.format-icon {
  width: 34px;
  height: 34px;
  background: rgba(220, 39, 67, .08);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig);
  flex-shrink: 0;
}

.format-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.format-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  margin-top: 1px;
}

.format-dl {
  width: 30px;
  height: 30px;
  background: rgba(220, 39, 67, .08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.format-row:hover .format-dl {
  background: var(--ig-grad);
  color: #fff;
}

.ig-q-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}

.q-4k {
  background: #7c3aed;
  color: #fff;
}

.q-hd {
  background: #0891b2;
  color: #fff;
}

.q-best {
  background: #16a34a;
  color: #fff;
}

.q-img {
  background: #d97706;
  color: #fff;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

.spinner-sm {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(220, 39, 67, .25);
  border-top-color: var(--ig);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Section (shared) ────────────────────────────────────── */
.ig-section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ig-sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.ig-sec-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.ig-sec-head p {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.ig-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width:620px) {
  .ig-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ig-step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.ig-step-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(220, 39, 67, .15);
  display: block;
  margin-bottom: 8px;
}

.ig-step-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.ig-step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.ig-feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

@media(min-width:620px) {
  .ig-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:900px) {
  .ig-feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ig-feat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg2);
  transition: background .15s, box-shadow .15s;
}

.ig-feat-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.ig-feat-icon {
  width: 38px;
  height: 38px;
  background: rgba(220, 39, 67, .08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig);
  flex-shrink: 0;
  margin-top: 2px;
}

.ig-feat-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.ig-feat-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.ig-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media(min-width:580px) {
  .ig-types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ig-type-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ig-type-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.ig-type-ext {
  font-size: 14px;
  font-family: monospace;
  font-weight: 600;
  color: var(--ig);
  background: rgba(220, 39, 67, .07);
  padding: 2px 8px;
  border-radius: 4px;
}

.faq-container {
  max-width: 720px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 9px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: background .15s;
}

.faq-item summary:hover {
  background: var(--card2);
}

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

.faq-toggle {
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 12px 18px 15px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.cta-banner {
  background: var(--ig-grad);
  padding: 56px 0;
}

.cta-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 22px;
}

.cta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-tags span {
  font-size: 13px;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-btn {
    display: flex;
  }

  .hero {
    padding: 56px 20px 44px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .step-arrow {
    display: none;
  }

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

  .video-meta {
    padding: 20px;
  }

  .video-title {
    font-size: 1.15rem;
  }

  .wait-box {
    padding: 36px 28px;
  }
}

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

  .hero h1 {
    font-size: 1.85rem;
  }

  .btn-go {
    padding: 13px 18px;
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════
   DOWNLOAD QUALITY TABLE (MODERN DARK DESIGN)
   Based on image specifications - Audio/Video/Full HD tabs
   ═══════════════════════════════════════════════════════════ */

.download-table-container {
  background: #0a0e27;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  margin: 24px 0;
  max-width: 1000px;
}

/* Tab Navigation */
.quality-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

.quality-tab {
  flex: 1;
  text-align: center;
  padding: 18px 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.quality-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background .3s;
}

.quality-tab:hover {
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .03);
}

.quality-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.quality-tab.active::after {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.quality-tab svg {
  width: 20px;
  height: 20px;
}

/* Quality Table */
.quality-table {
  width: 100%;
  border-collapse: collapse;
}

.quality-table thead {
  background: rgba(255, 255, 255, .03);
  border-bottom: 2px solid rgba(255, 255, 255, .08);
}

.quality-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .6);
}

.quality-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .2s;
}

.quality-table tbody tr:hover {
  background: rgba(255, 255, 255, .04);
}

.quality-table tbody tr:last-child {
  border-bottom: none;
}

.quality-table td {
  padding: 20px 24px;
  color: #fff;
  font-size: 15px;
  vertical-align: middle;
}

.quality-table td:first-child {
  font-weight: 700;
  font-size: 16px;
}

.quality-table td:nth-child(2) {
  color: rgba(255, 255, 255, .7);
  font-family: 'Inter', monospace;
}

.quality-table td:last-child {
  text-align: right;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(236, 72, 153, .4);
  text-decoration: none;
  font-family: inherit;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(236, 72, 153, .6);
  color: #fff;
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

/* Tab Panel */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .quality-tab {
    padding: 14px 16px;
    font-size: 13px;
  }
  
  .quality-table th,
  .quality-table td {
    padding: 14px 16px;
    font-size: 13px;
  }
  
  .btn-download {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .quality-tabs {
    flex-direction: column;
  }
  
  .quality-tab::after {
    bottom: 0;
    right: auto;
    top: 0;
    width: 2px;
    height: 100%;
  }
  
  .quality-tab.active::after {
    background: linear-gradient(180deg, #ec4899, #8b5cf6);
  }
  
  .quality-table th:nth-child(2),
  .quality-table td:nth-child(2) {
    display: none;
  }
}

/* Footer styles optimization */
.footer-wave {
  line-height: 0;
  display: block;
  height: 60px;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-body {
  background: #0F172A;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding: 56px 20px 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-logo-text span {
  color: var(--accent2);
}

.footer-tagline {
  font-size: 13.5px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-badge {
  font-size: 11px;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 99px;
  padding: 3px 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  opacity: .5;
}

.footer-links a:hover {
  color: #fff;
}

.footer-cta-col {
  display: flex;
  flex-direction: column;
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}

.footer-cta-btn .arrow {
  margin-left: auto;
  opacity: .6;
  flex-shrink: 0;
}

.footer-cta-btn:hover {
  transform: translateY(-1px);
}

.footer-cta-btn.yt {
  background: rgba(255, 0, 0, .12);
  border: 1px solid rgba(255, 0, 0, .25);
  color: #FCA5A5;
}

.footer-cta-btn.yt:hover {
  background: rgba(255, 0, 0, .2);
  color: #fff;
}

.footer-cta-btn.ig {
  background: rgba(220, 39, 67, .12);
  border: 1px solid rgba(220, 39, 67, .25);
  color: #FCA5A5;
}

.footer-cta-btn.ig:hover {
  background: rgba(220, 39, 67, .22);
  color: #fff;
}

.footer-powered {
  font-size: 12px;
  color: #475569;
  margin-top: auto;
  padding-top: 12px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color .2s;
}

.footer-bottom-links a:hover {
  color: #94A3B8;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 16px 28px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-cta-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
