@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-ExtraBold.ttf") format("truetype");
    font-weight: 800;
}

:root {
    --dl-bg: #07100f;
    --dl-bg-2: #0e151b;
    --dl-card: rgba(14, 22, 27, .84);
    --dl-card-strong: rgba(19, 29, 36, .94);
    --dl-line: rgba(225, 237, 248, .13);
    --dl-text: #f6fbff;
    --dl-muted: #9fb0bd;
    --dl-green: #39e58f;
    --dl-cyan: #25d5ef;
    --dl-yellow: #f4cb49;
    --dl-rose: #ff6f91;
    --dl-blue: #7aa7ff;
    --dl-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

html[data-theme="light"] {
    --dl-bg: #f4f8fb;
    --dl-bg-2: #ffffff;
    --dl-card: rgba(255, 255, 255, .9);
    --dl-card-strong: #ffffff;
    --dl-line: rgba(16, 29, 43, .12);
    --dl-text: #101821;
    --dl-muted: #65717d;
    --dl-shadow: 0 22px 60px rgba(27, 46, 64, .12);
}

body {
    font-family: "Noto Kufi Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dl-bg);
    color: var(--dl-text);
}

.download-shell {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--dl-green) 7%, transparent), transparent 30%),
        linear-gradient(230deg, color-mix(in srgb, var(--dl-blue) 9%, transparent), transparent 34%),
        linear-gradient(180deg, var(--dl-bg), var(--dl-bg-2));
}

.dl-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background:
        radial-gradient(circle at 50% 42%, rgba(32, 216, 246, .18), transparent 28%),
        radial-gradient(circle at 48% 48%, rgba(37, 212, 134, .2), transparent 36%),
        #05090b;
    color: #f8fbff;
    transition: opacity .48s ease, visibility .48s ease;
}

html.intro-seen .dl-intro {
    display: none;
}

.dl-intro.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dl-intro-mark {
    width: min(34vw, 152px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 24px 70px rgba(32, 216, 246, .3));
}

.dl-intro svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.intro-logo-box {
    fill: rgba(17, 28, 34, .7);
    stroke: rgba(32, 216, 246, .72);
    stroke-width: 3;
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: intro-draw 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.intro-logo-bolt {
    fill: url(#introBolt);
    stroke: rgba(255, 255, 255, .72);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 330;
    stroke-dashoffset: 330;
    opacity: 0;
    animation: intro-draw .82s .46s cubic-bezier(.2, .8, .2, 1) forwards, intro-pop .72s 1s ease forwards;
}

.dl-intro strong {
    font-size: clamp(1.45rem, 4vw, 2.6rem);
    font-weight: 1000;
    letter-spacing: 0;
}

.dl-intro span {
    color: rgba(248, 251, 255, .68);
    font-size: .78rem;
    font-weight: 900;
}

@keyframes intro-draw {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes intro-pop {
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.container {
    width: min(100% - 36px, 1180px);
    margin: 0 auto;
}

.dl-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--dl-line);
    background: color-mix(in srgb, var(--dl-bg) 86%, transparent);
    backdrop-filter: blur(18px);
}

.dl-nav,
.dl-actions,
.dl-desktop-nav,
.dl-brand,
.dl-hero-actions,
.dl-card-top,
.dl-card-footer,
.dl-section-head,
.dl-footer-grid,
.dl-info-head,
.dl-panel-head {
    display: flex;
    align-items: center;
}

.dl-nav {
    min-height: 74px;
    justify-content: space-between;
    gap: 14px;
}

.dl-brand {
    gap: 10px;
    color: var(--dl-text);
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
}

.dl-brand img {
    flex: 0 0 auto;
    border-radius: 13px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--dl-cyan) 24%, transparent);
}

.dl-brand span {
    min-width: 0;
}

.dl-brand strong,
.dl-brand small {
    display: block;
    line-height: 1.1;
}

