/* ====================================================
   style.css — Facebook Downloader Theme
   Official Facebook identity (facebook.com, 2026): blue #0064E0 · text #111112 / #1C1E21 · secondary #686A6E
   wash #F0F2F5 · divider #E0E2E4 · light blue #E7F3FF · font Segoe UI Historic / Segoe UI / SF (system) · Helvetica, Arial
   ==================================================== */
:root {
  --blue: #0064E0;
  --blue-2: #1877F2;
  --blue-d: #0056C9;
  --navy: #111112;
  --text: #1C1E21;
  --muted: #686A6E;
  --bg: #F0F2F5;
  --card: #ffffff;
  --line: #E0E2E4;
  --red: #F33E58;
  --green: #31A24C;
  --orange: #F7B125;
  --purple: #8A3FFC;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font: 'Segoe UI Historic', 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-rtl { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.c-blue { color: var(--blue); }
.c-red  { color: var(--red); }

/* ── Header ──────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.97);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  position: relative;
}
.site-logo, .footer-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { max-height: 48px; width: auto; }
.logo-mark {
  width: 50px; height: 50px; border-radius: 50%;
  background: #0064E0;
  color: #fff; display: grid; place-items: center;
  font-size: 30px; box-shadow: 0 6px 16px rgba(0, 100, 224,.35);
  overflow: hidden; padding-top: 8px;
}
.logo-texts { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text { font-size: 21px; font-weight: 700; color: var(--navy); letter-spacing: -.3px; white-space: nowrap; }
.logo-text b { color: var(--blue); font-weight: 700; }
.logo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.main-nav { display: flex; gap: 6px; margin: 0 auto; align-items: center; }
.main-nav a {
  color: var(--navy); padding: 10px 14px; position: relative;
  font-size: 14px; font-weight: 500; transition: color .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.main-nav a i { color: var(--blue); font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -13px;
  height: 3px; border-radius: 3px; background: var(--blue);
}
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-app {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0064E0;
  color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 100, 224, .3);
  transition: transform .2s, box-shadow .2s;
}
.btn-app:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0, 100, 224,.38); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* ── Language Switcher ───────────────────────────── */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--navy); padding: 10px 16px; border-radius: 30px;
  cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0,.05);
  transition: border-color .2s; white-space: nowrap;
}
.lang-btn:hover { border-color: #CED0D4; }
.lang-btn .fa-globe { font-size: 16px; }
.lang-code { letter-spacing: .05em; }
.lang-btn .fa-chevron-down { font-size: 11px; transition: transform .2s; }
.lang-switcher.open .fa-chevron-down { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  background: #fff; border: 1px solid #E4E6EB; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  width: 310px; max-height: 75vh; overflow-y: auto; z-index: 9999; padding: 6px;
  direction: ltr !important; text-align: left !important; unicode-bidi: isolate !important;
}
.lang-switcher.open .lang-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-option {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem;
  color: #1C1E21; font-size: .83rem; transition: background .15s;
  border-radius: 8px; overflow: hidden; direction: ltr; text-align: left;
}
.lang-flag-img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-code-badge { font-size: .68rem; font-weight: 700; color: #8A8D91; letter-spacing: .04em; flex-shrink: 0; }
.lang-native-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-option:hover { background: #F0F2F5; color: #111112; }
.lang-option.active { background: #E7F3FF; color: #0064E0; font-weight: 600; }
.lang-option.active .lang-code-badge { color: #7FB5F5; }

/* ── Hero ─────────────────────────────────────────── */
.fd-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255,.97) 0%, rgba(255, 255, 255,.9) 34%, rgba(255, 255, 255,.35) 58%, rgba(255, 255, 255,.05) 80%),
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(240, 242, 245,.6) 100%),
    var(--hero-bg) center 40% / cover no-repeat,
    linear-gradient(180deg, #CFE5FF, #E7F3FF);
  padding: 34px 24px 110px;
  overflow: hidden;
}
.fd-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center;
  position: relative; z-index: 2;
}
.fd-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 30px; box-shadow: 0 4px 14px rgba(0, 0, 0,.08);
}
.fd-badge i { color: var(--blue); font-size: 18px; }
.fd-hero-title {
  font-size: clamp(34px, 4vw, 56px); line-height: 1.1; font-weight: 700;
  color: var(--navy); letter-spacing: -.5px; margin: 22px 0 18px;
}
.fd-hero-title span { color: var(--blue); }
.fd-hero-desc { font-size: 17px; line-height: 1.6; color: #1C1E21; max-width: 470px; margin-bottom: 26px; }

.form-group-download {
  display: flex; align-items: center; max-width: 620px;
  background: #fff; padding: 7px; border-radius: 60px;
  box-shadow: 0 14px 40px rgba(0, 100, 224, .16);
  border: 1px solid #E4E6EB;
}
.fd-input-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--blue); font-size: 20px; margin-left: 8px;
}
.form-group-download input {
  flex: 1; border: none; padding: 14px 10px; background: transparent;
  font-size: 15px; outline: none; color: #222; min-width: 0; font-family: inherit;
}
.form-group-download input::placeholder { color: #8A8D91; }
.form-group-download button {
  background: #0064E0; color: #fff; border: none;
  padding: 16px 44px; border-radius: 50px; font-size: 17px; font-family: inherit;
  font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s;
  white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 100, 224, .35);
}
.form-group-download button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 100, 224,.45); }
.form-group-download button i { font-size: 20px; }

