:root {
    --page: #f3f7fb;
    --page-warm: #fbfaf8;
    --ink: #17233b;
    --ink-soft: #31415d;
    --muted: #6c7890;
    --line: rgba(188, 202, 221, .68);
    --line-strong: rgba(151, 171, 198, .58);
    --surface: rgba(255, 255, 255, .78);
    --surface-strong: rgba(255, 255, 255, .94);
    --surface-soft: rgba(246, 249, 253, .72);
    --accent: #6759e8;
    --accent-2: #2d96b7;
    --accent-3: #4f82df;
    --accent-soft: #eeedff;
    --success: #168464;
    --danger: #c2465b;
    --warning: #a96d1f;
    --shadow-xl: 0 32px 90px rgba(35, 54, 86, .14);
    --shadow: 0 20px 58px rgba(35, 54, 86, .105);
    --shadow-soft: 0 10px 34px rgba(35, 54, 86, .075);
    --radius-xxl: 34px;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(129, 112, 244, .12), transparent 28rem),
        radial-gradient(circle at 88% 24%, rgba(64, 177, 197, .12), transparent 29rem),
        linear-gradient(180deg, #f4f7fb 0%, #fbfcfe 46%, #f2f6fa 100%);
}
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(103, 89, 232, .2); color: var(--ink); }

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    inset-inline-start: 10px;
    transform: translateY(-150%);
    padding: 10px 16px;
    border-radius: 12px;
    background: #17233b;
    color: white;
    text-decoration: none;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.page-atmosphere {
    position: fixed;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.page-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(89, 111, 148, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 111, 148, .035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
.aurora {
    position: absolute;
    width: 34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(95px);
    opacity: .13;
    animation: auroraDrift 18s ease-in-out infinite alternate;
}
.aurora-one { top: -12rem; inset-inline-start: -10rem; background: #786af4; }
.aurora-two { top: 28%; inset-inline-end: -15rem; background: #3eb6c7; animation-delay: -6s; }
.aurora-three { bottom: -18rem; left: 34%; background: #6a8ee7; animation-delay: -11s; }
.floating-brand {
    position: absolute;
    width: clamp(90px, 10vw, 155px);
    opacity: .035;
    filter: grayscale(.2);
    animation: floatBrand 16s ease-in-out infinite;
}
.floating-brand-a { top: 18%; left: 3%; transform: rotate(-14deg); }
.floating-brand-b { top: 55%; right: 5%; width: clamp(110px, 13vw, 190px); animation-delay: -5s; }
.floating-brand-c { bottom: 3%; left: 38%; width: clamp(75px, 8vw, 125px); animation-delay: -10s; }
.platform-spark {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    background: rgba(255, 255, 255, .25);
    box-shadow: 0 14px 45px rgba(39, 61, 96, .08);
    backdrop-filter: blur(10px);
    opacity: .16;
    animation: sparkFloat 14s ease-in-out infinite;
}
.platform-spark img { width: 100%; height: 100%; }
.platform-spark-a { top: 13%; right: 10%; }
.platform-spark-b { top: 39%; left: 6%; animation-delay: -4s; }
.platform-spark-c { top: 69%; right: 11%; animation-delay: -8s; }
.platform-spark-d { bottom: 7%; left: 14%; animation-delay: -11s; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 250, 253, .76);
    border-bottom: 1px solid rgba(199, 211, 226, .62);
    backdrop-filter: blur(22px) saturate(1.25);
    box-shadow: 0 7px 28px rgba(40, 59, 91, .035);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; margin-inline-end: auto; text-decoration: none; }
.brand img { width: 230px; height: auto; display: block; }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
    position: relative;
    padding: 25px 0 22px;
    text-decoration: none;
    color: #526079;
    font-weight: 700;
    font-size: .93rem;
    transition: color .2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 50%;
    bottom: 15px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: inset .22s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { inset-inline: 0; }
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(188, 202, 221, .75);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    text-decoration: none;
    color: #3c4b65;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(28, 48, 80, .055);
    transition: transform .18s ease, border-color .18s ease;
}
.language-switch:hover { transform: translateY(-1px); border-color: rgba(103, 89, 232, .36); }
.language-globe { color: var(--accent); font-size: 1.05rem; }

.hero-section { position: relative; padding: 32px 0 26px; }
.hero-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 68px);
    min-height: 470px;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--radius-xxl);
    background:
        radial-gradient(circle at 86% 15%, rgba(113, 96, 235, .15), transparent 36%),
        radial-gradient(circle at 7% 90%, rgba(57, 174, 198, .13), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(244, 248, 253, .72));
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(22px) saturate(1.15);
}
.hero-shell::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(rgba(89, 111, 148, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 111, 148, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(145deg, #000 0%, transparent 68%);
}
.hero-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    top: -200px;
    inset-inline-end: -130px;
    border: 1px solid rgba(103, 89, 232, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(103, 89, 232, .025), 0 0 0 95px rgba(45, 150, 183, .02);
}
.hero-watermark {
    position: absolute;
    z-index: -1;
    top: 50%;
    inset-inline-end: 5.5%;
    width: 350px;
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: .18;
}
.hero-watermark > img {
    position: absolute;
    width: 128px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 30px rgba(65, 83, 142, .16));
    animation: markBreathe 5s ease-in-out infinite;
}
.hero-watermark span {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(93, 104, 208, .22);
    border-radius: 50%;
    animation: orbitSpin 18s linear infinite;
}
.hero-watermark span:nth-of-type(2) { inset: 24%; animation-duration: 12s; animation-direction: reverse; }
.hero-watermark span:nth-of-type(3) { inset: 38%; animation-duration: 9s; }
.hero-watermark span::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(103, 89, 232, .45);
}
.hero-copy, .download-card { position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6256d9;
    font-weight: 850;
    font-size: .76rem;
    letter-spacing: .065em;
    text-transform: uppercase;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 5px rgba(103, 89, 232, .09); }