.dl-brand strong {
    font-size: 1.02rem;
    font-weight: 1000;
}

.dl-brand small {
    color: var(--dl-muted);
    font-size: .66rem;
    font-weight: 800;
}

.dl-desktop-nav {
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--dl-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--dl-card) 78%, transparent);
    justify-content: center;
    margin-inline: auto;
}

.dl-desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--dl-muted);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
    transition: .2s ease;
}

.dl-desktop-nav a:hover {
    color: var(--dl-text);
    background: color-mix(in srgb, var(--dl-green) 13%, transparent);
}

.dl-actions {
    gap: 8px;
}

.dl-icon-btn,
.dl-pill,
.dl-primary,
.dl-secondary {
    min-height: 42px;
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--dl-card-strong) 78%, transparent);
    color: var(--dl-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dl-icon-btn {
    width: 42px;
    padding: 0;
    cursor: pointer;
}

.dl-lang {
    font-size: .78rem;
}

.dl-pill {
    padding: 0 14px;
}

.dl-primary {
    border-color: transparent;
    color: #06100e;
    background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green) 48%, var(--dl-cyan));
    box-shadow: 0 14px 32px color-mix(in srgb, var(--dl-green) 22%, transparent);
}

.dl-secondary {
    padding: 0 16px;
}

.dl-primary:hover,
.dl-secondary:hover,
.dl-pill:hover,
.dl-icon-btn:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--dl-green) 42%, var(--dl-line));
}

.full {
    width: 100%;
}

.dl-drawer {
    width: min(340px, calc(100vw - 46px));
    gap: 13px;
    padding: 14px;
    overflow-y: auto;
    background: color-mix(in srgb, var(--dl-bg) 94%, #000);
}

.dl-drawer .drawer-head {
    min-height: 46px;
}

.dl-drawer .drawer-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
}

.dl-drawer .drawer-nav a {
    min-height: 52px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
    color: var(--dl-text) !important;
    background: color-mix(in srgb, var(--dl-card-strong) 82%, transparent) !important;
    border-color: var(--dl-line) !important;
    box-shadow: none !important;
    text-align: inherit !important;
    font-size: .82rem !important;
}

.dl-drawer .drawer-nav a:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--dl-green) 36%, var(--dl-line)) !important;
}

.dl-drawer .drawer-nav a:last-child:nth-child(odd) {
    grid-column: auto !important;
    min-height: 52px !important;
    justify-content: flex-start !important;
}

.dl-drawer .drawer-nav a i,
.dl-drawer .drawer-action i {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    color: #07100f !important;
    background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green) 52%, var(--dl-cyan)) !important;
    box-shadow: 0 10px 18px color-mix(in srgb, var(--dl-green) 16%, transparent) !important;
    font-size: .95rem !important;
}

.dl-drawer .drawer-actions {
    gap: 7px !important;
}

.dl-drawer .drawer-action {
    min-height: 48px !important;
    color: var(--dl-text) !important;
    background: color-mix(in srgb, var(--dl-card-strong) 82%, transparent) !important;
    border-color: var(--dl-line) !important;
}

.dl-hero {
    padding: 54px 0 28px;
}

.dl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
    align-items: center;
    gap: 34px;
}

.dl-kicker {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid color-mix(in srgb, var(--dl-green) 34%, var(--dl-line));
    border-radius: 999px;
    color: var(--dl-green);
    background: color-mix(in srgb, var(--dl-green) 10%, transparent);
    font-weight: 1000;
    font-size: .76rem;
}

.dl-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.3rem, 6vw, 5.35rem);
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 780px;
}

.dl-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--dl-muted);
    font-size: 1.02rem;
    line-height: 1.9;
    font-weight: 700;
}

.dl-hero-actions {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.dl-hero-actions .dl-primary,
.dl-hero-actions .dl-secondary {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 18px;
}

.dl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin-top: 24px;
}