.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fd-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); border: 1px solid #E4E6EB;
  padding: 8px 11px; border-radius: 10px; font-size: 12px; font-weight: 500; color: var(--navy); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0,.06);
}
.fd-chip i { font-size: 18px; }

/* Hero visual */
.fd-hero-visual { position: relative; height: 470px; }
.fd-float-card {
  position: absolute; background: #fff; padding: 6px; border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}
.fd-float-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.fc-1 { width: 190px; height: 125px; left: 10%; top: 2%; transform: rotate(-12deg); z-index: 1; }
.fc-2 { width: 150px; height: 140px; left: 0; top: 30%; transform: rotate(-8deg); z-index: 2; }
.fc-3 { width: 120px; height: 90px; left: 40%; top: -3%; transform: rotate(8deg); z-index: 1; display: none; }
.fc-4 { width: 190px; height: 130px; right: -2%; top: 44%; transform: rotate(8deg); z-index: 4; }
.fd-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(20,20,30,.55);
  border: 2px solid #fff; color: #fff; display: grid; place-items: center; font-size: 14px; padding-left: 3px;
}
.fd-play.sm { width: 26px; height: 26px; font-size: 9px; border-width: 1.5px; }

.fd-fb-cube {
  position: absolute; left: 15%; top: 46%; z-index: 5;
  width: 135px; height: 135px; border-radius: 30px;
  background: linear-gradient(145deg, #2D88FF 0%, #0064E0 55%, #004BB5 100%);
  color: #fff; display: grid; place-items: end center; font-size: 118px; overflow: hidden;
  transform: rotate(-10deg) perspective(400px) rotateY(14deg);
  box-shadow: 12px 18px 0 -2px #003C93, 0 26px 40px rgba(0, 100, 224, .45), inset 0 3px 0 rgba(255,255,255,.35);
}
.fd-fb-cube i { transform: translate(8px, 14px); }
.fd-fb-cube.sm { width: 110px; height: 110px; font-size: 96px; border-radius: 24px; }

.fd-phone {
  position: absolute; left: 36%; top: 0; z-index: 3;
  width: 250px; height: 470px; border-radius: 40px;
  background: #0d0f16; padding: 10px;
  transform: rotate(9deg);
  box-shadow: 0 30px 50px rgba(0, 0, 0, .35), inset 0 0 0 2px #2a2d38;
}
.fd-phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #0d0f16; border-radius: 20px; z-index: 2;
}
.fd-phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 31px; overflow: hidden; font-size: 10px; color: #1c1e21; }
.fd-ph-status { display: flex; justify-content: space-between; padding: 12px 18px 4px; font-weight: 600; font-size: 10px; }
.fd-ph-status i { font-size: 9px; }
.fd-ph-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; }
.fd-ph-top b { color: var(--blue); font-size: 20px; letter-spacing: -.5px; font-family: 'Segoe UI', Arial, sans-serif; }
.fd-ph-top span { display: flex; gap: 10px; font-size: 14px; }
.fd-ph-stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 6px 10px 8px; border-bottom: 5px solid #F0F2F5; }
.fd-st { position: relative; height: 82px; border-radius: 9px; overflow: hidden; background: #E4E6EB; }
.fd-st img { width: 100%; height: 100%; object-fit: cover; }
.fd-st small { position: absolute; bottom: 4px; left: 4px; right: 4px; color: #fff; font-size: 7px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.fd-st-me { display: grid; place-items: center; color: #8A8D91; font-size: 20px; }
.fd-st-me small { color: #333; text-shadow: none; text-align: center; }
.fd-ph-post { padding: 8px 0; }
.fd-ph-author { display: flex; align-items: center; gap: 7px; padding: 0 10px 7px; }
.fd-ph-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.fd-ph-author b { display: block; font-size: 10px; }
.fd-ph-author small { color: #888; font-size: 8px; }
.fd-ph-author > span { margin-left: auto; font-weight: 700; }
.fd-ph-img { width: 100%; height: 150px; object-fit: cover; }
.fd-ph-stats { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 8px; color: #65676b; border-bottom: 1px solid #F0F2F5; }
.fd-ph-stats i { font-size: 10px; margin-right: 1px; }
.fd-ph-actions { display: flex; justify-content: space-around; padding: 7px 4px; font-size: 9px; color: #65676b; font-weight: 600; }

.fd-bubble { position: absolute; border-radius: 50%; display: grid; place-items: center; color: #fff; z-index: 6; }
.fd-like {
  width: 66px; height: 66px; font-size: 28px; right: 6%; top: 10%;
  background: linear-gradient(180deg, #18AFFF, #0062DF);
  box-shadow: 0 10px 24px rgba(0, 100, 224,.45), inset 0 2px 0 rgba(255,255,255,.3);
}
.fd-like.sm { width: 50px; height: 50px; font-size: 20px; }
.fd-heart {
  width: 42px; height: 42px; font-size: 18px; background: linear-gradient(180deg, #FF6680, #E61739);
  box-shadow: 0 8px 18px rgba(230, 23, 57,.4); border: 3px solid #fff;
}
.fd-heart.h-1 { right: 12%; top: 31%; }
.fd-heart.h-2 { right: 20%; top: 66%; }
.fd-hand {
  font-family: var(--hand); color: #111112; font-weight: 700; line-height: .95;
  position: absolute; z-index: 6;
}
.fd-hand i { color: var(--red); font-size: .55em; }
.fd-hand-hero { right: -4%; bottom: 2%; font-size: 34px; transform: rotate(-14deg); text-align: left; }
.fd-hand-hero::after {
  content: ''; display: block; width: 46px; height: 22px; margin: 8px 0 0 -6px;
  border-bottom: 2px solid #111112; border-radius: 0 0 40px 40px; transform: rotate(-20deg);
}
.fd-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 1; }

/* ── Downloader result / error ───────────────────── */
.downloader-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 3; }
.downloader-container:empty { display: none; }
.error-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff5f5; border: 1px solid #feb2b2;
  border-radius: 14px; padding: 18px 20px; margin: 10px 0 24px;
}
.error-box > i { color: #e53e3e; font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.error-box strong { display: block; color: #c53030; margin-bottom: 4px; }
.error-box p { color: #742a2a; font-size: 14px; }

.result-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; border: 1px solid var(--line); margin: 10px 0 30px;
}
.result-header { margin-bottom: 20px; }
.result-header h3 { font-size: 19px; color: var(--navy); line-height: 1.4; word-break: break-word; }
.result-header p { margin-top: 6px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.result-body { display: flex; gap: 26px; flex-wrap: wrap; }
.video-preview-box { flex: 1; min-width: 260px; position: relative; }
.video-preview-box img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 300px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.platform-badge {
  position: absolute; bottom: 12px; left: 12px; color: #fff; padding: 5px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.download-options-box { flex: 1; min-width: 260px; }
.download-options-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }
.format-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid #E4E6EB; gap: 12px;
}
.format-row:last-child { border-bottom: none; }
.format-info p { font-weight: 600; font-size: 14px; color: var(--navy); }
.format-info span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.no-media-msg { color: var(--muted); font-size: 14px; }
.btn-download, .btn-pin-dl {
  color: #fff !important; padding: 10px 18px; border-radius: 30px;
  background: #0064E0;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity .2s; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 110px;
  box-shadow: 0 6px 14px rgba(0, 100, 224,.25);
}
.btn-download:hover, .btn-pin-dl:hover { opacity: .9; }
.btn-download.loading { opacity: .75; cursor: wait; }
.dl-progress-wrap { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 7px; }
.dl-progress-bar { flex: 1; height: 3px; background: rgba(0,0,0,.08); border-radius: 2px; overflow: hidden; }
.dl-progress-fill { height: 100%; width: 0%; background: #31A24C; border-radius: 2px; box-shadow: 0 0 6px rgba(49, 162, 76,.5); }
.dl-progress-pct { font-size: 11px; font-weight: 600; color: #31A24C; white-space: nowrap; min-width: 30px; text-align: right; }

/* ════════════════════════════════════════════════════════
   Content sections
   ════════════════════════════════════════════════════════ */
.pc-wrapper { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pc-wrapper > section { scroll-margin-top: 90px; }
.fd-panel {
  background: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}
.fd-pill {
  display: inline-block; background: #E7F3FF; color: var(--blue-d);
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px;
}
.fd-pill-white { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0,.06); }
.fd-pill-pink { background: #FFE6EA; color: #E41E3F; }
.fd-h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 10px 0 8px; letter-spacing: -.4px; }
.fd-h2 span { color: var(--blue); }
.fd-sub { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Types */
.fd-types { padding: 10px 0 30px; }
.fd-head { text-align: center; margin-bottom: 26px; }
.fd-types-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.fd-type-card {
  position: relative; background: #fff; border-radius: 18px; padding: 22px 18px 50px;
  border: 1px solid #E4E6EB; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.fd-type-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0,.13); }
.fd-type-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 74px; margin-bottom: 14px; }
.fd-type-icon {
  width: 50px; height: 50px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-size: 22px; flex-shrink: 0; box-shadow: 0 8px 16px rgba(0,0,0,.14);
}
.fd-type-thumbs { position: relative; width: 92px; height: 68px; display: block; }
.fd-type-thumbs img {
  position: absolute; object-fit: cover; border-radius: 6px; border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0,.2);
}
.fd-type-thumbs.n1 img { inset: 0; width: 100%; height: 100%; }
.fd-type-thumbs.n2 img:nth-child(1) { width: 52px; height: 64px; left: 0; top: 4px; transform: rotate(-6deg); }
.fd-type-thumbs.n2 img:nth-child(2) { width: 62px; height: 52px; right: 0; top: 0; }
.fd-type-thumbs.n3 img:nth-child(1) { width: 40px; height: 50px; left: 0; top: 10px; transform: rotate(-8deg); }
.fd-type-thumbs.n3 img:nth-child(2) { width: 42px; height: 50px; left: 26px; top: 0; z-index: 2; }
.fd-type-thumbs.n3 img:nth-child(3) { width: 40px; height: 48px; right: 0; top: 14px; transform: rotate(6deg); }
.fd-type-thumbs.n4 img { width: 44px; height: 32px; }
.fd-type-thumbs.n4 img:nth-child(1) { left: 0; top: 0; }
.fd-type-thumbs.n4 img:nth-child(2) { right: 0; top: 0; }
.fd-type-thumbs.n4 img:nth-child(3) { left: 0; bottom: 0; }
.fd-type-thumbs.n4 img:nth-child(4) { right: 0; bottom: 0; }
.fd-type-thumbs .fd-play { z-index: 3; }
.fd-type-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.fd-type-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.fd-type-arrow {
  position: absolute; right: 16px; bottom: 16px; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; display: grid; place-items: center; font-size: 12px;
}
.t-blue   .fd-type-icon, .t-blue   .fd-type-arrow { background: linear-gradient(145deg, #2D88FF, #0064E0); }
.t-sky    .fd-type-icon, .t-sky    .fd-type-arrow { background: linear-gradient(180deg, #18AFFF, #0062DF); }
.t-red    .fd-type-icon, .t-red    .fd-type-arrow { background: linear-gradient(180deg, #FF6680, #E61739); }
.t-green  .fd-type-icon, .t-green  .fd-type-arrow { background: linear-gradient(145deg, #45BD62, #31A24C); }
.t-orange .fd-type-icon, .t-orange .fd-type-arrow { background: linear-gradient(180deg, #FEEB70, #F7B125); }

/* Why */
.fd-why {
  display: grid; grid-template-columns: 1.25fr 1.6fr 1.1fr; align-items: center; gap: 10px;
  padding: 26px 26px; margin: 10px 0 24px; position: relative; overflow: hidden;
  background: linear-gradient(110deg, #E7F3FF 0%, #F5F9FF 55%, #E7F3FF 100%);
}
.fd-why-intro { padding-right: 24px; border-right: 1px solid #DADDE1; }
.fd-why-intro .fd-h2 { font-size: clamp(22px, 2.1vw, 29px); }
.fd-why-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.fd-why-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fd-why-ic {
  width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--blue);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0,.1);
}
.fd-why-item b { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.fd-why-item small { font-size: 12px; color: var(--muted); }

.fd-collage { position: relative; height: 170px; }
.fd-collage .cl {
  position: absolute; object-fit: cover; border: 4px solid #fff; border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0,.22);
}
.fd-collage-why .c1 { width: 80px; height: 96px; left: 2%; top: 26%; transform: rotate(-14deg); }
.fd-collage-why .c2 { width: 110px; height: 80px; left: 20%; top: 0; transform: rotate(-6deg); }
.fd-collage-why .c3 { width: 82px; height: 92px; left: 46%; top: 2%; transform: rotate(6deg); }
.fd-collage-why .c4 { width: 96px; height: 80px; left: 12%; bottom: 0; transform: rotate(-4deg); }
.fd-collage-why .c5 { width: 86px; height: 84px; right: 6%; bottom: 4%; transform: rotate(10deg); }
.fd-collage-why .fd-fb-cube { left: 40%; top: 30%; }
.fd-collage-why .fd-like { left: 30%; right: auto; top: auto; bottom: 0; }
.fd-hand-why { right: 0; top: 4%; font-size: 22px; transform: rotate(-10deg); text-align: center; }

/* Steps */
.fd-steps {
  display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; align-items: center;
  padding: 26px 28px; margin: 0 0 24px; overflow: hidden;
}
.fd-steps .fd-h2 { font-size: clamp(24px, 2.4vw, 31px); }
.fd-steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; margin-top: 30px; align-items: start; }
.fd-step-ics { display: flex; gap: 10px; margin-bottom: 16px; }
.fd-step-ics span {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 20px; box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.fd-step-ics .n { width: 50px; height: 50px; }
.s-blue   .fd-step-ics span { background: linear-gradient(145deg, #2D88FF, #0064E0); }
.s-purple .fd-step-ics span { background: linear-gradient(145deg, #B07CFF, #8A3FFC); }
.s-green  .fd-step-ics span { background: linear-gradient(145deg, #45BD62, #31A24C); }
.fd-step h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.fd-step p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.fd-step-arrow { color: #8A8D91; font-size: 16px; padding-top: 16px; }
.fd-collage-steps { height: 230px; }
.fd-collage-steps .c1 { width: 120px; height: 88px; left: 4%; top: 6%; transform: rotate(-10deg); }
.fd-collage-steps .c2 { width: 100px; height: 88px; left: 34%; top: 0; transform: rotate(4deg); }
.fd-collage-steps .c3 { width: 108px; height: 110px; left: 0; bottom: 4%; transform: rotate(-6deg); }
.fd-collage-steps .c4 { width: 110px; height: 104px; left: 30%; bottom: 0; transform: rotate(3deg); }
.fd-collage-steps .c5 { width: 96px; height: 120px; right: 2%; top: 22%; transform: rotate(10deg); }
.fd-collage-steps .fd-fb-cube { left: 30%; top: 26%; border-radius: 50%; width: 110px; height: 110px; font-size: 92px; transform: none; box-shadow: 0 0 0 6px #fff, 0 20px 36px rgba(0, 100, 224,.45); }
.fd-hand-steps { right: -2%; top: -4%; font-size: 22px; transform: rotate(-10deg); text-align: center; }

/* FAQ + CTA */
.fd-faq-cta { display: grid; grid-template-columns: 1.12fr 1fr; gap: 22px; margin: 0 0 10px; align-items: stretch; }
.fd-faq { padding: 22px 22px; background: #fff; }
.fd-faq .fd-h2 { font-size: clamp(22px, 2.2vw, 28px); }
.pc-faq-box { margin-top: 18px; }
.pc-faq-item {
  background: #fff; border: 1px solid #E4E6EB; border-radius: 8px;
  margin-bottom: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.pc-faq-item[open] { border-color: #BCD5F9; box-shadow: 0 6px 16px rgba(0, 0, 0,.07); }
.pc-faq-item summary {
  padding: 12px 16px; font-weight: 500; font-size: 13.5px; cursor: pointer; outline: none;
  user-select: none; display: flex; justify-content: space-between; align-items: center;
  list-style: none; color: var(--navy);
}
.pc-faq-item summary::-webkit-details-marker { display: none; }
.pc-faq-item summary::after { content: '+'; font-size: 18px; color: var(--navy); flex-shrink: 0; margin-left: 10px; line-height: 1; }
.pc-faq-item[open] summary::after { content: '−'; color: var(--blue); }
.pc-faq-content { padding: 12px 16px 14px; color: var(--muted); font-size: 13px; line-height: 1.7; border-top: 1px solid #F0F2F5; }

.fd-cta {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 330px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(0, 100, 224,.5), transparent 50%),
    linear-gradient(135deg, #E7F3FF 0%, #8EC1FF 45%, #0064E0 100%);
  padding: 30px; display: flex; align-items: center;
  box-shadow: 0 14px 34px rgba(0, 100, 224,.22);
}
.fd-cta::before {
  content: ''; position: absolute; right: 10px; top: 10px; width: 70px; height: 70px;
  background-image: radial-gradient(#fff 1.5px, transparent 1.6px); background-size: 10px 10px; opacity: .45;
}
.fd-cta-text { position: relative; z-index: 3; max-width: 56%; margin-top: 40px; }
.fd-cta-text h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.fd-cta-text p { font-size: 13.5px; color: #1C1E21; line-height: 1.6; margin-bottom: 20px; }
.fd-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #0064E0;
  color: #fff; padding: 12px 30px; border-radius: 30px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 22px rgba(0, 100, 224,.4); transition: transform .2s;
}
.fd-cta-btn:hover { transform: translateY(-2px); }
.fd-cta-logo {
  position: absolute; left: 30px; top: 30px; z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  background: #0064E0; color: #fff; display: grid; place-items: end center;
  font-size: 46px; overflow: hidden; box-shadow: 0 8px 18px rgba(0, 100, 224,.45);
}
.fd-cta-logo i { transform: translateY(6px); }
.cta-like { left: 150px; right: auto; top: 26px; width: 46px; height: 46px; font-size: 18px; }
.cta-heart { left: 45%; top: 70px; right: auto; }
.fd-cta-phone {
  position: absolute; right: 8%; top: 24px; width: 170px; height: 340px; z-index: 2;
  background: #0d0f16; border-radius: 30px; padding: 8px; transform: rotate(12deg);
  box-shadow: 0 26px 44px rgba(0, 0, 0,.4);
}
.fd-cta-screen {
  width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: #fff;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 4px; padding: 26px 6px 6px;
}
.fd-cta-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.fd-cta-dl {
  position: absolute; right: 4%; bottom: 30%; z-index: 4; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.8); color: #fff;
  display: grid; place-items: center; font-size: 18px; backdrop-filter: blur(4px);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: #18191A;
  color: #B0B3B8; padding: 30px 24px 22px; margin-top: 40px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text b { color: #2D88FF; }
.footer-brand .logo-sub { color: #B0B3B8; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-links a { color: #E4E6EB; font-size: 13px; padding: 2px 14px; transition: color .2s; }
.footer-links a + a { border-left: 1px solid rgba(255,255,255,.25); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; justify-content: flex-end; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #3A3B3C; color: #fff; font-size: 15px; transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--blue); transform: translateY(-2px); }
.footer-bottom { position: relative; text-align: center; margin-top: 16px; padding-bottom: 6px; }
.footer-copy { font-size: 12.5px; color: #B0B3B8; }
.footer-copy .sep { opacity: .45; margin: 0 8px; }
.footer-copy a:hover { color: #fff; }
.fd-hand-footer { right: 0; bottom: -6px; font-size: 24px; color: #fff; transform: rotate(-8deg); }
.fd-hand-footer::after {
  content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #F33E58); transform: rotate(-4deg);
}

/* ══════════════════════════════════════════════════════
   RTL
   ══════════════════════════════════════════════════════ */
.is-rtl .fd-type-arrow { right: auto; left: 16px; }
.is-rtl .fd-type-arrow i, .is-rtl .fd-step-arrow i { transform: scaleX(-1); }
.is-rtl .fd-why-intro { padding-right: 0; padding-left: 24px; border-right: none; border-left: 1px solid #DADDE1; }
.is-rtl .fd-input-icon { margin-left: 0; margin-right: 8px; }
.is-rtl .fd-hero {
  background:
    linear-gradient(270deg, rgba(255, 255, 255,.97) 0%, rgba(255, 255, 255,.9) 34%, rgba(255, 255, 255,.35) 58%, rgba(255, 255, 255,.05) 80%),
    var(--hero-bg) center 40% / cover no-repeat, #E7F3FF;
}
.is-rtl .pc-faq-item summary::after { margin-left: 0; margin-right: 10px; }
.is-rtl .footer-links a + a { border-left: none; border-right: 1px solid rgba(255,255,255,.25); }
.is-rtl .fd-hero-title { letter-spacing: 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .btn-app span { display: none; }
  .btn-app { padding: 12px 15px; }
  .fd-types-grid { grid-template-columns: repeat(3, 1fr); }
  .fd-why { grid-template-columns: 1fr 1.6fr; }
  .fd-collage-why { display: none; }
}

@media (max-width: 980px) {
  .main-nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #fff; padding: 8px 16px 14px; z-index: 200;
    box-shadow: 0 12px 24px rgba(0, 0, 0,.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid #F0F2F5; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .is-rtl .header-actions { margin-left: 0; margin-right: auto; }

  .fd-hero { padding: 30px 20px 90px; }
  .fd-hero-inner { grid-template-columns: 1fr; }
  .fd-hero-visual { height: 470px; width: 560px; max-width: 100%; margin: 10px auto 0; }
  .fd-steps { grid-template-columns: 1fr; }
  .fd-collage-steps { display: none; }
  .fd-faq-cta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-social { justify-content: center; }
  .fd-hand-footer { position: static; display: inline-block; margin-top: 14px; }
}

@media (max-width: 760px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .logo-mark { width: 40px; height: 40px; font-size: 24px; padding-top: 6px; }
  .logo-text { font-size: 17px; }
  .logo-sub { font-size: 10.5px; }
  .btn-app { display: none; }
  .lang-btn { padding: 8px 12px; font-size: 13px; }

  .fd-hero { padding: 24px 16px 80px; }
  .fd-hero-desc { font-size: 15px; }
  .form-group-download { flex-direction: column; border-radius: 18px; padding: 8px; align-items: stretch; }
  .fd-input-icon { display: none; }
  .form-group-download input { padding: 14px; text-align: inherit; }
  .form-group-download button { justify-content: center; padding: 14px; }
  .fd-chips { gap: 8px; }
  .fd-chip { font-size: 12px; padding: 8px 10px; }
  .fd-chip i { font-size: 16px; }

  .fd-hero-visual { width: 560px; max-width: none; height: 470px; zoom: .8; }
  .fd-hero, .is-rtl .fd-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255,.96) 0%, rgba(255, 255, 255,.9) 45%, rgba(255, 255, 255,.25) 75%, rgba(255, 255, 255,.1) 100%),
      var(--hero-bg) center bottom / cover no-repeat, #E7F3FF;
  }
  .fd-hand-hero { display: none; }

  .pc-wrapper, .downloader-container { padding: 0 16px; }
  .fd-types-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fd-type-card { padding: 16px 14px 46px; }
  .fd-type-thumbs { display: none; }
  .fd-type-top { min-height: 0; }
  .fd-why { grid-template-columns: 1fr; padding: 22px 18px; }
  .fd-why-intro, .is-rtl .fd-why-intro { border: none; padding: 0; }
  .fd-why-items { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
  .fd-steps { padding: 22px 18px; }
  .fd-steps-row { grid-template-columns: 1fr; gap: 22px; }
  .fd-step-arrow { display: none; }
  .fd-cta { padding: 24px 20px; min-height: 300px; }
  .fd-cta-text { max-width: 60%; }
  .fd-cta-phone { width: 130px; height: 260px; right: 4%; }
  .result-body { flex-direction: column; }
  .video-preview-box, .download-options-box { min-width: unset; width: 100%; }
}

@media (max-width: 520px) {
  .fd-hero-visual { zoom: .66; }
}

@media (max-width: 420px) {
  .logo-sub { display: none; }
  .header-inner { padding: 10px 12px; gap: 8px; }
  .site-logo { gap: 8px; min-width: 0; }
  .logo-mark { width: 36px; height: 36px; font-size: 21px; padding-top: 5px; }
  .logo-text { font-size: 15px; }
  .header-actions { gap: 6px; }
  .lang-btn { padding: 7px 10px; gap: 6px; }
  .nav-toggle { padding: 4px; }
  .fd-types-grid { grid-template-columns: 1fr; }
  .fd-hero-visual { zoom: .6; }
  .fd-cta-text { max-width: 100%; }
  .fd-cta-phone, .fd-cta-dl { display: none; }
  .footer-links a { padding: 4px 10px; }
}
