/* ====================================================
   x-theme.css — X (Twitter) Downloader, official X identity
     font    TwitterChirp (proprietary) → -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial
     text    #0F1419 · secondary #536471 · blue #1D9BF0 (hover #1A8CD8)
     lines   #EFF3F4 · #CFD9DE · surface #F7F9F9
     accents like #F91880 · repost #00BA7C · purple #7856FF · dark #000 / #16181C / #2F3336 / #71767B
     shape   pill buttons (9999px) · 16–20px cards & media · weights 700/800
     icons   inline SVG line icons (lang/xt-icons.json) — sharp at any size
   Loaded after style.css.
   ==================================================== */
:root {
  --x-ink: #0F1419;
  --x-ink-h: #272C30;
  --x-muted: #536471;
  --x-blue: #1D9BF0;
  --x-blue-h: #1A8CD8;
  --x-blue-d: #0C7ABF;
  --x-blue-50: #E8F5FD;
  --x-line: #EFF3F4;
  --x-line-2: #CFD9DE;
  --x-soft: #F7F9F9;
  --x-pink: #F91880;
  --x-green: #00BA7C;
  --x-purple: #7856FF;
  --x-black: #000000;
  --x-dark-2: #16181C;
  --x-dark-line: #2F3336;
  --x-dark-muted: #71767B;
  --x-font: 'TwitterChirp', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --x-shadow-sm: 0 1px 2px rgba(15,20,25,.06), 0 4px 12px -4px rgba(15,20,25,.08);
  --x-shadow-md: 0 2px 4px rgba(15,20,25,.04), 0 18px 40px -18px rgba(15,20,25,.28);
  --x-shadow-lg: 0 4px 10px rgba(15,20,25,.05), 0 40px 80px -32px rgba(15,20,25,.38);
  --x-popup: rgba(101,119,134,.2) 0 0 15px, rgba(101,119,134,.15) 0 0 3px 1px;

  /* map the previous theme variables (static pages / blog follow automatically) */
  --blue: var(--x-blue); --blue-d: var(--x-blue-h); --navy: var(--x-ink); --text: var(--x-ink); --muted: var(--x-muted);
  --bg: #fff; --line: var(--x-line); --line2: var(--x-line-2); --divider: var(--x-line);
  --btn: var(--x-ink); --app-btn: var(--x-ink); --font: var(--x-font);
}
body.x-theme { font-family: var(--x-font); color: var(--x-ink); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.x-theme.is-rtl { font-family: 'Noto Sans Arabic', 'Noto Sans Hebrew', var(--x-font); }
.x-theme h1, .x-theme h2, .x-theme h3, .x-theme h4 { font-family: inherit; color: var(--x-ink); }
.x-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.x-logo { display: block; flex-shrink: 0; }
.x-ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.x-verified { display: inline-block; vertical-align: -3px; }
.x-theme img { image-rendering: auto; }

/* Buttons — X pills */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 9999px;
  font-weight: 700; font-size: 16px; white-space: nowrap; transition: background-color .2s, transform .2s; }