.dl-stats span {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--dl-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--dl-card) 82%, transparent);
    color: var(--dl-muted);
    font-size: .72rem;
    font-weight: 900;
}

.dl-stats strong {
    color: var(--dl-text);
    font-size: 1.38rem;
    line-height: 1;
}

.dl-hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.dl-hero-visual > img {
    width: min(100%, 500px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 34px 80px rgba(0, 0, 0, .34));
}

.dl-floating-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid var(--dl-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--dl-card-strong) 86%, transparent);
    color: var(--dl-text);
    box-shadow: var(--dl-shadow);
    font-size: .78rem;
    font-weight: 1000;
}

.dl-floating-card i {
    color: var(--dl-yellow);
}

.card-a {
    top: 58px;
    inset-inline-start: 6px;
}

.card-b {
    bottom: 68px;
    inset-inline-end: 0;
}

.card-c {
    bottom: 14px;
    inset-inline-start: 52px;
}

.dl-section {
    padding: 40px 0;
}

.dl-section-soft {
    background: color-mix(in srgb, var(--dl-card) 28%, transparent);
    border-top: 1px solid var(--dl-line);
    border-bottom: 1px solid var(--dl-line);
}

.dl-section-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dl-section-head.compact {
    justify-content: flex-start;
    display: block;
}

.dl-section-head span {
    display: block;
    color: var(--dl-green);
    font-size: .76rem;
    font-weight: 1000;
}

.dl-section-head h2 {
    margin: 4px 0 0;
    color: var(--dl-text);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.dl-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.dl-category-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--dl-line);
    border-radius: 22px;
    background: var(--dl-card);
    color: var(--dl-text);
    text-decoration: none;
    box-shadow: var(--dl-shadow);
}

.dl-category-card > i,
.dl-card-icon,
.dl-info-head i {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #07100f;
    background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green) 52%, var(--dl-cyan));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--dl-green) 18%, transparent);
}

.dl-category-card span {
    min-width: 0;
}

.dl-category-card strong,
.dl-category-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-category-card strong {
    font-weight: 1000;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dl-category-card small {
    color: var(--dl-muted);
    font-size: .75rem;
    font-weight: 800;
}

.dl-category-card b {
    grid-column: 1 / -1;
    justify-self: end;
    color: var(--dl-cyan);
}

.dl-search {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--dl-yellow) 32%, var(--dl-line));
    border-radius: 19px;
    background: color-mix(in srgb, var(--dl-card-strong) 84%, transparent);
}

.dl-search i {
    color: var(--dl-yellow);
    font-size: 1.25rem;
}

.dl-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dl-text);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.dl-search input::placeholder {
    color: var(--dl-muted);
}

.dl-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dl-download-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dl-line);
    border-radius: 22px;
    background: var(--dl-card-strong);
    box-shadow: var(--dl-shadow);
}

html[data-theme="dark"] .dl-download-card,
html[data-theme="dark"] .dl-card-body {
    background: var(--dl-card-strong);
    color: var(--dl-text);
}

.dl-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--dl-cyan) 20%, transparent), transparent 28%),
        radial-gradient(circle at 18% 82%, color-mix(in srgb, var(--dl-yellow) 18%, transparent), transparent 26%),
        linear-gradient(135deg, color-mix(in srgb, var(--dl-green) 16%, transparent), transparent),
        color-mix(in srgb, var(--dl-card-strong) 78%, #050b0c);
}

.dl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 34px;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .24));
    transition: transform .35s ease;
}

.dl-download-card:hover .dl-card-media img {
    transform: scale(1.035);
}

.dl-free-badge,
.dl-license-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 1000;
}

.dl-free-badge {
    top: 10px;
    inset-inline-start: 10px;
    color: #07100f;
    background: var(--dl-green);
}

.dl-license-badge {
    bottom: 10px;
    inset-inline-end: 10px;
    color: var(--dl-text);
    background: rgba(7, 16, 15, .74);
    border: 1px solid rgba(255, 255, 255, .16);
}