.hero-copy h1 {
    max-width: 620px;
    margin: 15px 0 17px;
    color: #18243d;
    font-size: clamp(2.4rem, 4.25vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}
html[dir="rtl"] .hero-copy h1 { letter-spacing: 0; line-height: 1.22; }
.hero-lead { max-width: 580px; margin: 0; color: #5a6880; font-size: 1.06rem; }
.hero-note { max-width: 550px; margin: 13px 0 0; color: #7a8598; font-size: .86rem; }
.hero-mini-platforms { display: flex; align-items: center; gap: 8px; margin-top: 25px; }
.hero-mini-platforms span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 7px;
    border: 1px solid rgba(191, 203, 220, .72);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 20px rgba(39, 59, 91, .065);
    transition: transform .18s ease;
}
.hero-mini-platforms span:hover { transform: translateY(-3px) rotate(-2deg); }
.hero-mini-platforms img { width: 100%; height: 100%; }
.hero-mini-platforms strong { margin-inline-start: 5px; color: var(--accent); font-size: .82rem; }

.download-card {
    padding: clamp(23px, 3vw, 35px);
    border: 1px solid rgba(185, 199, 219, .68);
    border-radius: 27px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 24px 68px rgba(39, 59, 91, .13), inset 0 1px 0 rgba(255, 255, 255, .92);
    backdrop-filter: blur(24px) saturate(1.15);
}
.download-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(103, 89, 232, .23), transparent 35%, rgba(45, 150, 183, .2));
    opacity: .5;
}
.download-card-head { display: flex; gap: 13px; align-items: center; margin-bottom: 23px; }
.download-card-head .card-mark { width: 50px; height: 50px; padding: 6px; border-radius: 17px; background: rgba(238, 237, 255, .75); }
.download-card-head img { width: 100%; height: 100%; }
.download-card-head strong, .download-card-head span { display: block; }
.download-card-head strong { font-size: 1.03rem; }
.download-card-head span { color: var(--muted); font-size: .78rem; margin-top: 1px; }
.download-card label { display: block; color: #33425d; font-weight: 800; margin-bottom: 11px; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 11px; }
.url-field { position: relative; }
.url-field input {
    width: 100%;
    min-height: 61px;
    padding: 0 100px 0 48px;
    border: 1px solid rgba(164, 180, 203, .78);
    border-radius: 16px;
    outline: none;
    background: rgba(248, 250, 253, .88);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
html[dir="rtl"] .url-field input { padding: 0 48px 0 100px; }
.url-field input::placeholder { color: #9ba6b7; }
.url-field input:focus { border-color: rgba(103, 89, 232, .68); box-shadow: 0 0 0 4px rgba(103, 89, 232, .095); background: white; }
.url-icon { position: absolute; inset-inline-start: 17px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.15rem; }
.paste-button {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 39px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: #e9eef7;
    color: #526078;
    font-size: .78rem;
    font-weight: 800;
    transition: background .18s ease, color .18s ease;
}
.paste-button:hover { background: var(--accent-soft); color: var(--accent); }
.primary-button {
    min-height: 55px;
    border: 0;
    border-radius: 15px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    color: white;
    font-weight: 850;
    background: linear-gradient(135deg, #7163ec 0%, #5681df 50%, #319bb9 100%);
    box-shadow: 0 13px 30px rgba(82, 91, 211, .25), inset 0 1px 0 rgba(255, 255, 255, .34);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.primary-button:hover { transform: translateY(-2px); filter: saturate(1.06); box-shadow: 0 17px 38px rgba(82, 91, 211, .31); }
.primary-button:focus-visible { outline: 4px solid rgba(103, 89, 232, .18); outline-offset: 3px; }
.primary-button:disabled { cursor: not-allowed; opacity: .62; transform: none; }
.button-icon { font-size: 1.25rem; }
.full-width { width: 100%; }
.form-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.form-badges span { padding: 5px 9px; border: 1px solid rgba(186, 201, 219, .66); border-radius: 999px; background: rgba(248, 250, 253, .7); color: #65738b; font-size: .72rem; font-weight: 750; }
.privacy-hint { color: #7d899c; font-size: .76rem; margin: 11px 0 0; }
.form-message, .processing-message { margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: #fff1f3; border: 1px solid #f1c9d0; color: #a83e52; font-weight: 700; }

.service-ribbon { padding: 8px 0 25px; }
.service-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(188, 202, 221, .65);
    border-radius: 22px;
    background: rgba(188, 202, 221, .55);
    box-shadow: var(--shadow-soft);
}
.service-ribbon-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 18px 22px; background: rgba(255, 255, 255, .82); }
.service-ribbon-grid .ribbon-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.service-ribbon-grid strong { font-size: .9rem; }
.service-ribbon-grid small { color: var(--muted); font-size: .75rem; }

.ad-shell {
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(167, 184, 206, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}
.top-ad { margin-bottom: 21px; min-height: 90px; }
.below-form-ad { margin-top: 21px; min-height: 90px; }
.processing-ad { min-height: 250px; }
.before-download-ad { min-height: 90px; width: 100%; }
.after-analysis-ad { min-height: 90px; margin-bottom: 18px; }
.after-download-ad { min-height: 90px; width: 100%; margin-top: 14px; }
.content-middle-ad, .footer-ad { min-height: 90px; width: 100%; }
.page-ad-section { padding: 18px 0; }
.footer-ad-zone { margin-top: 42px; }
.direct-link-ad { display: grid; place-items: center; gap: 6px; width: 100%; min-height: 90px; padding: 20px; text-align: center; text-decoration: none; color: inherit; }
.direct-link-ad span { color: var(--muted); font-size: .84rem; }
.download-ad-card { width: min(94vw, 760px); max-height: 90vh; padding: 56px 18px 18px; overflow: auto; }
.download-ad-heading { margin: 0 0 12px; text-align: center; color: var(--muted); }
.download-click-ad { min-height: 120px; width: 100%; }
.download-ad-continue { margin-top: 14px; }
.ad-label { position: absolute; z-index: 2; top: 8px; inset-inline-start: 9px; font-size: .62rem; color: #7e899b; border: 1px solid #d6dee9; border-radius: 7px; padding: 2px 6px; background: rgba(255, 255, 255, .88); }
.ad-frame { display: block; width: 100%; min-height: 90px; border: 0; background: transparent; }
.network-code-ad { width: 100%; min-height: 1px; text-align: center; }
.ad-shell[data-ad-status="empty"] { display: none !important; }
.ad-placeholder { min-height: 72px; display: grid; place-items: center; color: #8793a6; font-size: .78rem; box-shadow: none; }

.global-header-ad-zone { position: relative; z-index: 4; padding-top: 14px; }
.global-header-ad, .wide-content-ad, .article-page-ad { width: 100%; min-height: 90px; }
.home-after-features-ad { margin: 5px 0 24px; }
.result-grid-ad, .processing-grid-ad { grid-column: 1 / -1; width: 100%; }
.quality-bottom-ad { width: 100%; min-height: 90px; margin-top: 16px; }
.processing-grid-ad { margin-top: 2px; }
.ready-top-ad { margin-bottom: 18px; }
.home-section-ad { padding-top: 28px; }
.after-how-ad-zone { padding-bottom: 20px; }
.article-ad-zone { position: relative; z-index: 2; padding-top: 28px; }
.article-ad-bottom { padding-top: 0; padding-bottom: 12px; }

.desktop-ad-rail { display: none; position: fixed; z-index: 45; top: 96px; width: 160px; max-height: calc(100vh - 118px); overflow: auto; }
.desktop-ad-rail-left { left: max(8px, calc(50% - 780px)); }
.desktop-ad-rail-right { right: max(8px, calc(50% - 780px)); }
.desktop-ad-rail .desktop-rail-ad { width: 160px; min-height: 250px; border-radius: 12px; }
.desktop-ad-rail .rail-ad-close { top: 2px; inset-inline-end: 2px; }
.desktop-sticky-ad-shell { display: none; position: fixed; z-index: 68; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(970px, calc(100vw - 40px)); }
.desktop-sticky-ad-inner { width: 100%; min-height: 60px; }

@media (min-width: 1500px) {
    .desktop-ad-rail { display: block; }
}
@media (min-width: 900px) {
    .desktop-sticky-ad-shell { display: block; }
}

.result-section, .processing-section, .ready-section, .supported-section, .how-section { padding: 38px 0; }
.result-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; }
.panel {
    background: var(--surface);
    border: 1px solid rgba(188, 202, 221, .7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(19px) saturate(1.12);
}
.media-preview { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 20px; align-items: center; }
.preview-image-wrap { position: relative; aspect-ratio: 16/10; border-radius: 19px; overflow: hidden; background: linear-gradient(135deg, #e3eaf4, #d5e1ef); }
.preview-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.preview-placeholder img { width: 72px; height: 72px; opacity: .8; }
.preview-shine { position: absolute; inset: -30% 40% -30% -60%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); animation: previewShine 6s ease-in-out infinite; pointer-events: none; }
.preview-copy h2 { margin: 8px 0 13px; font-size: 1.4rem; line-height: 1.38; }
.source-badge { display: inline-flex; background: #e8f3f7; color: #247690; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 850; }
.media-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: .84rem; }
.quality-panel { padding: 25px; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-title-row h2 { margin: 5px 0 17px; }
.secure-pill { padding: 5px 9px; border-radius: 999px; background: #e6f5ef; color: #168464; font-size: .7rem; font-weight: 900; }
.format-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: rgba(232, 238, 247, .86); margin-bottom: 16px; }
.format-tab { border: 0; background: transparent; color: #69758a; border-radius: 11px; padding: 11px; font-weight: 850; transition: .18s ease; }
.format-tab.active { color: #5d52d7; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(28, 42, 72, .09); }
.format-tab:disabled { opacity: .42; cursor: not-allowed; }
.quality-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.quality-choice { position: relative; }
.quality-choice input { position: absolute; opacity: 0; }
.quality-choice label { display: flex; align-items: center; gap: 10px; min-height: 53px; border: 1px solid rgba(188, 202, 221, .72); border-radius: 14px; padding: 10px 12px; color: #4d5b72; font-weight: 750; background: rgba(252, 253, 255, .78); cursor: pointer; transition: .18s ease; }
.quality-choice label::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; border: 2px solid #a6b0c0; box-shadow: inset 0 0 0 3px white; }
.quality-choice input:focus-visible + label { outline: 3px solid rgba(103, 89, 232, .15); }
.quality-choice input:checked + label { border-color: rgba(103, 89, 232, .63); background: #f0efff; color: #5146c2; box-shadow: 0 8px 20px rgba(100, 88, 232, .11); }
.quality-choice input:checked + label::before { background: #6d60e4; border-color: #6d60e4; }

.processing-grid { display: grid; grid-template-columns: 1fr 330px; gap: 22px; }
.progress-panel { padding: clamp(25px, 4vw, 42px); }
.progress-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.progress-head h2 { margin: 7px 0 5px; font-size: 1.48rem; }
.progress-head p { margin: 0; color: var(--muted); font-size: .83rem; }
#progress-percent { font-size: 2.1rem; color: #5d52d7; }
.progress-track { margin: 28px 0 13px; height: 13px; background: #e5ebf3; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6b5de7, #4e83df, #2ba1c4); transition: width .55s ease; box-shadow: 0 0 18px rgba(85, 98, 226, .3); }
.progress-details { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 27px 0 0; list-style: none; }
.progress-steps li { display: flex; align-items: center; gap: 7px; min-height: 50px; padding: 8px; border: 1px solid rgba(188, 202, 221, .62); border-radius: 13px; color: #8792a4; font-size: .72rem; font-weight: 750; background: rgba(248, 250, 253, .68); transition: .2s ease; }
.progress-steps li span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #e5ebf3; color: #65738b; }
.progress-steps li.active { border-color: rgba(103, 89, 232, .4); background: #f2f0ff; color: #5a4fd0; }
.progress-steps li.active span { background: var(--accent); color: white; }
.progress-steps li.done { color: #17785d; background: #edf9f4; border-color: #c7e8dc; }
.progress-steps li.done span { background: #1c9873; color: white; }

.ready-card { max-width: 760px; padding: clamp(30px, 5vw, 52px); margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ready-orbit { display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid rgba(31, 151, 114, .2); border-radius: 50%; box-shadow: 0 0 0 12px rgba(31, 151, 114, .045), 0 0 0 24px rgba(45, 150, 183, .025); animation: readyPulse 3.2s ease-in-out infinite; }
.ready-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 25px; color: white; font-size: 2rem; font-weight: 900; background: linear-gradient(135deg, #28a37d, #3b91c7); box-shadow: 0 18px 38px rgba(32, 146, 118, .23); }
.ready-card h2 { margin: 8px 0 0; word-break: break-word; }
.ready-card p { color: var(--muted); margin: 0; }
.download-final { max-width: 460px; }
.secondary-button { min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .86); color: #48556b; font-weight: 800; }

.section-heading { max-width: 735px; margin: 0 auto 29px; text-align: center; }
.section-heading h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); margin: 8px 0 8px; line-height: 1.25; }
.section-heading p { color: var(--muted); margin: 0; }
.supported-section { position: relative; }
.platform-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.platform-chip { min-height: 84px; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(188, 202, 221, .68); border-radius: 18px; background: rgba(255, 255, 255, .75); color: #46536a; box-shadow: 0 9px 25px rgba(28, 42, 72, .055); backdrop-filter: blur(12px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.platform-chip:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(28, 42, 72, .1); border-color: rgba(103, 89, 232, .25); }
.platform-logo { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; padding: 3px; border-radius: 14px; background: rgba(244, 247, 251, .8); }
.platform-logo img { width: 100%; height: 100%; }
.platform-chip strong { font-size: .82rem; overflow-wrap: anywhere; }
.platform-more { background: linear-gradient(135deg, rgba(238, 237, 255, .84), rgba(232, 246, 249, .82)); }
.more-dots { color: var(--accent); font-size: 1.2rem; font-weight: 900; }
.platform-note { max-width: 760px; margin: 20px auto 0; text-align: center; color: #7c8799; font-size: .78rem; }

.how-section { padding-bottom: 65px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { position: relative; overflow: hidden; min-height: 245px; padding: 29px; border: 1px solid rgba(188, 202, 221, .68); border-radius: 24px; background: rgba(255, 255, 255, .76); box-shadow: var(--shadow-soft); backdrop-filter: blur(15px); transition: transform .2s ease, box-shadow .2s ease; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.how-number { position: absolute; top: 18px; inset-inline-end: 20px; color: rgba(89, 82, 215, .14); font-size: 2.4rem; font-weight: 900; }
.how-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: linear-gradient(135deg, #eeecff, #e7f5f8); color: var(--accent); font-size: 1.3rem; }
.how-card h3 { margin: 20px 0 8px; }
.how-card p { margin: 0; color: var(--muted); }

.site-footer { margin-top: 35px; background: rgba(229, 235, 243, .78); border-top: 1px solid rgba(200, 212, 227, .75); color: #536075; padding: 48px 0 20px; backdrop-filter: blur(14px); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 48px; align-items: start; }
.footer-logo { width: 205px; }
.footer-grid p { max-width: 360px; margin: 8px 0 0; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.legal-note { display: flex; gap: 11px; font-size: .82rem; background: rgba(255, 255, 255, .48); border: 1px solid rgba(204, 214, 227, .8); padding: 16px; border-radius: 15px; }
.legal-icon { color: var(--accent); font-size: 1.15rem; }
.copyright { border-top: 1px solid #d2dae5; margin-top: 30px; padding-top: 18px; font-size: .78rem; }

.mobile-ad-shell { position: fixed; z-index: 70; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(94vw, 500px); min-height: 50px; }
.ad-close { position: absolute; z-index: 3; top: 3px; inset-inline-end: 3px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: rgba(23, 32, 51, .82); color: white; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25, 35, 55, .42); backdrop-filter: blur(7px); }
.modal-card { position: relative; z-index: 1; width: min(94vw, 620px); min-height: 260px; background: rgba(255, 255, 255, .96); border: 1px solid #d9e1ec; border-radius: 25px; overflow: hidden; box-shadow: 0 30px 90px rgba(10, 19, 35, .28); }
.popup-frame { min-height: 320px; }
.modal-close { position: absolute; z-index: 3; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e9edf4; color: #344158; font-size: 1.35rem; }

.page-section { padding: 56px 0; }
.prose-card { max-width: 860px; margin: auto; padding: clamp(25px, 5vw, 50px); background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.prose-card h1 { margin-top: 0; font-size: 2.4rem; }
.prose-card h2 { margin-top: 32px; }
.prose-card p, .prose-card li { color: #526075; }
.prose-card a { color: var(--accent); font-weight: 750; }

.reveal-card { opacity: 1; transform: translateY(0); }
.js-reveal .reveal-card { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal-card.is-visible { opacity: 1; transform: translateY(0); }

@keyframes auroraDrift { from { transform: translate3d(-2%, -3%, 0) scale(.95); } to { transform: translate3d(6%, 5%, 0) scale(1.08); } }
@keyframes floatBrand { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-28px) rotate(6deg); } }
@keyframes sparkFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(7deg); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes markBreathe { 0%,100% { transform: translate(-50%, -50%) scale(.96); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes previewShine { 0%,70% { transform: translateX(-140%) rotate(18deg); } 100% { transform: translateX(260%) rotate(18deg); } }
@keyframes readyPulse { 0%,100% { transform: scale(.97); } 50% { transform: scale(1.03); } }

@media (max-width: 1060px) {
    .platform-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
    .main-nav { display: none; }
    .hero-shell, .result-grid, .processing-grid { grid-template-columns: 1fr; }
    .hero-shell { gap: 30px; min-height: auto; }
    .hero-watermark { opacity: .1; inset-inline-end: -8%; }
    .processing-ad { min-height: 90px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .legal-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .service-ribbon-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
    .how-grid { grid-template-columns: 1fr; }
    .progress-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .container { width: min(calc(100% - 22px), var(--container)); }
    .nav-wrap { min-height: 68px; gap: 11px; }
    .brand img { width: 178px; }
    .language-switch { padding: 7px 10px; font-size: .78rem; }
    .hero-section { padding-top: 16px; }
    .hero-shell { padding: 28px 19px; border-radius: 25px; }
    .hero-copy h1 { font-size: 2.35rem; }
    .hero-mini-platforms span:nth-of-type(n+5) { display: none; }
    .download-card { padding: 20px 16px; border-radius: 21px; }
    .url-row { grid-template-columns: 1fr; }
    .url-field input { min-height: 58px; }
    .primary-button { min-height: 55px; }
    .form-badges span:nth-child(3) { display: none; }
    .service-ribbon-grid > div { padding: 15px; }
    .media-preview { grid-template-columns: 1fr; }
    .quality-options { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .platform-chip { min-height: 70px; padding: 10px; }
    .platform-logo { width: 37px; height: 37px; flex-basis: 37px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .progress-head { flex-direction: column; }
    .progress-steps { grid-template-columns: 1fr; }
    .floating-brand, .platform-spark { opacity: .025; }
}
@media (max-width: 410px) {
    .brand img { width: 155px; }
    .language-switch { font-size: .7rem; }
    .hero-copy h1 { font-size: 2.05rem; }
    .platform-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .platform-chip strong { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .js-reveal .reveal-card { opacity: 1; transform: none; }
}

/* Esa°Downloader 1.2.1 — lightweight atmosphere, theme switch and performance pass */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid rgba(188, 202, 221, .75);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #3c4b65;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(28, 48, 80, .05);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(103, 89, 232, .36); }
.theme-icon { display: none; font-size: 1.03rem; line-height: 1; }
html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun { display: inline-block; }
.theme-toggle-text { font-size: .78rem; }

.page-atmosphere {
    position: fixed;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}
.ambient-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(86, 106, 141, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(86, 106, 141, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}
.ambient-glow {
    position: absolute;
    width: min(46vw, 660px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .12;
    transform: translate3d(0, 0, 0);
    animation: ambientGlide 26s ease-in-out infinite alternate;
    will-change: transform;
}
.ambient-glow-a {
    top: -23%;
    inset-inline-start: -16%;
    background: radial-gradient(circle, rgba(111, 93, 235, .72) 0%, rgba(111, 93, 235, .16) 48%, transparent 72%);
}
.ambient-glow-b {
    bottom: -30%;
    inset-inline-end: -15%;
    background: radial-gradient(circle, rgba(45, 150, 183, .62) 0%, rgba(45, 150, 183, .13) 48%, transparent 72%);
    animation-delay: -13s;
}
.ambient-logo {
    position: absolute;
    width: clamp(180px, 24vw, 390px);
    opacity: .055;
    filter: blur(2.6px) saturate(.9);
    transform: translate3d(0, 0, 0) rotate(-10deg);
    animation: ambientLogoFloat 24s ease-in-out infinite alternate;
    will-change: transform;
}
.ambient-logo-a { top: 17%; inset-inline-start: 3%; }
.ambient-logo-b { bottom: 7%; inset-inline-end: 4%; width: clamp(140px, 19vw, 310px); animation-delay: -12s; }

/* Replace expensive full-page glass filters with visually similar solid layers. */
.site-header,
.hero-shell,
.download-card,
.panel,
.platform-chip,
.how-card,
.site-footer,
.ad-shell,
.prose-card,
.modal-backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.result-section,
.processing-section,
.ready-section,
.supported-section,
.how-section,
.service-ribbon {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}
.platform-chip,
.how-card,
.panel,
.download-card,
.service-ribbon-grid {
    contain: layout paint style;
}

@keyframes ambientGlide {
    from { transform: translate3d(-2%, -2%, 0) scale(.96); }
    to { transform: translate3d(7%, 5%, 0) scale(1.05); }
}
@keyframes ambientLogoFloat {
    from { transform: translate3d(0, 0, 0) rotate(-10deg); }
    to { transform: translate3d(28px, -22px, 0) rotate(5deg); }
}

/* Dark theme */
html[data-theme="dark"] {
    --page: #0d1422;
    --page-warm: #111927;
    --ink: #edf3fc;
    --ink-soft: #ced9e9;
    --muted: #9aa9be;
    --line: rgba(132, 151, 181, .23);
    --line-strong: rgba(145, 163, 193, .35);
    --surface: rgba(20, 31, 49, .94);
    --surface-strong: rgba(24, 36, 56, .98);
    --surface-soft: rgba(18, 29, 47, .9);
    --accent: #8b7cf6;
    --accent-2: #4ab5ce;
    --accent-3: #70a0ef;
    --accent-soft: rgba(126, 111, 239, .14);
    --success: #51c49e;
    --danger: #ef7185;
    --warning: #e0a85e;
    --shadow-xl: 0 32px 90px rgba(0, 0, 0, .36);
    --shadow: 0 20px 58px rgba(0, 0, 0, .26);
    --shadow-soft: 0 10px 34px rgba(0, 0, 0, .18);
    color-scheme: dark;
    background: var(--page);
}
html[data-theme="dark"] body {
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(117, 96, 234, .11), transparent 29rem),
        radial-gradient(circle at 88% 24%, rgba(48, 154, 184, .1), transparent 30rem),
        linear-gradient(180deg, #0d1422 0%, #111a2a 48%, #0b1320 100%);
}
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .footer-logo { content: url('/assets/img/logo-dark.svg'); }
html[data-theme="dark"] .site-header {
    background: rgba(13, 21, 35, .96);
    border-bottom-color: rgba(128, 149, 181, .18);
    box-shadow: 0 9px 30px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .main-nav a { color: #a9b5c8; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active { color: #a99dfc; }
html[data-theme="dark"] .language-switch,
html[data-theme="dark"] .theme-toggle {
    background: #172338;
    color: #d7e0ee;
    border-color: rgba(139, 158, 190, .25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .hero-shell {
    border-color: rgba(137, 156, 187, .22);
    background:
        radial-gradient(circle at 86% 15%, rgba(133, 112, 242, .13), transparent 36%),
        radial-gradient(circle at 7% 90%, rgba(57, 174, 198, .11), transparent 38%),
        linear-gradient(135deg, #162238, #111d30);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, .035);
}
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .download-card label,
html[data-theme="dark"] .preview-copy h2,
html[data-theme="dark"] .panel-title-row h2,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .how-card h3,
html[data-theme="dark"] .ready-card h2,
html[data-theme="dark"] .prose-card h1,
html[data-theme="dark"] .prose-card h2 { color: #f2f6fc; }
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .how-card p,
html[data-theme="dark"] .prose-card p,
html[data-theme="dark"] .prose-card li { color: var(--muted); }
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .platform-chip,
html[data-theme="dark"] .how-card,
html[data-theme="dark"] .prose-card {
    background: #152136;
    border-color: rgba(137, 156, 187, .22);
    box-shadow: var(--shadow);
}
html[data-theme="dark"] .download-card::before { opacity: .22; }
html[data-theme="dark"] .download-card-head .card-mark,
html[data-theme="dark"] .hero-mini-platforms span,
html[data-theme="dark"] .platform-logo {
    background: #1b2941;
    border-color: rgba(139, 158, 190, .2);
}
html[data-theme="dark"] .url-field input {
    background: #101a2b;
    color: #eef4fd;
    border-color: rgba(144, 163, 194, .33);
}
html[data-theme="dark"] .url-field input:focus { background: #101a2b; }
html[data-theme="dark"] .url-field input::placeholder { color: #73839a; }
html[data-theme="dark"] .paste-button,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .modal-close { background: #233149; color: #d2dcec; }
html[data-theme="dark"] .form-badges span {
    background: #18243a;
    color: #aab8cc;
    border-color: rgba(139, 158, 190, .22);
}
html[data-theme="dark"] .service-ribbon-grid { background: rgba(122, 144, 177, .2); border-color: rgba(137, 156, 187, .22); }
html[data-theme="dark"] .service-ribbon-grid > div { background: #152136; }
html[data-theme="dark"] .ad-shell { background: #131f33; border-color: rgba(139, 158, 190, .28); }
html[data-theme="dark"] .ad-label { background: #1d2a40; color: #aab6c8; border-color: rgba(139, 158, 190, .23); }
html[data-theme="dark"] .preview-image-wrap { background: linear-gradient(135deg, #202f48, #16243a); }
html[data-theme="dark"] .source-badge { background: rgba(62, 159, 188, .13); color: #78cee3; }
html[data-theme="dark"] .format-tabs { background: #101a2b; }
html[data-theme="dark"] .format-tab { color: #9cabc0; }
html[data-theme="dark"] .format-tab.active { color: #b7adff; background: #22304a; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .quality-choice label {
    background: #101a2b;
    color: #c8d3e4;
    border-color: rgba(139, 158, 190, .25);
}
html[data-theme="dark"] .quality-choice input:checked + label { background: rgba(121, 105, 235, .16); color: #d8d2ff; border-color: rgba(145, 128, 244, .6); }
html[data-theme="dark"] .progress-track { background: #0d1727; }
html[data-theme="dark"] .progress-steps li { background: #101a2b; color: #a5b3c7; border-color: rgba(139, 158, 190, .22); }
html[data-theme="dark"] .progress-steps li.active { background: rgba(121, 105, 235, .14); color: #c8c0ff; }
html[data-theme="dark"] .progress-steps li.done { background: rgba(46, 167, 125, .12); color: #7edbb9; border-color: rgba(74, 185, 145, .3); }
html[data-theme="dark"] .site-footer { background: #0e1828; border-top-color: rgba(132, 151, 181, .2); color: #9dacbf; }
html[data-theme="dark"] .legal-note { background: #152136; border-color: rgba(132, 151, 181, .2); }
html[data-theme="dark"] .copyright { border-top-color: rgba(132, 151, 181, .2); }
html[data-theme="dark"] .modal-backdrop { background: rgba(3, 8, 16, .72); }
html[data-theme="dark"] .modal-card { background: #131f33; border-color: rgba(139, 158, 190, .24); }
html[data-theme="dark"] .ambient-grid { opacity: .16; }
html[data-theme="dark"] .ambient-logo { opacity: .075; }

/* Lightweight mode is activated automatically on constrained devices or data-saver. */
.performance-lite .ambient-glow,
.performance-lite .ambient-logo,
.page-hidden .ambient-glow,
.page-hidden .ambient-logo { animation-play-state: paused !important; }
.performance-lite .ambient-logo-b,
.performance-lite .ambient-glow-b { display: none; }
.performance-lite .preview-shine,
.performance-lite .ready-orbit,
.performance-lite .hero-watermark span,
.performance-lite .hero-watermark > img { animation: none !important; }
.performance-lite .js-reveal .reveal-card { opacity: 1; transform: none; transition: none; }

@media (max-width: 680px) {
    .theme-toggle-text { display: none; }
    .theme-toggle { width: 42px; padding: 0; justify-content: center; }
    .nav-actions { gap: 7px; }
    .ambient-logo-b,
    .ambient-glow-b { display: none; }
    .ambient-logo-a { width: 180px; opacity: .04; filter: blur(1.8px); }
    .ambient-glow-a { width: 420px; opacity: .08; }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-glow,
    .ambient-logo { animation: none !important; }
}
.page-atmosphere::before { content: none !important; }

/* Esa°Downloader 1.2.4 — Brave/Android responsive hardening */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Grid/flex children must be allowed to shrink. This prevents long URLs,
   translated text, and Android font scaling from expanding the page. */
.container,
.nav-wrap,
.nav-actions,
.hero-shell,
.hero-copy,
.download-card,
.download-card form,
.url-row,
.url-field,
.result-grid,
.processing-grid,
.media-preview,
.preview-copy,
.quality-panel,
.panel,
.service-ribbon-grid,
.platform-grid,
.footer-grid {
    min-width: 0;
    max-width: 100%;
}

.hero-copy h1,
.hero-lead,
.hero-note,
.download-card-head strong,
.download-card-head span,
.download-card label,
.section-heading h2,
.section-heading p,
.preview-copy h2,
.platform-chip strong,
.how-card h3,
.how-card p,
.ready-card h2,
.ready-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* URLs should remain readable and must never dictate the layout width. */
.url-field input {
    min-width: 0;
    max-width: 100%;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Use a single-column hero earlier. Some Android browsers expose a wider
   layout viewport when accessibility text scaling is enabled. */
@media (max-width: 1100px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        min-height: auto;
    }
    .hero-copy,
    .download-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .hero-watermark {
        inset-inline-end: -7%;
        opacity: .08;
    }
}

@media (max-width: 760px) {
    .container {
        width: 100%;
        padding-inline: 14px;
    }
    .site-header {
        position: sticky;
    }
    .nav-wrap {
        width: 100%;
        min-height: 70px;
        padding-block: 9px;
        gap: 9px;
        flex-wrap: nowrap;
    }
    .brand {
        min-width: 0;
        max-width: calc(100% - 148px);
    }
    .brand img {
        width: min(47vw, 178px);
        max-width: 100%;
    }
    .nav-actions {
        flex: 0 0 auto;
        margin-inline-start: auto;
    }
    .language-switch {
        min-width: 0;
        white-space: nowrap;
    }
    .hero-section {
        padding-top: 14px;
    }
    .hero-shell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 25px 16px;
        gap: 26px;
        overflow: hidden;
        border-radius: 24px;
    }
    .hero-copy {
        width: 100%;
        text-align: start;
    }
    .hero-copy h1 {
        width: 100%;
        margin-block: 12px 14px;
        font-size: clamp(1.85rem, 8.7vw, 2.55rem);
        line-height: 1.22;
    }
    .hero-lead {
        font-size: clamp(.98rem, 4.2vw, 1.08rem);
        line-height: 1.75;
    }
    .hero-note {
        font-size: clamp(.8rem, 3.5vw, .9rem);
    }
    .hero-mini-platforms {
        max-width: 100%;
        overflow: hidden;
    }
    .download-card {
        width: 100%;
        max-width: 100%;
        padding: 19px 14px;
        border-radius: 21px;
        overflow: hidden;
    }
    .download-card-head {
        min-width: 0;
    }
    .download-card-head > div:last-child {
        min-width: 0;
    }
    .url-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 11px;
    }
    .url-field {
        width: 100%;
        min-width: 0;
    }
    .url-field input {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        font-size: 16px;
        padding-inline-start: 43px;
        padding-inline-end: 82px;
    }
    .primary-button {
        width: 100%;
        max-width: 100%;
    }
    .form-badges {
        max-width: 100%;
    }
    .form-badges span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .hero-watermark {
        width: 250px;
        inset-inline-end: -70px;
        top: 35%;
        opacity: .055;
    }
    .ambient-logo-a {
        inset-inline-start: -40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 10px;
    }
    .nav-wrap {
        gap: 7px;
    }
    .brand {
        max-width: calc(100% - 134px);
    }
    .brand img {
        width: min(46vw, 160px);
    }
    .language-switch {
        padding: 7px 9px;
        font-size: .72rem;
    }
    .language-globe {
        display: none;
    }
    .theme-toggle {
        width: 40px;
        min-height: 40px;
    }
    .hero-shell {
        padding: 22px 13px;
        border-radius: 21px;
    }
    .hero-copy h1 {
        font-size: clamp(1.72rem, 9.4vw, 2.2rem);
    }
    .download-card {
        padding: 17px 12px;
    }
    .download-card-head .card-mark {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
    .paste-button {
        padding-inline: 10px;
    }
}

/* Extra safety for large accessibility fonts. */
@media (max-width: 760px) and (min-resolution: 1.5dppx) {
    .hero-copy h1 {
        max-inline-size: 100%;
    }
    .download-card,
    .url-row,
    .url-field,
    .url-field input {
        inline-size: 100%;
        max-inline-size: 100%;
    }
}

/* =========================================================
   Esa°Downloader 1.3.0 — Smart user experience layer
   Lightweight: no continuous canvas, no third-party UI code.
   ========================================================= */
.link-intelligence {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(81, 166, 173, .22);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(235, 250, 250, .82), rgba(242, 246, 255, .8));
    color: var(--ink-soft);
}
.link-intelligence-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow-soft);
    color: var(--accent);
    font-weight: 900;
}
.link-intelligence-icon img { width: 25px; height: 25px; object-fit: contain; }
.link-intelligence-copy { min-width: 0; display: grid; }
.link-intelligence-copy strong { color: var(--ink); overflow-wrap: anywhere; }
.link-intelligence-copy small { color: var(--muted); font-size: .78rem; }
.link-intelligence-check {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(22, 132, 100, .12);
    color: var(--success);
    font-weight: 900;
}

.smart-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 10px;
}
.smart-preset {
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(188, 202, 221, .72);
    border-radius: 14px;
    background: rgba(250, 252, 255, .8);
    color: #526079;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.smart-preset span { display: inline-block; margin-inline-end: 5px; color: var(--accent); }
.smart-preset:hover { transform: translateY(-1px); border-color: rgba(103, 89, 232, .38); }
.smart-preset.active {
    border-color: rgba(103, 89, 232, .62);
    color: #5146c2;
    background: linear-gradient(135deg, rgba(239, 237, 255, .96), rgba(235, 248, 252, .9));
    box-shadow: 0 8px 24px rgba(80, 69, 190, .09);
}
.smart-advice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    padding: 11px 13px;
    border-inline-start: 3px solid var(--accent);
    border-radius: 12px;
    background: rgba(103, 89, 232, .065);
}
.smart-advice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.smart-advice > div { min-width: 0; display: grid; }
.smart-advice strong { color: var(--ink); font-size: .9rem; }
.smart-advice small { color: var(--muted); font-size: .76rem; }

.quality-choice label {
    justify-content: flex-start;
    min-width: 0;
}
.quality-choice-title {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}
.quality-choice-estimate {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    text-align: end;
}
.quality-choice input:checked + label .quality-choice-estimate { color: #6d63a9; }

.processing-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 4px;
}
.processing-tool {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(188, 202, 221, .68);
    border-radius: 15px;
    background: rgba(248, 251, 254, .76);
    cursor: pointer;
}
.processing-tool input { position: absolute; opacity: 0; pointer-events: none; }
.processing-tool > span:last-child { min-width: 0; display: grid; }
.processing-tool strong { color: var(--ink); font-size: .84rem; }
.processing-tool small { color: var(--muted); font-size: .72rem; }
.tool-switch {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 99px;
    background: #cbd4e1;
    transition: background .18s ease;
}
.tool-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 7px rgba(37, 53, 80, .22);
    transition: transform .18s ease;
}
.processing-tool input:checked + .tool-switch { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.processing-tool input:checked + .tool-switch::after { transform: translateX(16px); }
html[dir="rtl"] .processing-tool input:checked + .tool-switch::after { transform: translateX(-16px); }
.processing-tool:has(input:focus-visible) { outline: 3px solid rgba(103, 89, 232, .14); }
.processing-tool.tool-unavailable { opacity: .48; cursor: not-allowed; }

.expiry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(169, 109, 31, .18);
    border-radius: 15px;
    background: rgba(255, 248, 234, .72);
}
.expiry-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(169, 109, 31, .12);
    color: var(--warning);
    font-size: 1.15rem;
}
.expiry-card > div { min-width: 0; display: grid; }
.expiry-card strong { color: var(--ink); }
.expiry-card small { color: var(--muted); }
.download-final.is-expired { opacity: .52; pointer-events: none; filter: grayscale(.5); }
.ready-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
}
.ready-actions .secondary-button { width: 100%; margin: 0; }

.recent-section { padding: 0 0 28px; }
.recent-card { padding: clamp(20px, 3vw, 30px); }
.recent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}
.recent-head h2 { margin: 3px 0 2px; color: var(--ink); }
.recent-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.text-button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 800;
    padding: 8px 4px;
}
.recent-list { display: grid; gap: 9px; }
.recent-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgba(188, 202, 221, .64);
    border-radius: 15px;
    background: rgba(249, 251, 254, .78);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.recent-item:hover { transform: translateY(-1px); border-color: rgba(103, 89, 232, .38); }
.recent-item-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.recent-item > span:nth-child(2) { min-width: 0; display: grid; }
.recent-item strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item small { color: var(--muted); }
.recent-item-action {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--success);
    background: rgba(22, 132, 100, .1);
    font-size: .75rem;
    font-weight: 850;
}

html[data-theme="dark"] .link-intelligence,
html[data-theme="dark"] .smart-preset,
html[data-theme="dark"] .processing-tool,
html[data-theme="dark"] .recent-item {
    background: rgba(20, 32, 51, .86);
    border-color: rgba(135, 153, 184, .24);
}
html[data-theme="dark"] .link-intelligence-icon { background: rgba(34, 49, 74, .9); }
html[data-theme="dark"] .link-intelligence-copy strong,
html[data-theme="dark"] .smart-advice strong,
html[data-theme="dark"] .processing-tool strong,
html[data-theme="dark"] .expiry-card strong,
html[data-theme="dark"] .recent-head h2,
html[data-theme="dark"] .recent-item strong { color: #edf3fb; }
html[data-theme="dark"] .smart-preset { color: #aab7ca; }
html[data-theme="dark"] .smart-preset.active {
    color: #ddd8ff;
    background: linear-gradient(135deg, rgba(111, 92, 226, .22), rgba(41, 135, 161, .17));
}
html[data-theme="dark"] .smart-advice { background: rgba(114, 96, 229, .12); }
html[data-theme="dark"] .expiry-card {
    background: rgba(141, 91, 26, .12);
    border-color: rgba(193, 132, 53, .22);
}
html[data-theme="dark"] .quality-choice-estimate { color: #8999b1; }
html[data-theme="dark"] .quality-choice input:checked + label .quality-choice-estimate { color: #b9b0f3; }

@media (max-width: 820px) {
    .smart-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .processing-tools { grid-template-columns: 1fr; }
    .ready-actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .link-intelligence { grid-template-columns: 38px minmax(0, 1fr) 25px; padding: 10px; }
    .link-intelligence-icon { width: 38px; height: 38px; }
    .smart-presets { gap: 7px; }
    .smart-preset { min-height: 44px; font-size: .74rem; padding-inline: 7px; }
    .smart-advice { align-items: flex-start; }
    .quality-choice label { flex-wrap: wrap; }
    .quality-choice-estimate { width: 100%; padding-inline-start: 26px; text-align: start; }
    .recent-head { display: grid; }
    .recent-item { grid-template-columns: 40px minmax(0, 1fr); }
    .recent-item-icon { width: 40px; height: 40px; }
    .recent-item-action { display: none; }
}

html.performance-lite .smart-preset,
html.performance-lite .recent-item,
html.performance-lite .tool-switch,
html.performance-lite .tool-switch::after { transition: none; }

/* Esa 1.4.1 — legal pages only; stable UI recovery */
.legal-document { max-width: 940px; }
.legal-document .lead { font-size: 1.08rem; line-height: 1.9; color: var(--text); }
.document-kicker { display: inline-flex; margin: 0 0 10px !important; padding: 6px 11px; border-radius: 999px; background: rgba(101,88,245,.1); color: var(--accent) !important; font-size: .82rem; font-weight: 850; }
.document-updated { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.legal-document ul, .legal-document ol { padding-inline-start: 1.35rem; }
.legal-document li { margin: 9px 0; line-height: 1.8; }
.document-steps { display: grid; gap: 14px; list-style: none; padding: 0 !important; counter-reset: legalstep; }
.document-steps li { display: grid; grid-template-columns: minmax(130px,.35fr) 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(247,249,253,.72); }
.document-steps strong { color: var(--text); }
.document-steps span { color: var(--muted); line-height: 1.75; }
.faq-list { display: grid; gap: 12px; margin: 26px 0; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: rgba(248,250,253,.75); padding: 0 18px; }
.faq-list summary { cursor: pointer; color: var(--text); font-weight: 800; padding: 18px 0; }
.faq-list details p { margin-top: 0; padding-bottom: 18px; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(101,88,245,.06); }
.privacy-settings-inline { margin-top: 10px; }
html[data-theme="dark"] .knowledge-card, html[data-theme="dark"] .document-steps li, html[data-theme="dark"] .faq-list details { background: rgba(17,29,49,.78); }
html[data-theme="dark"] .footer-links strong { color: #f2f6fc; }
@media (max-width: 980px) { .knowledge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .footer-columns { grid-template-columns: 1fr 1fr; } .knowledge-grid { grid-template-columns: 1fr; } .document-steps li { grid-template-columns: 1fr; gap: 6px; } .contact-panel { align-items: stretch; flex-direction: column; } .copyright { display: grid; } }
@media (max-width: 430px) { .footer-columns { grid-template-columns: 1fr; } }

/* Esa 1.4.1 — rendering safety guards */
html, body { max-width: 100%; overflow-x: hidden; }
.brand img, .footer-logo { height: auto; }
.hero-watermark img, .card-mark img, .preview-placeholder img { object-fit: contain; }
.ad-frame { display: block; width: 100%; max-width: 100%; border: 0; background: transparent; }
.ad-frame[data-frame-error="1"] { display: none !important; }
@media (max-width: 700px) {
  .brand img { max-width: min(220px, 58vw); }
  .hero-shell, .download-card, .panel { min-width: 0; max-width: 100%; }
  .url-field, .url-row, .url-field input { min-width: 0; max-width: 100%; }
}

/* Strict provider-sized advertising hosts (AdSense + Adsterra only). */
.strict-ad-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.strict-ad-shell .ad-label {
    top: -18px;
    inset-inline-start: 0;
    background: var(--surface, #fff);
}
.ad-host-wide { width: 100%; max-width: 970px; }
.ad-host-rectangle { width: min(100%, 336px); max-width: 336px; }
.adsense-host {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
}
.adsense-host-wide { max-width: 970px; }
.adsense-host-rectangle { width: min(100%, 336px); max-width: 336px; margin-inline: auto; }
.adsense-host .adsbygoogle { width: 100% !important; min-width: 0; }
.adsterra-code { display: block; min-width: 0; overflow: visible; text-align: center; }
.adsterra-native-banner { width: 100%; height: auto; }
.strict-ad-shell[data-ad-format="native"] { width: 100%; }
.strict-ad-shell[data-ad-format="banner"] {
    flex: 0 0 var(--ad-fixed-width);
    width: var(--ad-fixed-width);
    max-width: none;
    height: var(--ad-fixed-height);
    min-height: var(--ad-fixed-height) !important;
}
.adsterra-fixed-banner {
    flex: 0 0 var(--ad-fixed-width);
    width: var(--ad-fixed-width);
    height: var(--ad-fixed-height);
    min-height: var(--ad-fixed-height);
    overflow: visible;
}
.adsterra-fixed-banner iframe,
.adsterra-fixed-banner img,
.adsterra-fixed-banner object,
.adsterra-fixed-banner embed {
    display: block;
    width: var(--ad-fixed-width) !important;
    height: var(--ad-fixed-height) !important;
    max-width: none !important;
}
@media (max-width: 680px) {
    .strict-ad-shell[data-ad-format="banner"][data-fixed-mobile="1"] {
        position: relative;
        left: 50%;
        width: min(var(--ad-fixed-width), 100vw);
        transform: translateX(-50%);
    }
    [dir="rtl"] .strict-ad-shell[data-ad-format="banner"][data-fixed-mobile="1"] {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }
}