.x-btn--white { background: #fff; color: var(--x-ink) !important; box-shadow: 0 10px 30px -12px rgba(255,255,255,.35); }
.x-btn--white:hover { background: #E7E9EA; transform: translateY(-1px); }

/* ── Header (white glass, X light) ─────────────────── */
.x-theme .site-header { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: none; border-bottom: 1px solid var(--x-line); }
.x-theme .header-inner { max-width: 1200px; padding: 10px 24px; gap: 20px; }
.x-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--x-ink); }
.x-brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #2F3336 0%, #000 60%); color: #fff; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px -6px rgba(0,0,0,.6); }
.x-brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.x-brand-words b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--x-ink); }
.x-brand-words small { font-size: 12px; color: var(--x-muted); margin-top: 2px; white-space: nowrap; }
.x-theme .main-nav a { color: var(--x-ink); font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 9999px; transition: background-color .2s; }
.x-theme .main-nav a:hover { background: rgba(15,20,25,.06); color: var(--x-ink); }
.x-theme .main-nav a.active { font-weight: 700; color: var(--x-ink); }
.x-theme .main-nav a.active::after { left: 50%; right: auto; width: 28px; margin-left: -14px; bottom: -11px; height: 4px; border-radius: 9999px; background: var(--x-blue); }
.x-theme .lang-btn { border: 1px solid var(--x-line-2); box-shadow: none; color: var(--x-ink); border-radius: 9999px; height: 40px; padding: 0 12px 0 14px; font-weight: 700; gap: 7px; background: #fff; }
.x-theme .lang-btn:hover { background: rgba(15,20,25,.04); }
.x-theme .x-lang-chev { transition: transform .2s; color: var(--x-muted); }
.x-theme .lang-switcher.open .x-lang-chev { transform: rotate(180deg); }
.x-theme .lang-dropdown { border-radius: 16px; border-color: var(--x-line); box-shadow: var(--x-popup); }
.x-theme .lang-option { border-radius: 10px; }
.x-theme .lang-option.active { background: var(--x-blue-50); color: var(--x-blue); }
.x-theme .btn-app.x-head-btn { background: var(--x-ink); color: #fff; box-shadow: none; height: 40px; padding: 0 18px; font-weight: 700; border-radius: 9999px; font-size: 15px; gap: 8px; }
.x-theme .btn-app.x-head-btn:hover { background: var(--x-ink-h); transform: none; box-shadow: none; }
.x-theme .nav-toggle { color: var(--x-ink); border: 1px solid var(--x-line-2); border-radius: 9999px; width: 40px; height: 40px; padding: 0; background: #fff; }

/* ── Hero ──────────────────────────────────────────── */
.x-hero { position: relative; overflow: hidden; padding: 68px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--x-soft) 100%); border-bottom: 1px solid var(--x-line); }
.x-hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 82% 28%, rgba(29,155,240,.16), transparent 70%),
    radial-gradient(420px 300px at 96% 86%, rgba(249,24,128,.08), transparent 70%),
    radial-gradient(500px 340px at 6% 0%, rgba(120,86,255,.06), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(83,100,113,.22) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.x-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; position: relative; }