.dl-fav {
    top: 10px;
    inset-inline-end: 10px;
}

.dl-card-body {
    padding: 14px;
}

.dl-card-top {
    gap: 10px;
}

.dl-card-top > div {
    min-width: 0;
}

.dl-card-top h3,
.dl-card-top small {
    display: block;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-card-top h3 {
    color: var(--dl-text);
    font-size: .98rem;
    font-weight: 1000;
}

.dl-card-top small {
    color: var(--dl-muted);
    font-size: .7rem;
    font-weight: 800;
}

.dl-card-body p {
    min-height: 48px;
    margin: 11px 0;
    color: var(--dl-muted);
    line-height: 1.65;
    font-size: .78rem;
    font-weight: 700;
}

.dl-meta-row,
.dl-tag-row,
.dl-detail-meta,
.dl-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-meta-row span,
.dl-tag-row span,
.dl-detail-meta span,
.dl-platforms span {
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid var(--dl-line);
    color: var(--dl-muted);
    background: color-mix(in srgb, var(--dl-bg) 46%, transparent);
    font-size: .68rem;
    font-weight: 900;
}

.dl-tag-row {
    margin-top: 8px;
}

.dl-card-footer {
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
}

.dl-card-footer a,
.dl-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dl-text);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 1000;
}

.dl-rating i {
    color: var(--dl-yellow);
}

.dl-category-hero,
.dl-detail-page {
    padding: 34px 0 54px;
}

.dl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--dl-muted);
    font-size: .8rem;
    font-weight: 900;
}

.dl-breadcrumb a {
    color: var(--dl-muted);
    text-decoration: none;
}

.dl-breadcrumb strong {
    color: var(--dl-text);
}

.dl-category-title {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--dl-line);
    border-radius: 26px;
    background: var(--dl-card);
    box-shadow: var(--dl-shadow);
}

.dl-category-title > i {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #07100f;
    background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green) 52%, var(--dl-cyan));
    font-size: 1.65rem;
}

.dl-category-title span {
    color: var(--dl-green);
    font-size: .75rem;
    font-weight: 1000;
}

.dl-category-title h1 {
    margin: 3px 0 6px;
    color: var(--dl-text);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.dl-category-title p {
    margin: 0;
    color: var(--dl-muted);
    font-weight: 800;
}

.dl-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.dl-category-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--dl-line);
    border-radius: 999px;
    color: var(--dl-muted);
    background: var(--dl-card);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
}

.dl-category-tabs a.is-active {
    color: #07100f;
    border-color: transparent;
    background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green));
}

.dl-detail-grid,
.dl-info-grid,
.dl-review-layout {
    display: grid;
    gap: 16px;
}

.dl-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
    align-items: start;
}

.dl-detail-visual,
.dl-download-panel,
.dl-info-panel,
.dl-reviews,
.dl-review-form {
    border: 1px solid var(--dl-line);
    border-radius: 26px;
    background: var(--dl-card-strong);
    box-shadow: var(--dl-shadow);
}

.dl-detail-visual {
    position: relative;
    overflow: hidden;
}

.dl-detail-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    box-sizing: border-box;
    padding: 76px;
    background:
        radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--dl-cyan) 20%, transparent), transparent 28%),
        radial-gradient(circle at 18% 82%, color-mix(in srgb, var(--dl-yellow) 18%, transparent), transparent 26%),
        linear-gradient(135deg, color-mix(in srgb, var(--dl-green) 16%, transparent), transparent),
        color-mix(in srgb, var(--dl-card-strong) 78%, #050b0c);
    display: block;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .24));
}

.dl-detail-source {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #07100f;
    background: var(--dl-green);
    font-size: .75rem;
    font-weight: 1000;
}

.dl-download-panel {
    padding: 22px;
}

.dl-panel-head {
    gap: 12px;
}

