/* Download center (/fa/downloads, /downloads). One file for both directions: logical properties only. */
:root {
    --dl-navy: #0b1b33;
    --dl-blue: #004a8d;
    --dl-cyan: #00b4d8;
    --dl-cyan-text: #0e7490;
    --dl-text: #1d2433;
    --dl-muted: #5b6577;
    --dl-line: #e3e8f0;
    --dl-bg-alt: #f5f8fc;
    --dl-radius: 16px;
}

body.dl { color: var(--dl-text); background: #fff; line-height: 1.8; }
body.dl-fa { font-family: 'Vazirmatn', 'Inter', sans-serif; }
body.dl-en { font-family: 'Inter', 'Vazirmatn', sans-serif; }
.dl a { color: var(--dl-cyan-text); }
.dl-mono, .dl code, .dl pre { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.dl-muted { color: var(--dl-muted); }

/* Navigation */
.dl-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-block-end: 1px solid var(--dl-line); padding: 10px 0; }
.dl-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--dl-navy) !important; text-decoration: none; letter-spacing: -.5px; }
.dl-nav-links { display: flex; gap: 22px; margin-inline-start: 24px; }
.dl-nav-links a { color: var(--dl-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.dl-nav-links a.active, .dl-nav-links a:hover { color: var(--dl-cyan-text); }
.dl-lang { border: 1px solid var(--dl-line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; color: var(--dl-text) !important; text-decoration: none; }
.dl-lang:hover { border-color: var(--dl-cyan); }
@media (max-width: 767px) { .dl-nav-links { display: none; } }

/* Hero */
.dl-hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(0,180,216,.25), transparent), linear-gradient(160deg, #0b1b33 0%, #0f2f5c 100%); color: #fff; padding: 72px 0 64px; }
.dl-eyebrow { display: inline-block; color: #7fe3f5; font-weight: 700; font-size: .9rem; letter-spacing: .5px; margin-block-end: 10px; }
.dl-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.35; max-width: 820px; }
.dl-lead { color: #c9d6ea; font-size: 1.12rem; max-width: 720px; margin-block: 14px 26px; }
.dl-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-trust li { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.dl-trust i { color: #7fe3f5; }
.dl-soon-banner { display: flex; gap: 14px; align-items: flex-start; margin-block-start: 28px; background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.45); border-radius: 12px; padding: 14px 18px; max-width: 760px; }
.dl-soon-banner i { color: #ffc107; font-size: 1.3rem; margin-block-start: 4px; }
.dl-soon-banner strong { display: block; }
.dl-soon-banner span { color: #dbe4f2; }
.dl-soon-banner a { color: #7fe3f5; }

/* Sections */
.dl-section { padding: 64px 0; }
.dl-section-alt { background: var(--dl-bg-alt); }
.dl-h2 { font-weight: 800; font-size: 1.7rem; margin-block-end: 28px; color: var(--dl-navy); }
.dl-h2 i { color: var(--dl-cyan); }

/* Product cards */
.dl-card { height: 100%; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 24px; background: #fff; box-shadow: 0 6px 24px rgba(11,27,51,.06); border-block-start: 4px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(11,27,51,.12); }
.dl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-tag { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef3fa; color: var(--dl-blue); }
.dl-tag-platform { background: #e7f8fb; color: var(--dl-cyan-text); }
.dl-card-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--dl-line); aspect-ratio: 16 / 9; background: #0b1b33; }
.dl-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.dl-card:hover .dl-card-shot img { transform: scale(1.03); }
.dl-card-head { display: flex; gap: 14px; align-items: center; }
.dl-card-head img { border-radius: 12px; }
.dl-card h3 { font-weight: 800; font-size: 1.4rem; margin: 0; }
.dl-card h3 small { font-weight: 600; font-size: 1rem; color: var(--dl-muted); }
.dl-tagline { margin: 0; color: var(--dl-muted); font-weight: 600; }
.dl-card > p { margin: 0; }
.dl-bestfor strong { font-size: .92rem; }
.dl-bestfor ul { margin: 6px 0 0; padding-inline-start: 20px; }
.dl-card-actions { margin-block-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block-start: 8px; }
.dl-card-version { font-size: .85rem; color: var(--dl-muted); }

/* Buttons */
.dl-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 20px; font-weight: 700; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; }
.dl-btn-primary { background: linear-gradient(135deg, var(--dl-blue), #0a74c9); color: #fff !important; box-shadow: 0 6px 16px rgba(0,74,141,.25); }
.dl-btn-primary:hover { filter: brightness(1.08); }
.dl-btn-ghost { border-color: var(--dl-line); color: var(--dl-text) !important; background: #fff; justify-content: center; }
.dl-btn-ghost:hover { border-color: var(--dl-cyan); }
.dl-btn-disabled { background: #eef1f5; color: #7a8496 !important; cursor: not-allowed; }
.dl-btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.dl-btn-sub { font-weight: 500; font-size: .85rem; opacity: .85; border-inline-start: 1px solid rgba(255,255,255,.4); padding-inline-start: 10px; }

/* Comparison */
.dl-compare { width: 100%; background: #fff; border-radius: var(--dl-radius); overflow: hidden; border: 1px solid var(--dl-line); border-collapse: separate; border-spacing: 0; }
.dl-compare th, .dl-compare td { padding: 12px 18px; border-block-end: 1px solid var(--dl-line); text-align: center; }
.dl-compare thead th { background: var(--dl-navy); color: #fff; font-weight: 700; }
.dl-compare tbody th { text-align: start; font-weight: 600; }
.dl-compare tbody tr:last-child > * { border-block-end: 0; }
.dl-yes { color: #16a34a; font-size: 1.15rem; }
.dl-no { color: #b6bfcc; }

/* Product page */
.dl-product-hero { background: linear-gradient(160deg, #0b1b33 0%, #0f2f5c 100%); color: #fff; padding: 36px 0 44px; border-block-end: 4px solid var(--accent); }
.dl-crumbs { display: flex; gap: 10px; align-items: center; font-size: .9rem; margin-block-end: 20px; color: #a9b8d0; }
.dl-crumbs a { color: #7fe3f5; text-decoration: none; }
.dl-crumbs i { font-size: .7rem; }
.dl-product-head { display: flex; gap: 20px; align-items: center; }
.dl-product-head img { border-radius: 18px; background: #fff1; }
.dl-product-head h1 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }
.dl-product-hero .dl-tagline { color: #c9d6ea; margin-block: 4px 10px; }
.dl-product-hero .dl-tag { background: rgba(255,255,255,.12); color: #e6f6ff; }

#download > .container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 991px) { #download > .container { grid-template-columns: 1fr; } }
.dl-download { border: 1px solid var(--dl-line); border-radius: var(--dl-radius); background: #fff; box-shadow: 0 6px 24px rgba(11,27,51,.06); overflow: hidden; }
.dl-tabs { display: flex; gap: 4px; background: var(--dl-bg-alt); border-block-end: 1px solid var(--dl-line); padding: 8px 8px 0; }
.dl-tabs button { border: 0; background: transparent; padding: 10px 20px; font-weight: 700; color: var(--dl-muted); border-radius: 10px 10px 0 0; font-family: inherit; }
.dl-tabs button[aria-selected="true"] { background: #fff; color: var(--dl-blue); box-shadow: inset 0 3px 0 var(--dl-cyan); }
.dl-panel { padding: 28px; }
.dl-panel h2 { font-weight: 800; font-size: 1.5rem; margin: 0; }
.dl-panel h2 small { font-size: 1rem; color: var(--dl-muted); font-weight: 600; }
.dl-os-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--dl-line); border-radius: 12px; padding: 18px 20px; margin-block: 18px; background: var(--dl-bg-alt); }
.dl-os { display: flex; gap: 14px; align-items: center; }
.dl-os > i { font-size: 2.1rem; color: #0a74c9; }
.dl-os strong { display: block; font-size: 1.1rem; }
.dl-os span { color: var(--dl-muted); font-size: .92rem; }
.dl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid var(--dl-line); border-radius: 12px; overflow: hidden; }
.dl-facts > div { padding: 12px 16px; border-block-end: 1px solid var(--dl-line); }
.dl-facts > div:nth-child(odd):not(.dl-fact-wide) { border-inline-end: 1px solid var(--dl-line); }
.dl-facts .dl-fact-wide { grid-column: 1 / -1; }
.dl-facts > div:last-child { border-block-end: 0; }
.dl-facts dt { font-size: .82rem; color: var(--dl-muted); font-weight: 600; }
.dl-facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-all; }
@media (max-width: 575px) { .dl-facts { grid-template-columns: 1fr; } .dl-facts > div { border-inline-end: 0 !important; } }
.dl-hash { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dl-hash code { background: #0b1b33; color: #9ef0ff; padding: 8px 12px; border-radius: 8px; font-size: .86rem; word-break: break-all; flex: 1 1 320px; direction: ltr; text-align: left; }
.dl-copy { border: 1px solid var(--dl-line); background: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 600; font-family: inherit; }
.dl-copy.done { border-color: #16a34a; color: #16a34a; }
.dl-signed { color: #15803d; }
.dl-notes { border: 1px solid var(--dl-line); border-radius: 12px; padding: 12px 16px; margin-block-end: 14px; }
.dl-notes summary { font-weight: 700; cursor: pointer; }
.dl-notes ul { margin: 8px 0 0; }
.dl-soon { text-align: center; padding: 48px 28px; }
.dl-soon > i { font-size: 2.4rem; color: #f59e0b; }
.dl-soon h2 { font-weight: 800; margin-block: 10px; }
.dl-side { border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 22px; background: var(--dl-bg-alt); }
.dl-side h3 { font-size: 1.05rem; font-weight: 800; }
.dl-side ul { padding-inline-start: 20px; }

/* Gallery and lightbox */
.dl-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.dl-gallery figure { margin: 0; }
.dl-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--dl-line); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 6px 20px rgba(11,27,51,.08); }
.dl-shot img { width: 100%; display: block; }
.dl-gallery figcaption { margin-block-start: 8px; color: var(--dl-muted); font-size: .92rem; text-align: center; }
.dl-lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: transparent; }
.dl-lightbox::backdrop { background: rgba(5,12,24,.85); }
.dl-lightbox img { max-width: 96vw; max-height: 86vh; display: block; border-radius: 10px; }
.dl-lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.dl-lightbox-close { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; border: 0; background: rgba(0,0,0,.55); color: #fff; width: 38px; height: 38px; border-radius: 50%; }

/* Features, verify, archive */
.dl-feature { height: 100%; border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 22px; background: #fff; }
.dl-feature > i { font-size: 1.6rem; color: var(--accent); }
.dl-feature h3 { font-size: 1.05rem; font-weight: 800; margin-block: 12px 6px; }
.dl-feature p { margin: 0; color: var(--dl-muted); font-size: .95rem; }
.dl-step { position: relative; height: 100%; border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 22px 22px 14px; background: #fff; }
.dl-step h3 { font-size: 1.1rem; font-weight: 800; }
.dl-step-n { position: absolute; inset-block-start: -14px; inset-inline-start: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--dl-cyan); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dl-step pre { background: #0b1b33; color: #9ef0ff; padding: 10px 14px; border-radius: 8px; text-align: left; white-space: pre-wrap; word-break: break-all; }
.dl-step pre code { color: inherit; }
.dl-archive { width: 100%; border: 1px solid var(--dl-line); }
.dl-archive th, .dl-archive td { padding: 10px 14px; border-block-end: 1px solid var(--dl-line); vertical-align: middle; }
.dl-archive th { background: var(--dl-bg-alt); }
.dl-hash-sm { font-size: .75rem; word-break: break-all; }