.x-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 9999px; background: #fff; border: 1px solid var(--x-line-2); color: var(--x-ink); font-size: 13.5px; font-weight: 700; box-shadow: var(--x-shadow-sm); }
.is-rtl .x-kicker { padding: 5px 5px 5px 14px; }
.x-kicker-logo { width: 26px; height: 26px; border-radius: 50%; background: var(--x-black); color: #fff; display: grid; place-items: center; }
.x-hero-title { font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; line-height: 1.03; letter-spacing: -.038em; margin: 22px 0 18px; }
.x-hero-title span { display: block; background: linear-gradient(90deg, #1D9BF0 0%, #0C7ABF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.is-rtl .x-hero-title { letter-spacing: 0; line-height: 1.25; }
.x-hero-sub { font-size: 18px; line-height: 1.55; color: var(--x-muted); max-width: 560px; margin-bottom: 30px; }

/* search — X search field (pill) + blue pill button */
.x-form { max-width: 620px; }
.x-search { display: flex; align-items: center; height: 64px; background: #fff; border: 1px solid var(--x-line-2); border-radius: 9999px; padding: 7px; padding-inline-start: 20px; gap: 6px;
  box-shadow: 0 1px 2px rgba(15,20,25,.05), 0 18px 40px -20px rgba(15,20,25,.35); transition: border-color .15s, box-shadow .15s; }
.x-search:focus-within { border-color: var(--x-blue); box-shadow: 0 0 0 1px var(--x-blue), 0 0 0 6px rgba(29,155,240,.12), 0 18px 40px -20px rgba(29,155,240,.5); }
.x-search-ic { color: var(--x-muted); display: grid; place-items: center; }
.x-search:focus-within .x-search-ic { color: var(--x-blue); }
.x-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--x-ink); padding: 0 6px; direction: ltr; }
.is-rtl .x-search input { text-align: right; }
.x-search input::placeholder { color: var(--x-muted); }
.x-paste { height: 42px; padding: 0 14px; border: 0; border-radius: 9999px; background: transparent; color: var(--x-blue); font: inherit; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.x-paste:hover { background: var(--x-blue-50); }
.x-paste-ic { display: inline-grid; }
.x-paste-ic--clear, .x-paste.has-value .x-paste-ic--paste { display: none; }
.x-paste.has-value .x-paste-ic--clear { display: inline-grid; }
.x-paste.has-value { color: var(--x-muted); }
.x-submit { height: 50px; padding: 0 26px; border: 0; border-radius: 9999px; background: linear-gradient(180deg, #2AA3F2 0%, #1D9BF0 45%, #1A8CD8 100%); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -8px rgba(29,155,240,.8); transition: filter .2s, transform .2s; }
.x-submit:hover { filter: brightness(.96); }
.x-submit:active { transform: scale(.98); }
.x-spin { display: none; animation: xSpin .8s linear infinite; }
.x-submit.is-loading { pointer-events: none; opacity: .9; }
.x-submit.is-loading .x-submit-ic { display: none; }
.x-submit.is-loading .x-spin { display: inline-block; }
@keyframes xSpin { to { transform: rotate(360deg); } }
.x-supported { margin-top: 14px; font-size: 13px; color: var(--x-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.x-supported code { font-family: inherit; font-size: 12.5px; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); padding: 3px 10px; border-radius: 9999px; }
.x-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.x-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--x-ink); }
.x-chips .x-ic { color: var(--x-blue); }

/* post mockup */
.x-hero-art { position: relative; padding: 28px 34px 64px; }
.x-glow { position: absolute; inset: 6% 4%; border-radius: 40%; background: radial-gradient(closest-side, rgba(29,155,240,.28), transparent); filter: blur(18px); }
.x-post { position: relative; z-index: 1; background: #fff; border: 1px solid var(--x-line); border-radius: 20px; padding: 16px 16px 10px; box-shadow: var(--x-shadow-lg); max-width: 500px; margin: 0 auto; }
.x-post-head { display: flex; align-items: center; gap: 10px; }
.x-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--x-line); }
.x-post-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.x-post-name { font-size: 15px; color: var(--x-ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.x-post-name b { font-weight: 700; }
.x-post-handle { font-size: 14px; color: var(--x-muted); }
.x-post-more { margin-inline-start: auto; color: var(--x-muted); display: grid; }
.x-post-text { font-size: 15px; line-height: 1.45; color: var(--x-ink); margin: 10px 0 12px; }
.x-post-media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--x-line); aspect-ratio: 16 / 9; background: #000; }
.x-post-media img, .x-type-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-play { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--x-blue); color: #fff;
  display: grid; place-items: center; padding-left: 3px; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.x-play--sm { width: 52px; height: 52px; top: 50%; border-width: 3px; }
/* X video player controls */
.x-player { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)); color: #fff; }
.x-player-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); position: relative; margin-bottom: 7px; }
.x-player-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 66%; border-radius: 4px; background: var(--x-blue); }
.x-player-bar i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.x-player-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; }
.x-player-sp { flex: 1; }
.x-time { opacity: .95; font-variant-numeric: tabular-nums; }
.x-post-acts { display: flex; align-items: center; justify-content: space-between; color: var(--x-muted); font-size: 13px; padding: 12px 4px 2px; }
.x-post-acts > span { display: inline-flex; align-items: center; gap: 6px; }
.x-post-acts .x-rt { color: var(--x-green); }
.x-post-acts .x-like { color: var(--x-pink); }
.x-acts-end { gap: 16px !important; }
.x-sheet { position: absolute; z-index: 3; right: 0; bottom: 4px; width: 220px; background: #fff; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--x-popup), 0 24px 50px -20px rgba(15,20,25,.35); animation: xFloat 6s ease-in-out infinite; }
.is-rtl .x-sheet { right: auto; left: 0; }
.x-sheet-title { font-size: 14.5px; font-weight: 800; padding: 4px 8px 8px; display: flex; align-items: center; gap: 9px; }
.x-sheet-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--x-blue-50); color: var(--x-blue); display: grid; place-items: center; }
.x-sheet-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 13.5px; color: var(--x-muted); }
.x-sheet-row em { font-style: normal; font-weight: 800; color: var(--x-ink); min-width: 48px; }
.x-sheet-row.on { background: var(--x-blue-50); }
.x-sheet-ok { margin-left: auto; color: var(--x-blue); display: grid; }
.x-gifcard, .x-photocard { position: absolute; z-index: 2; border-radius: 18px; overflow: hidden; border: 5px solid #fff; background: #fff; box-shadow: 0 22px 44px -16px rgba(15,20,25,.5); animation: xFloat 7s ease-in-out infinite; }
.x-gifcard img, .x-photocard img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 13px; }
.x-gifcard { left: -6px; top: 38%; width: 132px; aspect-ratio: 1; transform: rotate(-6deg); animation-delay: -2s; }
.x-photocard { left: 6px; top: -2px; width: 104px; aspect-ratio: 4 / 5; transform: rotate(5deg); animation-delay: -4s; z-index: 0; }
.x-gifcard em, .x-giftag, .x-photocard em { position: absolute; left: 8px; bottom: 8px; font-style: normal; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 7px; border-radius: 5px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 5px; }
.is-rtl .x-gifcard { left: auto; right: -6px; }
.is-rtl .x-photocard { left: auto; right: 6px; }
.x-bubble { position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(15,20,25,.5); animation: xFloat 5s ease-in-out infinite; border: 3px solid #fff; }
.x-bubble--like { top: -4px; right: 6px; background: linear-gradient(145deg, #FF4D9E, #F91880); color: #fff; }
.x-bubble--x { bottom: 2px; left: 6px; background: linear-gradient(160deg, #2F3336, #000 60%); color: #fff; animation-delay: -2.5s; }
.is-rtl .x-bubble--like { right: auto; left: 6px; }
.is-rtl .x-bubble--x { left: auto; right: 6px; }
@keyframes xFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .x-sheet, .x-gifcard, .x-photocard, .x-bubble { animation: none; } }

/* ── Result ────────────────────────────────────────── */
.x-result-wrap { max-width: 1200px; padding: 0 24px; }
.x-theme .error-box.x-alert { border-radius: 16px; background: #FEF1F4; border-color: #F9C1D3; margin-top: 28px; align-items: center; }
.x-alert-ic { color: #F4212E; display: grid; }
.x-result { margin: 28px 0 8px !important; border-radius: 20px !important; border: 1px solid var(--x-line) !important; box-shadow: var(--x-shadow-md) !important; padding: 0 !important; overflow: hidden; }
.x-result-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--x-line); }
.x-result-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #2F3336, #000 60%); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.x-result-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.x-result-who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-result-who span { font-size: 13.5px; color: var(--x-muted); }
.x-result-logo { margin-inline-start: auto; color: var(--x-ink); }
.x-result-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding: 18px; }
.x-result-media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--x-line); background: #000; aspect-ratio: 16 / 10; }
.x-result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-result-list h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.x-theme .x-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; padding: 12px; border: 1px solid var(--x-line); border-radius: 16px; margin-bottom: 8px; transition: background-color .2s, border-color .2s; }
.x-theme .x-row:hover { background: var(--x-soft); border-color: var(--x-line-2); }
.x-row .format-info { flex: 1; min-width: 0; }
.x-row .format-info p { font-weight: 700; font-size: 15px; color: var(--x-ink); display: flex; align-items: center; gap: 6px; }
.x-row-ic { color: var(--x-muted); }
.x-row .format-info span { font-size: 13px; color: var(--x-muted); }
.x-res { min-width: 62px; height: 34px; padding: 0 10px; border-radius: 9999px; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.x-res--fhd { background: var(--x-ink); color: #fff; }
.x-res--hd { background: var(--x-blue); color: #fff; }
.x-res--sd { background: var(--x-line); color: var(--x-ink); }
.x-res--img { background: var(--x-blue-50); color: var(--x-blue); }
.x-theme .btn-pin-dl.x-dl { background: var(--x-ink); color: #fff !important; border-radius: 9999px; height: 40px; padding: 0 18px; font-weight: 700; font-size: 14px; box-shadow: none; min-width: 0; gap: 7px; }
.x-theme .btn-pin-dl.x-dl:hover { background: var(--x-ink-h); opacity: 1; }
.x-again { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--x-blue); font-weight: 700; font-size: 14.5px; }
.x-again:hover { text-decoration: underline; }

/* ── Sections ──────────────────────────────────────── */
.x-section { padding: 96px 0; }
.x-section--soft { background: var(--x-soft); border-top: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); }
.x-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.x-head--start { text-align: start; margin: 0; }
.x-head h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.032em; line-height: 1.1; margin: 16px 0 12px; }
.is-rtl .x-head h2 { letter-spacing: 0; line-height: 1.3; }
.x-head p { font-size: 17px; line-height: 1.55; color: var(--x-muted); }
.x-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 9999px; background: #fff; border: 1px solid var(--x-line-2); color: var(--x-ink); font-size: 13.5px; font-weight: 700; box-shadow: var(--x-shadow-sm); }
.x-pill .x-ic { color: var(--x-blue); }

/* icon squircles (shared) */
.x-type-ic, .x-module-ic, .x-step-n { position: relative; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.08), 0 10px 20px -10px var(--x-ic-sh, rgba(29,155,240,.8)); }
.x-type-ic::after, .x-module-ic::after, .x-step-n::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); pointer-events: none; }