.dl-panel-head small {
    color: var(--dl-green);
    font-weight: 1000;
}

.dl-panel-head h1 {
    margin: 4px 0 0;
    color: var(--dl-text);
    font-size: clamp(1.65rem, 4vw, 3rem);
    line-height: 1.12;
}

.dl-download-panel p,
.dl-info-panel p,
.dl-review-form p {
    color: var(--dl-muted);
    line-height: 1.85;
    font-weight: 750;
}

.dl-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dl-platforms {
    margin: 14px 0 18px;
}

.dl-action-stack {
    display: grid;
    gap: 9px;
}

.dl-action-stack .dl-primary,
.dl-action-stack .dl-secondary {
    min-height: 52px;
    border-radius: 18px;
}

.dl-rating-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
    color: var(--dl-muted);
    font-size: .78rem;
    font-weight: 900;
}

.dl-rating-strip span {
    color: var(--dl-yellow);
}

.dl-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.dl-info-panel,
.dl-reviews,
.dl-review-form {
    padding: 18px;
}

.dl-info-head {
    gap: 10px;
    margin-bottom: 10px;
}

.dl-info-head h2 {
    margin: 0;
    color: var(--dl-text);
    font-size: 1.08rem;
}

.dl-install-code {
    display: block;
    width: 100%;
    overflow-x: auto;
    padding: 13px;
    border: 1px solid var(--dl-line);
    border-radius: 15px;
    background: color-mix(in srgb, #000 34%, var(--dl-card));
    color: var(--dl-green);
    direction: ltr;
    text-align: left;
    font-size: .85rem;
}

.dl-reviews {
    margin-top: 16px;
}

.dl-review-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
    align-items: start;
}

.dl-review-list {
    display: grid;
    gap: 10px;
}

.dl-review-card {
    padding: 14px;
    border: 1px solid var(--dl-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--dl-bg) 48%, transparent);
}

.dl-review-card strong,
.dl-review-card span {
    display: block;
}

.dl-review-card span {
    color: var(--dl-yellow);
    margin-top: 3px;
}

.dl-review-card p {
    margin: 9px 0 0;
    color: var(--dl-muted);
}

.dl-review-form {
    display: grid;
    gap: 12px;
}

.dl-review-form h3 {
    margin: 0;
    color: var(--dl-text);
}

.dl-review-form label {
    display: grid;
    gap: 6px;
    color: var(--dl-muted);
    font-size: .82rem;
    font-weight: 900;
}

.dl-review-form .input {
    color: var(--dl-text);
    background: color-mix(in srgb, var(--dl-bg) 52%, transparent);
}

.dl-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed var(--dl-line);
    border-radius: 24px;
    color: var(--dl-muted);
}

.dl-empty i {
    color: var(--dl-green);
    font-size: 1.7rem;
}

.dl-empty.mini {
    min-height: 130px;
}

.dl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.dl-pagination a,
.dl-pagination span,
.dl-pagination strong {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dl-line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--dl-text);
    background: color-mix(in srgb, var(--dl-card-strong) 80%, transparent);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 1000;
}

.dl-pagination span {
    opacity: .52;
}

.dl-pagination a:hover {
    border-color: color-mix(in srgb, var(--dl-green) 48%, var(--dl-line));
}

.dl-footer {
    padding: 26px 0;
    border-top: 1px solid var(--dl-line);
    background: color-mix(in srgb, var(--dl-bg) 88%, transparent);
}

.dl-footer-grid {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.dl-footer p {
    max-width: 600px;
    margin: 0;
    color: var(--dl-muted);
    font-size: .78rem;
    line-height: 1.8;
    font-weight: 800;
}

.dl-developer {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--dl-line);
    border-radius: 999px;
    padding: 0 13px;
    color: var(--dl-text);
    background: color-mix(in srgb, var(--dl-card-strong) 78%, transparent);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 1000;
}

.dl-developer i {
    color: var(--dl-green);
}

.admin-nav-button {
    min-height: 44px;
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dl-text);
    background: color-mix(in srgb, var(--dl-card-strong) 82%, transparent);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-link {
    color: var(--dl-green);
    text-decoration: none;
    font-weight: 900;
}

.admin-check-featured {
    margin: 8px 0 18px;
}

.is-filtered-out {
    display: none !important;
}

html[dir="ltr"] .dl-card-footer a i {
    transform: rotate(180deg);
}

@media (max-width: 1400px) {
    .dl-desktop-nav {
        display: none;
    }
}

@media (max-width: 1120px) {
    .dl-desktop-nav {
        display: none;
    }

    .dl-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dl-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .dl-hero {
        padding-top: 28px;
    }

    .dl-hero-grid,
    .dl-detail-grid,
    .dl-info-grid,
    .dl-review-layout {
        grid-template-columns: 1fr;
    }

    .dl-hero-visual {
        min-height: 300px;
        order: -1;
    }

    .dl-floating-card {
        display: none;
    }

    .dl-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-actions .dl-pill {
        display: none;
    }
}

@media (max-width: 640px) {
    .dl-nav {
        min-height: 64px;
    }

    .dl-brand span {
        display: none;
    }

    .dl-hero h1 {
        font-size: 2.15rem;
    }

    .dl-hero p {
        font-size: .88rem;
        line-height: 1.8;
    }

    .dl-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dl-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .dl-stats span {
        min-height: 62px;
        padding: 9px;
        border-radius: 15px;
        font-size: .58rem;
    }

    .dl-stats strong {
        font-size: 1rem;
    }

    .dl-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .dl-download-card {
        border-radius: 16px;
    }

    .dl-card-body {
        padding: 8px;
    }

    .dl-card-media img {
        padding: 20px;
    }

    .dl-card-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        font-size: .68rem;
    }

    .dl-card-top {
        gap: 5px;
    }

    .dl-card-top h3 {
        font-size: .62rem;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .dl-card-top small,
    .dl-card-body p,
    .dl-meta-row,
    .dl-tag-row,
    .dl-license-badge {
        display: none;
    }

    .dl-free-badge {
        top: 6px;
        inset-inline-start: 6px;
        padding: 4px 6px;
        font-size: .52rem;
    }

    .favorite-chip.dl-fav {
        display: none;
    }

    .dl-card-footer {
        margin-top: 8px;
    }

    .dl-rating {
        display: none;
    }

    .dl-card-footer a {
        width: 100%;
        justify-content: center;
        min-height: 30px;
        padding: 0 6px;
        border-radius: 10px;
        color: #07100f;
        background: linear-gradient(135deg, var(--dl-yellow), var(--dl-green));
        font-size: .58rem;
    }

    .dl-category-grid {
        grid-template-columns: 1fr;
    }

    .dl-category-card {
        min-height: 82px;
        border-radius: 18px;
    }

    .dl-category-title {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 16px;
        border-radius: 20px;
    }

    .dl-category-title > i {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .dl-category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }

    .dl-category-tabs a {
        justify-content: center;
        min-width: 0;
        padding: 0 9px;
        text-align: center;
    }

    .dl-detail-visual img {
        aspect-ratio: 1 / 1;
        padding: 56px;
    }

    .dl-download-panel,
    .dl-info-panel,
    .dl-reviews,
    .dl-review-form {
        border-radius: 20px;
        padding: 15px;
    }
}

@media (max-width: 370px) {
    .dl-card-grid {
        gap: 6px;
    }

    .dl-card-body {
        padding: 7px;
    }

    .dl-card-top h3 {
        font-size: .56rem;
    }
}

@media (min-width: 861px) {
    .dl-desktop-nav {
        display: flex !important;
    }
}

@media (max-width: 860px) {
    .dl-desktop-nav {
        display: none !important;
    }
}