/* types — cards like X posts with media */
.x-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-type { background: #fff; border: 1px solid var(--x-line); border-radius: 24px; overflow: hidden; box-shadow: var(--x-shadow-sm); transition: box-shadow .25s, transform .25s; }
.x-type:hover { transform: translateY(-4px); box-shadow: var(--x-shadow-md); }
.x-type-media { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 12px 12px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--x-line); }
.x-type-media img { transition: transform .6s ease; }
.x-type:hover .x-type-media img { transform: scale(1.04); }
.x-type-media .x-play { width: 54px; height: 54px; border-width: 3px; top: 44%; }
.x-hd { position: absolute; z-index: 2; right: 10px; top: 10px; background: rgba(15,20,25,.82); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 9999px; backdrop-filter: blur(4px); }
.x-phototag { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 5px; display: inline-flex; gap: 6px; align-items: center; }
.x-type--gif .x-giftag { font-size: 13px; padding: 3px 8px; left: 10px; bottom: 10px; }
.x-type-body { padding: 20px 22px 24px; }
.x-type-ic { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 16px; }
.x-type--video .x-type-ic { background: linear-gradient(145deg, #4DB5F5, #1D9BF0 55%, #0C7ABF); }
.x-type--gif .x-type-ic { background: linear-gradient(145deg, #3A3F44, #0F1419); --x-ic-sh: rgba(15,20,25,.7); }
.x-type--photo .x-type-ic { background: linear-gradient(145deg, #2EDB9E, #00BA7C 55%, #009B67); --x-ic-sh: rgba(0,186,124,.75); }
.x-type h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.x-type p { font-size: 15px; line-height: 1.5; color: var(--x-muted); }
.x-type-meta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--x-ink); background: var(--x-soft); border: 1px solid var(--x-line); padding: 6px 12px 6px 8px; border-radius: 9999px; }
.x-type-meta .x-ic { color: var(--x-blue); }

/* steps */
.x-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-step { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--x-line); border-radius: 24px; padding: 26px 24px 24px; box-shadow: var(--x-shadow-sm); }
.x-step-n { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; background: linear-gradient(145deg, #3A3F44, #0F1419); --x-ic-sh: rgba(15,20,25,.6); }
.x-step-n b { position: absolute; z-index: 1; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--x-ink); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--x-line-2), 0 2px 6px rgba(15,20,25,.15); }
.is-rtl .x-step-n b { right: auto; left: -7px; }
.x-step:nth-child(2) .x-step-n { background: linear-gradient(145deg, #4DB5F5, #1D9BF0 55%, #0C7ABF); --x-ic-sh: rgba(29,155,240,.8); }
.x-step:nth-child(3) .x-step-n { background: linear-gradient(145deg, #2EDB9E, #00BA7C 55%, #009B67); --x-ic-sh: rgba(0,186,124,.75); }
.x-step h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.x-step p { font-size: 15px; line-height: 1.5; color: var(--x-muted); margin-bottom: 20px; }
.x-step:not(:last-child)::after { content: ''; position: absolute; z-index: 2; top: 38px; inset-inline-end: -25px; width: 28px; height: 28px; border-radius: 50%; background: #fff no-repeat center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1419' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
  border: 1px solid var(--x-line-2); box-shadow: var(--x-shadow-sm); }
.is-rtl .x-step:not(:last-child)::after { transform: scaleX(-1); }
.x-mini { margin-top: auto; border-radius: 16px; font-size: 13.5px; }
.x-mini--share { background: #fff; border: 1px solid var(--x-line); box-shadow: var(--x-popup); padding: 6px; display: flex; flex-direction: column; }
.x-mini-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 700; color: var(--x-ink); }
.x-mini-row .x-ic { color: var(--x-muted); }
.x-mini-row.on { background: var(--x-soft); }
.x-mini-row.on .x-ic { color: var(--x-blue); }
.x-mini--field { display: flex; align-items: center; gap: 8px; height: 52px; padding: 5px; padding-left: 14px; background: #fff; border: 1px solid var(--x-blue); box-shadow: 0 0 0 1px var(--x-blue), 0 0 0 5px rgba(29,155,240,.12); border-radius: 9999px; color: var(--x-muted); }
.x-mini--field > .x-ic { color: var(--x-blue); }
.x-mini--field span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-mini--field b { width: 42px; height: 42px; border-radius: 50%; background: var(--x-blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.x-mini--file { display: flex; align-items: center; gap: 12px; padding: 8px; padding-right: 12px; background: #fff; border: 1px solid var(--x-line); box-shadow: var(--x-popup); }
.x-mini--file img { width: 64px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.x-mini--file > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.x-mini--file b { font-size: 13.5px; color: var(--x-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-mini--file small { font-size: 12px; color: var(--x-muted); }
.x-mini-ok { color: var(--x-green); display: grid; }
.x-links { margin-top: 22px; background: #fff; border: 1px solid var(--x-line); border-radius: 24px; padding: 26px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; box-shadow: var(--x-shadow-sm); }
.x-links h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.x-links-logo { width: 30px; height: 30px; border-radius: 50%; background: var(--x-black); color: #fff; display: grid; place-items: center; }
.x-links p { font-size: 14.5px; color: var(--x-muted); line-height: 1.5; }
.x-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.x-links code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--x-soft); border: 1px solid var(--x-line); color: var(--x-ink); padding: 10px 14px; border-radius: 12px; overflow-wrap: anywhere; }
.x-links code .x-ic { color: var(--x-muted); vertical-align: -2px; margin-inline-end: 6px; }
.x-links em { color: var(--x-blue); font-style: normal; }

/* trust — X sidebar module */
.x-trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.x-trust-art { position: relative; margin-top: 28px; border-radius: 20px; overflow: hidden; border: 1px solid var(--x-line); box-shadow: var(--x-shadow-md); aspect-ratio: 16 / 9; max-width: 480px; }
.x-trust-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-trust-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,20,25,.45)); }
.x-trust-badge { position: absolute; z-index: 1; left: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--x-blue); display: grid; place-items: center; box-shadow: var(--x-shadow-md); }
.is-rtl .x-trust-badge { left: auto; right: 16px; }
.x-module { background: #fff; border: 1px solid var(--x-line); border-radius: 24px; overflow: hidden; box-shadow: var(--x-shadow-md); }
.x-module-row { display: flex; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--x-line); transition: background-color .2s; }
.x-module-row:last-child { border-bottom: 0; }
.x-module-row:hover { background: var(--x-soft); }
.x-module-ic { width: 48px; height: 48px; border-radius: 15px; }
.x-ic-1 { background: linear-gradient(145deg, #3A3F44, #0F1419); --x-ic-sh: rgba(15,20,25,.6); }
.x-ic-2 { background: linear-gradient(145deg, #4DB5F5, #1D9BF0 55%, #0C7ABF); }
.x-ic-3 { background: linear-gradient(145deg, #9C85FF, #7856FF 55%, #5B3DF0); --x-ic-sh: rgba(120,86,255,.7); }
.x-ic-4 { background: linear-gradient(145deg, #2EDB9E, #00BA7C 55%, #009B67); --x-ic-sh: rgba(0,186,124,.75); }
.x-module-row b { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 3px; }
.x-module-row p { font-size: 14.5px; line-height: 1.5; color: var(--x-muted); }

/* FAQ */
.x-faq-wrap { max-width: 840px; }
.x-faq { background: #fff; border: 1px solid var(--x-line); border-radius: 24px; overflow: hidden; box-shadow: var(--x-shadow-sm); }
.x-theme .x-faq-item { border: 0; border-bottom: 1px solid var(--x-line); border-radius: 0; background: transparent; margin: 0; box-shadow: none; }
.x-theme .x-faq-item:last-child { border-bottom: 0; }
.x-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 700; color: var(--x-ink); transition: background-color .2s; }
.x-faq-item summary::-webkit-details-marker { display: none; }
.x-theme .x-faq-item summary::after { content: none; display: none; }
.x-faq-item summary:hover { background: var(--x-soft); }
.x-faq-chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--x-muted); background: var(--x-soft); flex-shrink: 0; transition: transform .25s, background-color .2s, color .2s; }
.x-faq-item[open] .x-faq-chev { transform: rotate(180deg); background: var(--x-blue); color: #fff; }
.x-faq-a { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: var(--x-muted); }

/* CTA — x.com black */
.x-cta { position: relative; overflow: hidden; background: radial-gradient(700px 300px at 15% 0%, rgba(29,155,240,.22), transparent 70%), var(--x-black); color: #E7E9EA; padding: 64px 0; }
.x-cta-bigx { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); color: #fff; opacity: .05; pointer-events: none; }
.is-rtl .x-cta-bigx { right: auto; left: -50px; }
.x-cta-inner { display: flex; align-items: center; gap: 28px; position: relative; z-index: 1; }
.x-cta-logo { width: 80px; height: 80px; border-radius: 22px; background: linear-gradient(160deg, #2F3336, #16181C 60%); border: 1px solid var(--x-dark-line); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.x-cta-copy { flex: 1; min-width: 0; }
.x-cta h2 { color: #E7E9EA; font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.x-cta p { color: var(--x-dark-muted); font-size: 16px; }
.x-cta-stack { position: relative; width: 190px; height: 130px; flex-shrink: 0; }
.x-cta-ph { position: absolute; top: 0; width: 92px; height: 118px; border-radius: 14px; overflow: hidden; border: 3px solid #16181C; box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); }
.x-cta-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-cta-ph i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--x-blue); color: #fff; display: grid; place-items: center; padding-left: 2px; border: 2px solid #fff; }
.x-cta-ph--1 { left: 0; transform: rotate(-9deg); top: 8px; }
.x-cta-ph--2 { left: 49px; z-index: 2; }
.x-cta-ph--3 { left: 98px; transform: rotate(9deg); top: 8px; }

/* ── Footer (X light) ──────────────────────────────── */
.x-theme .site-footer.x-footer { background: #fff; color: var(--x-ink); border-top: 1px solid var(--x-line); padding: 0; }
.x-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 34px; }
.x-foot-brand p { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--x-muted); max-width: 380px; }
.x-foot-col { display: flex; flex-direction: column; gap: 10px; }
.x-foot-col h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.x-foot-col a { font-size: 15px; color: var(--x-muted); width: fit-content; }
.x-foot-col a:hover { color: var(--x-ink); text-decoration: underline; }
.x-foot-bottom { border-top: 1px solid var(--x-line); padding-top: 18px; padding-bottom: 24px; }
.x-disclaimer, .x-rights { font-size: 13px; line-height: 1.6; color: var(--x-muted); }
.x-disclaimer { margin-bottom: 4px; }
.x-top { position: fixed; z-index: 90; bottom: 22px; inset-inline-end: 22px; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(180deg, #2AA3F2, #1A8CD8); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(29,155,240,.8); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.x-top.show { opacity: 1; visibility: visible; transform: none; }
.x-top:hover { filter: brightness(.95); }

/* static pages & blog pick up X styling */
.x-theme .static-card, .x-theme .blog-card { border-radius: 20px; border-color: var(--x-line); }
.x-theme .static-card h1 i { color: var(--x-blue); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1100px) {
  .x-hero-grid { gap: 32px; }
  .x-types { gap: 16px; }
  .x-cta-stack { display: none; }
}
@media (max-width: 980px) {
  .x-theme .main-nav { background: #fff; border-bottom: 1px solid var(--x-line); box-shadow: rgba(101,119,134,.2) 0 12px 24px -12px; padding: 8px 16px 14px; }
  .x-theme .main-nav a { border-radius: 12px; border-bottom: 0; padding: 12px 14px; }
  .x-theme .main-nav a.active { background: var(--x-soft); }
  .x-theme .nav-toggle { display: grid; place-items: center; }
  .x-hero-grid { grid-template-columns: 1fr; }
  .x-hero-art { max-width: 580px; margin: 0 auto; width: 100%; }
  .x-types { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .x-steps { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .x-step:not(:last-child)::after, .is-rtl .x-step:not(:last-child)::after { top: auto; bottom: -25px; inset-inline-end: auto; left: 50%; margin-left: -14px; transform: rotate(90deg); }
  .x-links { grid-template-columns: minmax(0, 1fr); }
  .x-links > * { min-width: 0; }
  .x-trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .x-trust-copy { text-align: center; }
  .x-head--start { text-align: center; }
  .x-trust-art { margin: 24px auto 0; }
  .x-cta-inner { flex-direction: column; text-align: center; }
  .x-cta .x-btn { margin: 4px 0 0; }
  .x-foot-grid { grid-template-columns: 1fr 1fr; }
  .x-foot-brand { grid-column: 1 / -1; }
  .x-result-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .x-wrap, .x-result-wrap { padding: 0 16px; }
  .x-theme .header-inner { padding: 8px 16px; }
  .x-brand-words small { display: none; }
  .x-brand-words b { font-size: 18px; }
  .x-brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .x-hero { padding: 36px 0 60px; }
  .x-hero-title { font-size: 35px; }
  .is-rtl .x-hero-title { font-size: 31px; }
  .x-hero-sub { font-size: 16px; }
  /* phone: field and button as two separate pieces, same height */
  .x-search { flex-wrap: wrap; height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; gap: 10px; position: relative; }
  .x-search:focus-within { box-shadow: none; }
  .x-search-ic { position: absolute; top: 0; height: 58px; left: 18px; z-index: 1; }
  .is-rtl .x-search-ic { left: auto; right: 18px; }
  .x-search input { flex: 1 1 100%; order: 1; height: 58px; background: #fff; border: 1px solid var(--x-line-2); border-radius: 9999px; padding: 0 96px 0 46px; box-shadow: 0 12px 28px -18px rgba(15,20,25,.35); }
  .is-rtl .x-search input { padding: 0 46px 0 96px; }
  .x-search input:focus { border-color: var(--x-blue); box-shadow: 0 0 0 1px var(--x-blue), 0 0 0 5px rgba(29,155,240,.12); }
  .x-paste { position: absolute; top: 8px; right: 8px; z-index: 1; }
  .is-rtl .x-paste { right: auto; left: 8px; }
  .x-submit { order: 2; flex: 1 1 100%; height: 58px; justify-content: center; font-size: 17px; }
  .x-chips { gap: 10px 16px; }
  .x-chips li { font-size: 14px; }
  .x-hero-art { padding: 22px 4px 70px; }
  .x-post { padding: 14px 12px 8px; }
  .x-play { width: 54px; height: 54px; }
  .x-sheet { width: 164px; bottom: 0; right: -2px; padding: 8px; border-radius: 16px; }
  .x-sheet-title { font-size: 13px; padding: 2px 6px 6px; }
  .x-sheet-row { padding: 7px 8px; font-size: 12.5px; }
  .x-gifcard { width: 96px; left: -6px; top: 42%; border-width: 4px; }
  .is-rtl .x-gifcard { right: -6px; }
  .x-photocard { width: 72px; top: 0; left: 0; border-width: 4px; }
  .is-rtl .x-photocard { right: 0; }
  .x-bubble { width: 44px; height: 44px; }
  .x-bubble--x { bottom: 6px; left: 4px; }
  .is-rtl .x-bubble--x { right: 4px; }
  .x-post-acts { font-size: 12px; }
  .x-acts-end { display: none !important; }
  .x-player-row .x-ic:nth-last-child(-n+2) { display: none; }
  .x-section { padding: 68px 0; }
  .x-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .x-theme .x-row { flex-wrap: wrap; }
  .x-row .x-dl { flex: 1 1 100%; justify-content: center; }
  .x-cta-bigx svg { width: 240px; height: 240px; }
  .x-module-row { padding: 18px 16px; }
}
