.page-header {
    width: var(--container);
    margin: 0 auto;
    padding: 34px 0 28px;
}

.page-header__inner {
    padding: clamp(26px, 4vw, 44px);
}

.page-header h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.07em;
    line-height: 1;
}

.page-header p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.listing-shell,
.reader-shell,
.detail-shell {
    width: var(--container);
    margin: 0 auto;
}

.listing-shell {
    padding-top: 18px;
}

.content-panel {
    padding: clamp(20px, 3vw, 34px);
}

.source-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(105, 232, 255, 0.15);
    border-radius: 14px;
    background: rgba(105, 232, 255, 0.055);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.source-note strong {
    color: var(--text);
}

.source-note code {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

.card-grid--content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-image {
    min-height: 195px;
}

.card-image img {
    min-height: 195px;
}

.card-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 17, 0.45), transparent 58%);
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 13px;
    right: 13px;
}

.card-meta {
    min-height: 22px;
}

.card-title-link {
    transition: color 160ms ease;
}

.card-title-link:hover {
    color: var(--blue);
}

.card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-action {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.card-action:hover {
    color: var(--cyan);
}

.efi-grid .list-card {
    min-height: 100%;
}

.efi-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 14px 0 0;
}

.efi-specs div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.45;
}

.efi-specs strong {
    color: var(--subtle);
    font-weight: 500;
}

.efi-specs span {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.reader-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 20px;
    padding-top: 22px;
}

.reader-content {
    min-width: 0;
    padding: clamp(22px, 4vw, 46px);
}

.reader-content>.prose {
    max-width: 800px;
}

.reader-aside {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.reader-aside h2 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: -0.03em;
}

.reader-aside p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.reader-aside dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 0;
}

.reader-aside dt {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reader-aside dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.reader-error {
    text-align: center;
}

.reader-error h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.reader-error p {
    color: var(--muted);
}

.access-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
    align-items: start;
    gap: 20px;
    width: var(--container);
    margin: 0 auto;
    padding-top: 34px;
}

.access-panel {
    padding: clamp(24px, 4vw, 44px);
}

.access-panel h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.07em;
    line-height: 1.02;
}

.access-panel>p:not(.eyebrow) {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0;
}

.countdown-ring {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(127, 190, 255, 0.35);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 28%, rgba(157, 219, 255, 0.25), transparent 43%),
        rgba(105, 151, 255, 0.10);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.20), 0 10px 26px rgba(68, 120, 255, 0.14);
}

.countdown-ring strong {
    color: var(--text);
    font-family: "DM Mono", monospace;
    font-size: 30px;
    letter-spacing: -0.08em;
}

.countdown-copy strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.countdown-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.ad-slot {
    display: grid;
    min-height: 280px;
    place-items: center;
    padding: 25px;
    border: 1px dashed rgba(118, 176, 255, 0.30);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(98, 153, 255, 0.12), rgba(145, 96, 255, 0.08)),
        var(--surface);
    text-align: center;
}

.ad-slot__inner {
    max-width: 260px;
}

.ad-slot__label {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot h2 {
    margin: 16px 0 8px;
    font-size: 22px;
    letter-spacing: -0.05em;
}

.ad-slot p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card .card-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.video-card .card-image img {
    min-height: 0;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    background: rgba(5, 8, 17, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #fff;
    transform: translate(-50%, -50%);
}

.playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.playlist-card {
    padding: 23px;
}

.playlist-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.playlist-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 20px;
    padding-top: 28px;
}

.detail-main {
    min-width: 0;
    overflow: hidden;
}

.detail-hero-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background:
        linear-gradient(140deg, rgba(67, 132, 255, 0.75), rgba(133, 75, 235, 0.72)),
        #121a32;
}

.detail-hero-image img {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
}

.detail-hero-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 10, 18, 0.56), transparent 65%);
    content: "";
}

.detail-content {
    padding: clamp(24px, 4vw, 46px);
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.07em;
    line-height: 1.03;
}

.detail-lead {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.detail-sidebar h2 {
    margin: 0 0 16px;
    font-size: 17px;
    letter-spacing: -0.04em;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.info-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list dt {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.info-list dd {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.detail-actions {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.detail-actions .button {
    width: 100%;
}

@media (max-width: 980px) {

    .card-grid--content,
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .access-shell,
    .reader-shell,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .reader-aside,
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .page-header {
        padding-top: 18px;
    }

    .card-grid--content,
    .video-grid,
    .playlist-grid {
        grid-template-columns: 1fr;
    }

    .access-shell {
        padding-top: 18px;
    }

    .countdown-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-hero-image,
    .detail-hero-image img {
        min-height: 210px;
    }
}

.remote-content {
    margin-top: 56px;
    padding-top: 42px;
    border-top: 1px solid var(--border);
}

.remote-content__heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3.5vw, 34px);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.remote-content__heading p:not(.eyebrow) {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.remote-content__body {
    margin-top: 28px;
}

.detail-hero-image:empty {
    min-height: 210px;
}

.guide-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.guide-library-card {
    overflow: hidden;
}

.guide-library-card__visual {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px;
}

.guide-library-card__visual::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 19% 22%, rgba(129, 222, 255, 0.54), transparent 32%),
        radial-gradient(circle at 82% 84%, rgba(157, 97, 255, 0.46), transparent 42%);
    content: "";
}

.guide-library-card__visual--hackinos {
    background:
        linear-gradient(140deg, rgba(23, 101, 255, 0.66), rgba(8, 13, 31, 0.55) 52%, rgba(82, 213, 185, 0.48)),
        #0d1427;
}

.guide-library-card__visual--opencore {
    background:
        linear-gradient(140deg, rgba(105, 78, 255, 0.64), rgba(11, 14, 30, 0.52) 50%, rgba(255, 132, 75, 0.34)),
        #141127;
}

.guide-library-card__number,
.guide-library-card__visual .status {
    position: relative;
    z-index: 1;
}

.guide-library-card__number {
    color: rgba(255, 255, 255, 0.88);
    font-family: "DM Mono", monospace;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.08em;
}

.guide-library-card__body {
    padding: 24px;
}

.guide-library-card__body .eyebrow {
    margin-bottom: 12px;
}

.guide-library-card__body h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(23px, 3vw, 30px);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.guide-library-card__body>p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 760px) {
    .guide-library-grid {
        grid-template-columns: 1fr;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.courses-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-xl);
}

.courses-toolbar__search {
    flex: 1;
    min-width: 0;
}

.courses-toolbar__search .field {
    min-width: 0;
}

.courses-count {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 8px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    white-space: nowrap;
}

.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}

.category-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-filter:hover {
    border-color: rgba(124, 183, 255, 0.48);
    background: rgba(104, 174, 255, 0.11);
    color: var(--text);
    transform: translateY(-1px);
}

.category-filter.is-active {
    border-color: rgba(123, 184, 255, 0.48);
    background: linear-gradient(135deg, rgba(64, 132, 255, 0.34), rgba(143, 79, 248, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 30px 0 8px;
}

.pagination:empty {
    display: none;
}

.pagination button {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    cursor: pointer;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pagination button:hover:not(:disabled) {
    border-color: rgba(123, 184, 255, 0.48);
    background: rgba(104, 174, 255, 0.11);
    color: var(--text);
    transform: translateY(-1px);
}

.pagination button.is-active {
    border-color: rgba(140, 188, 255, 0.50);
    background: linear-gradient(135deg, rgba(65, 133, 255, 0.80), rgba(143, 82, 245, 0.80));
    color: #fff;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.34;
}

.pagination__ellipsis {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

@media (max-width: 620px) {
    .courses-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .courses-count {
        padding: 0 4px;
    }

    .course-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -12px;
        padding-right: 12px;
        scrollbar-width: thin;
    }

    .category-filter {
        flex: 0 0 auto;
    }

    .pagination {
        gap: 5px;
    }

    .pagination button {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }
}

.courses-free-toggle {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.courses-free-toggle:hover {
    border-color: rgba(123, 184, 255, 0.48);
    background: rgba(104, 174, 255, 0.10);
    color: var(--text);
}

.courses-free-toggle input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--blue);
}

.course-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10.5px;
    line-height: 1.4;
}

.course-rating__star {
    color: #ffca60;
    font-size: 13px;
}

.course-price {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.course-price--offer {
    color: var(--orange);
}

.course-students {
    color: var(--subtle);
    font-size: 11px;
}

.course-card-image {
    background: linear-gradient(145deg, #273f99, #20194f);
}

.course-card-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.course-card-image .card-image__fallback {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

@media (max-width: 820px) {
    .courses-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .courses-toolbar__search {
        flex-basis: 100%;
    }

    .courses-free-toggle {
        min-height: 39px;
    }
}

@media (max-width: 620px) {
    .courses-free-toggle {
        width: fit-content;
    }
}

.course-detail__image {
    width: 100%;
    max-height: 390px;
    margin: 0 0 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.course-detail__notice {
    margin-top: 26px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 189, 111, 0.25);
    border-radius: 14px;
    background: rgba(255, 189, 111, 0.08);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.course-detail__notice strong {
    color: var(--orange);
}

.guide-card-image {
    min-height: 195px;
    background:
        radial-gradient(circle at 22% 22%, rgba(92, 190, 255, 0.34), transparent 32%),
        radial-gradient(circle at 82% 82%, rgba(168, 94, 255, 0.40), transparent 42%),
        linear-gradient(135deg, #1a3b96, #151630 57%, #4c236f);
}

.guide-card-image>img {
    width: 100%;
    height: 100%;
    min-height: 195px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.list-card:hover .guide-card-image>img {
    transform: scale(1.06);
}

.guide-image-fallback {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 195px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 25%, rgba(98, 195, 255, 0.42), transparent 31%),
        radial-gradient(circle at 80% 78%, rgba(173, 92, 255, 0.44), transparent 41%),
        linear-gradient(135deg, #2049b3, #171838 55%, #552279);
}

.guide-image-fallback::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    content: "";
}

.guide-image-fallback span {
    position: relative;
    display: grid;
    width: 57px;
    height: 57px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.94);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.efi-card-image {
    min-height: 205px;
    background:
        radial-gradient(circle at 22% 20%, rgba(81, 192, 255, 0.40), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(144, 91, 255, 0.46), transparent 43%),
        linear-gradient(135deg, #1e4bb6, #151732 55%, #512574);
}

.efi-card-image>img {
    width: 100%;
    height: 100%;
    min-height: 205px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.list-card:hover .efi-card-image>img {
    transform: scale(1.06);
}

.efi-image-fallback {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 205px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 21%, rgba(92, 198, 255, 0.40), transparent 30%),
        radial-gradient(circle at 81% 79%, rgba(168, 94, 255, 0.45), transparent 42%),
        linear-gradient(135deg, #1c48aa, #151735 58%, #542678);
}

.efi-image-fallback::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 17px;
    content: "";
}

.efi-image-fallback span {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23);
    color: rgba(255, 255, 255, 0.95);
    font-family: "DM Mono", monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.05em;
}

.efi-detail-hero {
    min-height: 330px;
    background:
        radial-gradient(circle at 20% 20%, rgba(93, 193, 255, 0.38), transparent 32%),
        radial-gradient(circle at 78% 78%, rgba(158, 95, 255, 0.45), transparent 42%),
        linear-gradient(135deg, #1d4cb2, #151832 56%, #54247b);
}

.efi-detail-hero img {
    width: 100%;
    min-height: 330px;
    object-fit: cover;
}

.efi-detail-hero__fallback {
    display: grid;
    min-height: 330px;
    place-items: center;
}

.efi-detail-hero__fallback span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.93);
    font-family: "DM Mono", monospace;
    font-size: 20px;
    letter-spacing: -0.07em;
}

.detail-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.efi-share {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.efi-share__label {
    margin: 0 0 10px;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.efi-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-button {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.share-button:hover {
    border-color: rgba(130, 185, 255, 0.46);
    background: rgba(104, 173, 255, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.share-button--facebook:hover {
    border-color: rgba(82, 139, 255, 0.65);
    color: #77a9ff;
}

.share-button--x:hover {
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--text);
}

.share-button--reddit:hover {
    border-color: rgba(255, 105, 71, 0.70);
    color: #ff856c;
}

.share-button--whatsapp:hover {
    border-color: rgba(81, 227, 144, 0.62);
    color: #64ec9d;
}

.share-button--copy.is-copied {
    border-color: rgba(88, 223, 160, 0.55);
    background: rgba(88, 223, 160, 0.11);
    color: var(--green);
}

@media (max-width: 620px) {

    .efi-detail-hero,
    .efi-detail-hero img,
    .efi-detail-hero__fallback {
        min-height: 220px;
    }

    .efi-detail-hero__fallback span {
        width: 66px;
        height: 66px;
        border-radius: 21px;
        font-size: 16px;
    }
}

.game-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 20px;
    width: var(--container);
    margin: 0 auto;
    padding-top: 28px;
}

.game-detail-main {
    min-width: 0;
    overflow: hidden;
}

.game-detail-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 25%, rgba(77, 165, 255, 0.42), transparent 30%),
        radial-gradient(circle at 79% 74%, rgba(187, 94, 255, 0.47), transparent 42%),
        linear-gradient(135deg, #173b9c, #14152e 56%, #59237d);
}

.game-detail-hero img {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
}

.game-detail-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 18, 0.46), transparent 62%);
    content: "";
    pointer-events: none;
}

.game-detail-hero__fallback {
    display: grid;
    min-height: 340px;
    place-items: center;
}

.game-detail-hero__fallback span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.94);
    font-family: "DM Mono", monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.game-detail-content {
    padding: clamp(24px, 4vw, 46px);
}

.game-detail-content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.07em;
    line-height: 1.03;
}

.game-detail-prose {
    margin-top: 34px;
}

.game-hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.game-hub-tab {
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.game-hub-tab:hover {
    background: rgba(111, 170, 255, 0.10);
    color: var(--text);
}

.game-hub-tab.is-active {
    border-color: rgba(129, 186, 255, 0.26);
    background: linear-gradient(135deg, rgba(73, 138, 255, 0.31), rgba(146, 82, 240, 0.30));
    color: #fff;
}

.game-hub-page-shell {
    width: var(--container);
    margin: 0 auto;
    padding-top: 28px;
}

.game-hub-page-header {
    padding: clamp(24px, 4vw, 44px);
}

.game-hub-page-header>.text-link {
    display: inline-block;
    margin-bottom: 24px;
}

.game-hub-page-header h1 {
    max-width: 800px;
    margin: 0;
    color: var(--text);
    font-size: clamp(36px, 5.5vw, 64px);
    letter-spacing: -0.07em;
    line-height: 1.02;
}

.game-hub-page-header>p:not(.eyebrow) {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.game-hub-content {
    margin-top: 20px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.download-card {
    padding: 26px;
}

.download-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.download-card h2 {
    margin: 16px 0 8px;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.045em;
    line-height: 1.18;
}

.download-card>p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.download-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.download-card__meta div {
    min-width: 0;
}

.download-card__meta dt {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.download-card__meta dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-hub-card-image {
    min-height: 205px;
    background:
        radial-gradient(circle at 20% 24%, rgba(92, 188, 255, 0.38), transparent 30%),
        radial-gradient(circle at 82% 79%, rgba(181, 91, 255, 0.44), transparent 42%),
        linear-gradient(135deg, #1d43a0, #14152f 56%, #55247a);
}

.game-hub-card-image>img {
    width: 100%;
    height: 100%;
    min-height: 205px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.list-card:hover .game-hub-card-image>img {
    transform: scale(1.06);
}

.game-hub-card__fallback {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 205px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 23% 23%, rgba(92, 195, 255, 0.41), transparent 30%),
        radial-gradient(circle at 81% 79%, rgba(174, 95, 255, 0.45), transparent 42%),
        linear-gradient(135deg, #1e4bb0, #161633 57%, #57247d);
}

.game-hub-card__fallback::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
    content: "";
}

.game-hub-card__fallback span {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .game-detail-shell {
        grid-template-columns: 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {

    .game-detail-shell,
    .game-hub-page-shell {
        padding-top: 16px;
    }

    .game-detail-hero,
    .game-detail-hero img,
    .game-detail-hero__fallback {
        min-height: 220px;
    }

    .game-hub-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-hub-tab {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .download-card__meta {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Game detail: consistent rounded outer surface and banner
   ========================================================= */

.game-detail-main {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
}

.game-detail-main::before,
.game-detail-main::after {
    border-radius: inherit;
}

.game-detail-hero {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

.game-detail-hero img,
.game-detail-hero__fallback {
    border-radius: inherit;
}

.game-detail-content {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Preserve rounding even when Liquid Glass pseudo-layers are used. */
.game-detail-main.liquid-glass::before,
.game-detail-main.liquid-glass::after {
    border-radius: var(--radius-xl);
}

/* The same consistency for game sub-pages: Downloads, Guides, Tools. */
.game-hub-page-header {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
}

.game-hub-page-header::before,
.game-hub-page-header::after {
    border-radius: inherit;
}

.download-card,
.game-hub-content>.empty-state,
.game-hub-content>.error-state {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.download-card::before,
.download-card::after,
.game-hub-content>.empty-state::before,
.game-hub-content>.empty-state::after,
.game-hub-content>.error-state::before,
.game-hub-content>.error-state::after {
    border-radius: inherit;
}

@media (max-width: 620px) {

    .game-detail-main,
    .game-hub-page-header,
    .download-card,
    .game-hub-content>.empty-state,
    .game-hub-content>.error-state {
        border-radius: var(--radius-lg) !important;
    }

    .game-detail-hero {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .game-detail-content {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}

/* Game listing cards: ensure media and glass layer respect card radius. */
.list-card.liquid-glass {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.list-card.liquid-glass::before,
.list-card.liquid-glass::after {
    border-radius: inherit;
}

.list-card .card-image,
.list-card .card-image img,
.list-card .card-image__fallback {
    border-radius: 0;
}

.game-resource-reader-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 20px;
    width: var(--container);
    margin: 0 auto;
    padding-top: 28px;
}

.game-resource-reader-main {
    min-width: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.game-resource-reader-main::before,
.game-resource-reader-main::after,
.game-resource-reader-aside::before,
.game-resource-reader-aside::after {
    border-radius: inherit;
}

.game-resource-reader-content {
    padding: clamp(24px, 4vw, 46px);
}

.game-resource-reader-content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.07em;
    line-height: 1.04;
}

.game-resource-reader-content>.eyebrow {
    margin-top: 20px;
}

.game-resource-reader-cover {
    width: 100%;
    max-height: 430px;
    margin: -4px 0 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.game-resource-reader-back {
    display: inline-block;
    margin-bottom: 22px;
}

.game-resource-markdown {
    margin-top: 34px;
}

.game-resource-markdown> :first-child {
    margin-top: 0;
}

.game-resource-markdown h1,
.game-resource-markdown h2,
.game-resource-markdown h3,
.game-resource-markdown h4 {
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.22;
}

.game-resource-markdown h2 {
    margin-top: 42px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 26px;
}

.game-resource-markdown h3 {
    margin-top: 30px;
    font-size: 21px;
}

.game-resource-markdown p,
.game-resource-markdown li {
    color: var(--muted);
    line-height: 1.82;
}

.game-resource-markdown a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(114, 168, 255, 0.35);
    text-underline-offset: 3px;
}

.game-resource-markdown pre {
    position: relative;
    overflow-x: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: #080c15;
}

.game-resource-markdown code {
    padding: 2px 6px;
    border: 1px solid rgba(124, 168, 255, 0.20);
    border-radius: 6px;
    background: rgba(113, 158, 255, 0.10);
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 0.84em;
}

.game-resource-markdown pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: #dce8ff;
}

.game-resource-markdown blockquote {
    margin: 24px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--cyan);
    border-radius: 0 12px 12px 0;
    background: rgba(105, 232, 255, 0.07);
    color: var(--text);
}

.game-resource-markdown img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: var(--radius-lg);
}

.game-resource-reader-aside {
    position: sticky;
    top: 100px;
    min-height: 0;
    padding: 22px;
    border-radius: var(--radius-xl);
}

.game-resource-reader-aside h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -0.04em;
}

.game-resource-reader-aside>p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .game-resource-reader-shell {
        grid-template-columns: 1fr;
    }

    .game-resource-reader-aside {
        position: static;
    }
}

@media (max-width: 620px) {
    .game-resource-reader-shell {
        padding-top: 16px;
    }

    .game-resource-reader-main,
    .game-resource-reader-aside {
        border-radius: var(--radius-lg);
    }

    .game-resource-reader-content {
        padding: 24px 20px 32px;
    }

    .game-resource-reader-cover {
        max-height: 250px;
        border-radius: 14px;
    }
}

/* =========================================================
   EFI Library: custom Liquid Glass filters
   ========================================================= */

.efi-filters {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(230px, 1.75fr) repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.efi-filter-label {
    display: block;
    margin: 0 0 7px 3px;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.efi-search-field {
    display: block;
    min-width: 0;
}

.efi-search-field__control {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.efi-search-field:focus-within .efi-search-field__control {
    border-color: rgba(104, 187, 255, 0.72);
    background: rgba(102, 166, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(100, 174, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.efi-search-field__icon {
    flex: 0 0 auto;
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 20px;
    line-height: 1;
    transform: rotate(-15deg);
}

.efi-search-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.efi-search-input::placeholder {
    color: var(--subtle);
}

.efi-search-input::-webkit-search-cancel-button {
    cursor: pointer;
    filter: invert(1);
}

.glass-select {
    position: relative;
    min-width: 0;
}

.glass-select__trigger {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 0 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.glass-select__trigger:hover,
.glass-select.is-open .glass-select__trigger {
    border-color: rgba(111, 187, 255, 0.55);
    background: rgba(103, 166, 255, 0.10);
    box-shadow: 0 0 0 4px rgba(100, 174, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.glass-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glass-select__chevron {
    flex: 0 0 auto;
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
}

.glass-select.is-open .glass-select__chevron {
    transform: rotate(180deg);
}

.glass-select__menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    min-width: 100%;
    max-height: 270px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(138, 194, 255, 0.28);
    border-radius: 17px;
    background: rgba(13, 19, 34, 0.89);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

:root[data-theme="light"] .glass-select__menu {
    background: rgba(245, 249, 255, 0.88);
    box-shadow: 0 20px 45px rgba(39, 66, 127, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.glass-select.is-open .glass-select__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.glass-select__menu::-webkit-scrollbar {
    width: 0;
    display: none;
}

.glass-select__menu {
    scrollbar-width: none;
}

.glass-select__menu button {
    display: flex;
    width: 100%;
    min-height: 37px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.glass-select__menu button:hover,
.glass-select__menu button[aria-selected="true"] {
    border-color: rgba(113, 184, 255, 0.24);
    background: linear-gradient(135deg, rgba(77, 144, 255, 0.26), rgba(147, 87, 242, 0.22));
    color: var(--text);
}

.glass-select__menu button[aria-selected="true"]::after {
    margin-left: auto;
    color: var(--cyan);
    content: "✓";
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

.glass-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.efi-reset-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.efi-reset-button:hover {
    border-color: rgba(122, 189, 255, 0.45);
    background: rgba(102, 171, 255, 0.11);
    color: var(--text);
    transform: translateY(-1px);
}

.efi-reset-button span {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 16px;
}

@media (max-width: 1120px) {
    .efi-filters {
        grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(145px, 1fr));
    }

    .efi-reset-button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .efi-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .efi-search-field {
        grid-column: 1 / -1;
    }

    .efi-reset-button {
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 500px) {
    .efi-filters {
        grid-template-columns: 1fr;
    }

    .efi-search-field,
    .efi-reset-button {
        grid-column: auto;
    }
}

/* =========================================================
   HackinOS Guides: custom Liquid Glass filters
   Reuses the shared .glass-select component from EFI.
   ========================================================= */

.guide-filters {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(250px, 1.7fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-xl);
    overflow: visible;
}

@media (max-width: 980px) {
    .guide-filters {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, 0.8fr));
    }

    .guide-filters .efi-reset-button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 700px) {
    .guide-filters {
        grid-template-columns: 1fr 1fr;
    }

    .guide-filters .efi-search-field {
        grid-column: 1 / -1;
    }

    .guide-filters .efi-reset-button {
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 500px) {
    .guide-filters {
        grid-template-columns: 1fr;
    }

    .guide-filters .efi-search-field,
    .guide-filters .efi-reset-button {
        grid-column: auto;
    }
}

/* =========================================================
   HackinOS Tools Library
   ========================================================= */

.tools-filters {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(240px, 1.65fr) repeat(3, minmax(160px, 0.9fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.tool-card-image {
    min-height: 210px;
    background:
        radial-gradient(circle at 19% 22%, rgba(99, 218, 255, 0.39), transparent 31%),
        radial-gradient(circle at 81% 80%, rgba(172, 91, 255, 0.46), transparent 42%),
        linear-gradient(135deg, #1e4bac, #151630 57%, #59257d);
}

.tool-card-image>img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.list-card:hover .tool-card-image>img {
    transform: scale(1.06);
}

.tool-image-fallback {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 210px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 22%, rgba(99, 216, 255, 0.42), transparent 30%),
        radial-gradient(circle at 80% 79%, rgba(174, 94, 255, 0.44), transparent 42%),
        linear-gradient(135deg, #1c4cad, #151733 56%, #57257e);
}

.tool-image-fallback::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
    content: "";
}

.tool-image-fallback span {
    position: relative;
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool-price {
    font-size: 12px;
    font-weight: 800;
}

.tool-price--free {
    color: var(--green);
}

.tool-price--paid {
    color: var(--orange);
}

.tool-reader-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 20px;
    width: var(--container);
    margin: 0 auto;
    padding-top: 28px;
}

.tool-reader-main {
    min-width: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tool-reader-main::before,
.tool-reader-main::after,
.tool-reader-aside::before,
.tool-reader-aside::after {
    border-radius: inherit;
}

.tool-reader-content {
    padding: clamp(24px, 4vw, 46px);
}

.tool-reader-content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.07em;
    line-height: 1.04;
}

.tool-reader-cover {
    width: 100%;
    max-height: 430px;
    margin: -4px 0 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.tool-reader-back {
    display: inline-block;
    margin-bottom: 22px;
}

.tool-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
    padding: 23px;
    border-radius: var(--radius-lg);
}

.tool-contact-panel .eyebrow {
    margin-bottom: 10px;
}

.tool-contact-panel h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.045em;
}

.tool-contact-panel p:not(.eyebrow) {
    max-width: 580px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.tool-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 390px;
}

.tool-contact-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tool-contact-button:hover {
    border-color: rgba(124, 188, 255, 0.50);
    background: rgba(104, 173, 255, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.tool-contact-button>span:first-child {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 13px;
}

.tool-reader-markdown {
    margin-top: 38px;
}

.tool-reader-markdown> :first-child {
    margin-top: 0;
}

.tool-reader-markdown h1,
.tool-reader-markdown h2,
.tool-reader-markdown h3,
.tool-reader-markdown h4 {
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.22;
}

.tool-reader-markdown h2 {
    margin-top: 42px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 26px;
}

.tool-reader-markdown h3 {
    margin-top: 30px;
    font-size: 21px;
}

.tool-reader-markdown p,
.tool-reader-markdown li {
    color: var(--muted);
    line-height: 1.82;
}

.tool-reader-markdown a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(114, 168, 255, 0.35);
    text-underline-offset: 3px;
}

.tool-reader-markdown pre {
    position: relative;
    overflow-x: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: #080c15;
}

.tool-reader-markdown code {
    padding: 2px 6px;
    border: 1px solid rgba(124, 168, 255, 0.20);
    border-radius: 6px;
    background: rgba(113, 158, 255, 0.10);
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 0.84em;
}

.tool-reader-markdown pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: #dce8ff;
}

.tool-reader-aside {
    position: sticky;
    top: 100px;
    min-height: 0;
    padding: 22px;
    border-radius: var(--radius-xl);
}

.tool-reader-aside h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -0.04em;
}

.tool-reader-aside>p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .tools-filters {
        grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(145px, 0.85fr));
    }

    .tools-filters .efi-reset-button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 980px) {
    .tool-reader-shell {
        grid-template-columns: 1fr;
    }

    .tool-reader-aside {
        position: static;
    }

    .tool-contact-panel {
        grid-template-columns: 1fr;
    }

    .tool-contact-buttons {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 760px) {
    .tools-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tools-filters .efi-search-field {
        grid-column: 1 / -1;
    }

    .tools-filters .efi-reset-button {
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 620px) {
    .tools-filters {
        grid-template-columns: 1fr;
    }

    .tools-filters .efi-search-field,
    .tools-filters .efi-reset-button {
        grid-column: auto;
    }

    .tool-reader-shell {
        padding-top: 16px;
    }

    .tool-reader-main,
    .tool-reader-aside {
        border-radius: var(--radius-lg);
    }

    .tool-reader-content {
        padding: 24px 20px 32px;
    }

    .tool-reader-cover {
        max-height: 250px;
        border-radius: 14px;
    }

    .tool-contact-button {
        flex: 1 1 calc(50% - 8px);
    }
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    align-items: start;
    gap: 20px;
    width: var(--container);
    margin: 0 auto;
    padding-top: 24px;
}

.contact-primary {
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius-xl);
}

.contact-primary::before,
.contact-primary::after,
.contact-card::before,
.contact-card::after,
.contact-help::before,
.contact-help::after {
    border-radius: inherit;
}

.contact-primary__intro {
    max-width: 720px;
}

.contact-primary__intro h2,
.contact-card h2,
.contact-help h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.contact-primary__intro h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.contact-primary__intro>p:not(.eyebrow),
.contact-card>p:not(.eyebrow),
.contact-help>div>p:not(.eyebrow) {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.78;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.contact-method {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-method:hover {
    border-color: rgba(119, 187, 255, 0.52);
    background: rgba(100, 168, 255, 0.10);
    box-shadow: 0 14px 32px rgba(35, 86, 167, 0.13);
    transform: translateY(-3px);
}

.contact-method__icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 19px;
}

.contact-method--telegram .contact-method__icon {
    color: #5bc8ff;
}

.contact-method--whatsapp .contact-method__icon {
    color: #55e492;
}

.contact-method__content {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.contact-method__label {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-method__value {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-method__hint {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-method__arrow {
    margin-left: auto;
    color: var(--blue);
    font-family: "DM Mono", monospace;
    font-size: 15px;
}

.contact-side {
    display: grid;
    gap: 20px;
}

.contact-card {
    padding: 26px;
    border-radius: var(--radius-xl);
}

.contact-card h2 {
    font-size: 26px;
}

.contact-card .button-row,
.contact-card>.button {
    margin-top: 22px;
}

.contact-social-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.contact-social-link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 41px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-social-link:hover {
    border-color: rgba(119, 187, 255, 0.48);
    background: rgba(100, 168, 255, 0.10);
    color: var(--text);
    transform: translateX(2px);
}

.contact-social-link__icon {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 14px;
    text-align: center;
}

.contact-help-section {
    width: var(--container);
    margin: 0 auto;
    padding-top: 20px;
}

.contact-help {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 36px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--radius-xl);
}

.contact-help h2 {
    font-size: clamp(27px, 3.5vw, 38px);
}

.contact-help__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.contact-help__grid article {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.contact-help__grid span {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

.contact-help__grid h3 {
    margin: 10px 0 7px;
    color: var(--text);
    font-size: 14px;
    letter-spacing: -0.025em;
}

.contact-help__grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.68;
}

@media (max-width: 980px) {

    .contact-shell,
    .contact-help {
        grid-template-columns: 1fr;
    }

    .contact-help__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .contact-shell {
        padding-top: 16px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-help-section {
        padding-top: 16px;
    }

    .contact-help__grid {
        grid-template-columns: 1fr;
    }

    .contact-primary,
    .contact-card,
    .contact-help {
        border-radius: var(--radius-lg);
    }
}

/* =========================================================
   HackinOS — Advanced Statistics Dashboard
   ========================================================= */

.stats-shell {
    width: var(--container);
    max-width: none;
    margin: 0 auto;
    padding: 28px 0 64px;
}

.stats-header,
.stats-metric,
.stats-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 160, 220, 0.20);
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.045));
    box-shadow:
        0 20px 60px rgba(36, 76, 145, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.stats-header::before,
.stats-metric::before,
.stats-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent);
    content: "";
    pointer-events: none;
}

.stats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 26px;
}

.stats-header h1 {
    margin: 0;
    color: #111b35;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1.02;
}

.stats-header>div:first-child>p:not(.eyebrow) {
    max-width: 690px;
    margin: 16px 0 0;
    color: #5e6d88;
    font-size: 15px;
    line-height: 1.75;
}

.stats-header .eyebrow,
.stats-panel .eyebrow {
    margin: 0 0 10px;
    color: #177db7;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.stats-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 10px;
}

.stats-range-control {
    display: grid;
    gap: 7px;
}

.stats-range-control>span {
    color: #74819a;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-range-control .field {
    min-width: 180px;
    min-height: 45px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(105, 137, 190, 0.24);
    border-radius: 13px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.60);
    color: #1a2741;
    font: inherit;
    font-size: 13px;
}

.stats-range-control .field:focus {
    border-color: rgba(61, 124, 255, 0.70);
    box-shadow: 0 0 0 4px rgba(72, 135, 255, 0.14);
}

.stats-header .button {
    min-height: 45px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #438dff, #7a50ed);
    box-shadow: 0 10px 22px rgba(81, 104, 231, 0.25);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.stats-header .button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.stats-header .button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.stats-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    color: #65728b;
    font-size: 12px;
}

.stats-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f0a546;
    box-shadow: 0 0 12px rgba(240, 165, 70, 0.75);
}

.stats-status--success .stats-status__dot {
    background: #3abe80;
    box-shadow: 0 0 12px rgba(58, 190, 128, 0.75);
}

.stats-status--error .stats-status__dot {
    background: #e75467;
    box-shadow: 0 0 12px rgba(231, 84, 103, 0.75);
}

.stats-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.stats-metric {
    min-width: 0;
    padding: 22px;
    border-radius: 19px;
}

.stats-metric p {
    margin: 0;
    color: #71809a;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-metric strong {
    display: block;
    overflow: hidden;
    margin-top: 9px;
    color: #17223c;
    font-size: clamp(29px, 3vw, 43px);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.stats-metric span {
    display: block;
    margin-top: 7px;
    color: #71809a;
    font-size: 11px;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.stats-grid--primary {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
}

.stats-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-panel {
    min-width: 0;
    padding: 25px;
    border-radius: 23px;
}

.stats-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.stats-panel__heading h2 {
    margin: 0;
    color: #17223c;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.stats-panel__tag {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(98, 130, 185, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.43);
    color: #67758e;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.stats-chart {
    min-height: 250px;
}

.stats-chart__empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    border: 1px dashed rgba(102, 132, 181, 0.34);
    border-radius: 15px;
    color: #73819a;
    font-size: 13px;
    text-align: center;
}

.stats-chart__bars {
    display: flex;
    min-height: 250px;
    align-items: flex-end;
    gap: 7px;
    padding: 15px 5px 0;
    border-bottom: 1px solid rgba(112, 139, 180, 0.22);
}

.stats-chart__column {
    display: flex;
    min-width: 0;
    flex: 1;
    height: 235px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    text-align: center;
}

.stats-chart__bar-wrap {
    position: relative;
    display: flex;
    height: 205px;
    align-items: flex-end;
}

.stats-chart__bar {
    display: block;
    width: 100%;
    min-height: 7px;
    border: 1px solid rgba(126, 181, 255, 0.45);
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg, #a075ff 0%, #3f8dff 100%);
    box-shadow: 0 9px 21px rgba(80, 115, 230, 0.24);
    transition: filter 160ms ease, transform 160ms ease;
}

.stats-chart__column:hover .stats-chart__bar {
    filter: brightness(1.10);
    transform: translateY(-2px);
}

.stats-chart__value {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 5px);
    display: none;
    color: #33405b;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    transform: translateX(50%);
}

.stats-chart__column:hover .stats-chart__value {
    display: block;
}

.stats-chart__label {
    overflow: hidden;
    color: #7b89a0;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-ranking {
    display: grid;
    gap: 8px;
}

.stats-ranking__item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 41px;
    overflow: hidden;
    padding: 8px 10px;
    border: 1px solid rgba(104, 137, 190, 0.20);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.34);
}

.stats-ranking__bar {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: var(--stats-width);
    height: 2px;
    background: linear-gradient(90deg, #428dff, #9b65ff);
}

.stats-ranking__rank {
    color: #8491a6;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.stats-ranking__flag {
    font-size: 15px;
}

.stats-ranking__name {
    overflow: hidden;
    color: #273650;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-ranking__value {
    color: #6d7c95;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.stats-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(103, 136, 189, 0.22);
    border-radius: 15px;
}

.stats-table {
    width: 100%;
    min-width: 510px;
    border-collapse: collapse;
    font-size: 12px;
}

.stats-table th,
.stats-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(105, 138, 189, 0.18);
    text-align: left;
}

.stats-table th {
    color: #6d7b94;
    background: rgba(245, 249, 255, 0.52);
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-table td {
    color: #53637d;
}

.stats-table tbody tr:last-child td {
    border-bottom: 0;
}

.stats-table tbody tr:hover td {
    background: rgba(92, 151, 255, 0.08);
    color: #1f3150;
}

.stats-table code {
    color: #2e73d8;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.stats-table__empty {
    padding: 30px !important;
    color: #71809a !important;
    text-align: center !important;
}

.stats-activity-list {
    display: grid;
    gap: 8px;
}

.stats-activity {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(104, 137, 190, 0.20);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.34);
}

.stats-activity__flag {
    font-size: 17px;
    text-align: center;
}

.stats-activity strong {
    display: block;
    overflow: hidden;
    color: #263650;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-activity p {
    overflow: hidden;
    margin: 3px 0 0;
    color: #728099;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-activity time {
    color: #7c899f;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    text-align: right;
}

.stats-source-list {
    display: grid;
    gap: 11px;
    margin: 0;
}

.stats-source-list div {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(105, 138, 189, 0.18);
}

.stats-source-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.stats-source-list dt {
    color: #78859b;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-source-list dd {
    margin: 4px 0 0;
    color: #253650;
    font-size: 12px;
    font-weight: 700;
}

.stats-source-note {
    margin-top: 22px;
    padding: 13px 14px;
    border: 1px solid rgba(224, 154, 56, 0.32);
    border-radius: 13px;
    background: rgba(255, 190, 79, 0.10);
    color: #6a604f;
    font-size: 11px;
    line-height: 1.7;
}

.stats-source-note strong {
    color: #b96f05;
}

@media (max-width: 1150px) {
    .stats-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid--primary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stats-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-header__actions {
        width: 100%;
        align-items: flex-end;
    }

    .stats-range-control {
        flex: 1;
    }

    .stats-range-control .field {
        width: 100%;
    }

    .stats-grid--secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .stats-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 16px;
    }

    .stats-header,
    .stats-panel {
        border-radius: 18px;
    }

    .stats-header__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-header__actions .button {
        width: 100%;
    }

    .stats-metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats-metric {
        padding: 17px;
    }

    .stats-panel {
        padding: 19px;
    }

    .stats-chart__bars {
        gap: 4px;
    }

    .stats-chart__label {
        font-size: 8px;
    }

    .stats-activity {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .stats-activity time {
        grid-column: 2;
        text-align: left;
    }
}

.stats-range-control {
  display: grid;
  gap: 7px;
}

.stats-range-control > span {
  color: #74819a;
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-range-filter {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(105, 137, 190, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stats-range-filter__button {
  min-width: 42px;
  min-height: 35px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #74819a;
  cursor: pointer;
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.stats-range-filter__button:hover {
  background: rgba(86, 140, 255, 0.10);
  color: #2e5fba;
}

.stats-range-filter__button.is-active {
  background: linear-gradient(135deg, #438dff, #7a50ed);
  box-shadow: 0 5px 12px rgba(81, 104, 231, 0.28);
  color: #ffffff;
}

.stats-range-filter__button:active {
  transform: scale(0.96);
}

@media (max-width: 620px) {
  .stats-range-filter {
    width: 100%;
    justify-content: space-between;
  }

  .stats-range-filter__button {
    flex: 1;
    min-width: 0;
  }
}

/* =========================================================
   Advanced dashboard detailed data tabs
   ========================================================= */

.stats-details {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    padding: clamp(20px, 3.5vw, 34px);
    border: 1px solid rgba(120, 160, 220, 0.20);
    border-radius: 24px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.045));
    box-shadow:
        0 20px 60px rgba(36, 76, 145, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.stats-details::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent);
    content: "";
    pointer-events: none;
}

.stats-details__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.stats-details__heading .eyebrow {
    margin: 0 0 9px;
    color: #177db7;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.stats-details__heading h2 {
    margin: 0;
    color: #17223c;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.stats-details__heading p:not(.eyebrow) {
    max-width: 680px;
    margin: 11px 0 0;
    color: #65738d;
    font-size: 13px;
    line-height: 1.75;
}

.stats-details__status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(77, 183, 132, 0.24);
    border-radius: 999px;
    background: rgba(68, 192, 130, 0.10);
    color: #258d5d;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.stats-details__status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3abe80;
    box-shadow: 0 0 12px rgba(58, 190, 128, 0.74);
    content: "";
}

.stats-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 26px;
    padding: 2px 1px 9px;
    scrollbar-width: thin;
}

.stats-tabs::-webkit-scrollbar {
    height: 6px;
}

.stats-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(97, 125, 185, 0.28);
}

.stats-tab {
    display: inline-flex;
    min-height: 43px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid rgba(107, 140, 191, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    color: #596984;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.stats-tab:hover {
    border-color: rgba(73, 132, 244, 0.44);
    background: rgba(86, 140, 255, 0.10);
    color: #2b61c5;
}

.stats-tab:active {
    transform: scale(0.97);
}

.stats-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2e88ff, #7b45f3);
    box-shadow: 0 10px 20px rgba(72, 95, 229, 0.28);
    color: #ffffff;
}

.stats-tab__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc88;
    box-shadow: 0 0 10px rgba(61, 220, 136, 0.84);
}

.stats-tab-panel {
    margin-top: 13px;
}

.stats-tab-panel[hidden] {
    display: none;
}

.stats-detail-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 13px;
}

.stats-detail-panel__header h3 {
    margin: 0;
    color: #17223c;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stats-detail-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(108, 139, 190, 0.18);
    border-radius: 999px;
    background: rgba(251, 253, 255, 0.56);
    color: #74829a;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.stats-detail-badge--live {
    border-color: rgba(65, 184, 126, 0.28);
    background: rgba(62, 206, 128, 0.10);
    color: #268d5d;
}

.stats-detail-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 12px;
}

.stats-detail-table th,
.stats-detail-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(105, 138, 189, 0.17);
    text-align: left;
    vertical-align: middle;
}

.stats-detail-table th {
    color: #71809b;
    background: rgba(245, 249, 255, 0.52);
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-detail-table td {
    color: #53627b;
}

.stats-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.stats-detail-table tbody tr:hover td {
    background: rgba(83, 145, 255, 0.075);
    color: #243550;
}

.stats-detail-table strong {
    color: #22324d;
    font-weight: 800;
}

.stats-detail-table code {
    color: #2b76d8;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
}

.stats-detail-table a {
    display: inline-block;
    max-width: 310px;
    overflow: hidden;
    color: #2875d9;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
    text-decoration: none;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.stats-detail-table a:hover {
    color: #6e49e8;
    text-decoration: underline;
}

.stats-detail-table .stats-detail-empty {
    padding: 32px !important;
    color: #75839b !important;
    text-align: center !important;
}

.stats-detail-table .stats-detail-rank {
    color: #8090aa;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.stats-detail-table .stats-detail-ip {
    color: #44546f;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.stats-detail-table .stats-detail-page {
    display: inline-block;
    max-width: 260px;
    overflow: hidden;
    color: #2f68bd;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10.5px;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.stats-detail-table .stats-detail-muted {
    color: #77859d;
    font-size: 11px;
}

.stats-progress {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) 36px;
    align-items: center;
    gap: 8px;
    min-width: 132px;
}

.stats-progress__track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(111, 129, 221, 0.12);
}

.stats-progress__fill {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f89ff, #8049f3);
}

.stats-progress__value {
    color: #2e75cd;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    text-align: right;
}

.stats-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-top: 12px;
}

.stats-pagination__info {
    color: #728098;
    font-size: 11px;
}

.stats-pagination__buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-page-button {
    display: inline-grid;
    min-width: 35px;
    height: 35px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid rgba(107, 140, 191, 0.19);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.58);
    color: #4f6079;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        color 150ms ease;
}

.stats-page-button:hover:not(:disabled) {
    border-color: rgba(74, 132, 245, 0.42);
    background: rgba(83, 145, 255, 0.09);
    color: #2d67c6;
}

.stats-page-button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2e88ff, #7b45f3);
    box-shadow: 0 7px 16px rgba(72, 95, 229, 0.24);
    color: #ffffff;
}

.stats-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.40;
}

.stats-pagination__ellipsis {
    color: #8794a9;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
}

@media (max-width: 700px) {
    .stats-details {
        margin-top: 16px;
        border-radius: 18px;
    }

    .stats-details__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-tabs {
        margin-right: -8px;
        margin-left: -8px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .stats-tab {
        min-height: 40px;
        padding: 0 13px;
    }

    .stats-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-pagination__buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }
}

/* =========================================================
   Home page — HackinOS Builder Pro promotion
   ========================================================= */

.tool-promo-section {
  margin-top: 2px;
}

.tool-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 5vw, 58px);
  border-radius: 28px;
}

.tool-promo__visual,
.tool-promo__content {
  position: relative;
  z-index: 1;
}

.tool-promo__visual {
  display: grid;
  min-height: 360px;
  place-items: center;
}

.tool-promo__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tool-promo__orb--one {
  top: 14%;
  left: 4%;
  width: 170px;
  height: 170px;
  background: rgba(79, 149, 255, 0.23);
  filter: blur(30px);
}

.tool-promo__orb--two {
  right: 3%;
  bottom: 6%;
  width: 160px;
  height: 160px;
  background: rgba(136, 83, 255, 0.25);
  filter: blur(32px);
}

.tool-promo__window {
  position: relative;
  width: min(100%, 455px);
  overflow: hidden;
  border: 1px solid rgba(153, 188, 255, 0.44);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(19, 43, 88, 0.84),
      rgba(31, 27, 82, 0.76)
    );
  box-shadow:
    0 28px 58px rgba(38, 52, 158, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.19);
  transform: rotate(-3deg);
}

.tool-promo__window::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  content: "";
}

.tool-promo__window-bar {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(191, 214, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
}

.tool-promo__window-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.tool-promo__window-bar > span:nth-child(1) {
  background: #ff6f78;
}

.tool-promo__window-bar > span:nth-child(2) {
  background: #ffc65a;
}

.tool-promo__window-bar > span:nth-child(3) {
  background: #4ad58d;
}

.tool-promo__window-bar p {
  overflow: hidden;
  margin: 0 0 0 7px;
  color: rgba(238, 245, 255, 0.85);
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-promo__window-body {
  display: grid;
  gap: 14px;
  min-height: 202px;
  padding: 30px 24px;
}

.tool-promo__terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(226, 239, 255, 0.82);
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(10px, 1.5vw, 12px);
  line-height: 1.45;
}

.tool-promo__prompt {
  color: #65b5ff;
  font-size: 14px;
  font-weight: 800;
}

.tool-promo__prompt--active {
  color: #4ce39b;
  animation: tool-promo-pulse 1.7s ease-in-out infinite;
}

.tool-promo__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(189, 215, 255, 0.43);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.78);
  box-shadow: 0 12px 28px rgba(49, 91, 185, 0.16);
  color: #314665;
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tool-promo__badge span {
  color: #397fff;
  font-size: 13px;
}

.tool-promo__badge--build {
  top: 8%;
  right: 2%;
}

.tool-promo__badge--github {
  bottom: 9%;
  left: 1%;
}

.tool-promo__content {
  max-width: 620px;
}

.tool-promo__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
}

.tool-promo__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(179, 205, 255, 0.55);
  border-radius: 16px;
  background: linear-gradient(135deg, #4194ff, #864ef4);
  box-shadow:
    0 11px 24px rgba(77, 93, 230, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.tool-promo__title-row h2 {
  margin: 0;
  color: var(--text, #17223c);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.tool-promo__subtitle {
  margin: 6px 0 0;
  color: var(--muted, #65738d);
  font-size: 13px;
  line-height: 1.45;
}

.tool-promo__description {
  margin: 22px 0 0;
  color: var(--muted, #65738d);
  font-size: 14px;
  line-height: 1.82;
}

.tool-promo__features {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tool-promo__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted, #65738d);
  font-size: 13px;
  line-height: 1.65;
}

.tool-promo__features span {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(65, 145, 255, 0.12);
  color: #3384ed;
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.tool-promo__actions {
  margin-top: 26px;
}

.tool-promo__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 19px 0 0;
  color: var(--subtle, #77859d);
  font-size: 11px;
  line-height: 1.6;
}

.tool-promo__note span {
  margin-top: 1px;
  color: #7b58ee;
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

@keyframes tool-promo-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(76, 227, 155, 0);
  }

  50% {
    opacity: 0.52;
    text-shadow: 0 0 10px rgba(76, 227, 155, 0.85);
  }
}

@media (max-width: 900px) {
  .tool-promo {
    grid-template-columns: 1fr;
  }

  .tool-promo__visual {
    min-height: 300px;
    order: 2;
  }

  .tool-promo__content {
    max-width: none;
  }

  .tool-promo__window {
    width: min(100%, 520px);
    transform: rotate(-2deg);
  }
}

@media (max-width: 560px) {
  .tool-promo {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .tool-promo__visual {
    min-height: 245px;
  }

  .tool-promo__window {
    transform: none;
  }

  .tool-promo__window-body {
    min-height: 170px;
    gap: 11px;
    padding: 23px 16px;
  }

  .tool-promo__terminal-line {
    gap: 7px;
    font-size: 9px;
  }

  .tool-promo__badge {
    padding: 7px 9px;
    font-size: 9px;
  }

  .tool-promo__badge--build {
    top: 1%;
    right: 0;
  }

  .tool-promo__badge--github {
    bottom: 0;
    left: 0;
  }

  .tool-promo__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 21px;
  }

  .tool-promo__title-row {
    align-items: flex-start;
  }

  .tool-promo__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tool-promo__actions .button {
    width: 100%;
    text-align: center;
  }
}


/* Builder Pro feature cards */

.tool-promo__feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.tool-promo__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(116, 157, 220, 0.20);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    border-color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.tool-promo__feature:hover {
  border-color: rgba(73, 138, 255, 0.46);
  background: rgba(84, 145, 255, 0.10);
  transform: translateY(-2px);
}

.tool-promo__feature-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(146, 189, 255, 0.38);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(73, 147, 255, 0.20),
    rgba(126, 79, 245, 0.19)
  );
  font-size: 15px;
}

.tool-promo__feature h3 {
  margin: 1px 0 4px;
  color: var(--text, #17223c);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.tool-promo__feature p {
  margin: 0;
  color: var(--muted, #65738d);
  font-size: 11px;
  line-height: 1.58;
}

.tool-promo__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tool-promo__highlights span {
  padding: 6px 9px;
  border: 1px solid rgba(98, 137, 200, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--subtle, #77859d);
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .tool-promo__feature-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Guides library — image covers
   ========================================================= */

.guide-library-card__visual {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    isolation: isolate;
}

/* Cover image fills the complete visual section. */
.guide-library-card__visual>img {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition:
        transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1),
        filter 420ms ease;
}

/*
  A dark/cyan overlay keeps number and status badge readable
  without losing the artwork behind it.
*/
.guide-library-card__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(7, 13, 30, 0.08) 0%,
            rgba(7, 13, 30, 0.20) 43%,
            rgba(7, 13, 30, 0.76) 100%),
        linear-gradient(135deg,
            rgba(48, 143, 255, 0.18),
            transparent 48%,
            rgba(122, 74, 248, 0.18));
    pointer-events: none;
}

/* Keep existing number and status above image/overlay. */
.guide-library-card__number,
.guide-library-card__visual .status {
    position: relative;
    z-index: 2;
}

/* Slight, polished motion when hovering the whole card. */
.guide-library-card:hover .guide-library-card__visual>img {
    filter: saturate(1.08) contrast(1.04) brightness(1.05);
    transform: scale(1.065);
}

/* Different crop focus for each cover if needed. */
.guide-library-card__visual--hackinos>img {
    object-position: center;
}

.guide-library-card__visual--opencore>img {
    object-position: center;
}

@media (max-width: 620px) {
    .guide-library-card__visual {
        min-height: 195px;
    }
}

/* =========================================================
   HackinOS macOS Recovery & Installer Library
   ========================================================= */

.macos-header .page-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}

.macos-header__content {
    max-width: 780px;
}

.macos-header__version-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 190px;
    align-content: center;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(135, 188, 255, 0.25);
    border-radius: 20px;
    background:
        linear-gradient(145deg,
            rgba(66, 119, 255, 0.20),
            rgba(105, 73, 235, 0.14));
}

.macos-header__version-card::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.macos-header__version-glow {
    position: absolute;
    top: -75px;
    right: -55px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(102, 189, 255, 0.38);
    filter: blur(40px);
}

.macos-header__version-card>* {
    position: relative;
    z-index: 1;
}

.macos-header__version-label {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.macos-header__version-card strong {
    color: var(--text);
    font-family: "DM Mono", monospace;
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: -0.045em;
}

.macos-header__version-card>span:last-child {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.macos-library {
    padding-top: 24px;
}

.macos-toolbar {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-xl);
}

.macos-toolbar__search {
    position: relative;
}

.macos-toolbar__search>span {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;
    color: var(--subtle);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-53%);
}

.macos-toolbar__search .field {
    width: 100%;
    min-height: 44px;
    padding-left: 39px;
}

.macos-filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.macos-filter {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    transition:
        background 150ms ease,
        box-shadow 150ms ease,
        color 150ms ease;
}

.macos-filter:hover {
    background: rgba(86, 151, 255, 0.10);
    color: var(--text);
}

.macos-filter.is-active {
    background: linear-gradient(135deg, #438dff, #7a50ed);
    box-shadow: 0 6px 14px rgba(79, 96, 228, 0.28);
    color: #ffffff;
}

.macos-count {
    min-width: max-content;
    margin: 0;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-align: right;
}

.macos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.macos-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.macos-card:hover {
    border-color: rgba(123, 183, 255, 0.42);
    box-shadow: 0 20px 40px rgba(35, 67, 148, 0.16);
    transform: translateY(-4px);
}

.macos-card[hidden] {
    display: none;
}

.macos-card__cover {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f5dbe, #7f54ec);
}

.macos-card__cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.macos-card:hover .macos-card__cover img {
    transform: scale(1.06);
}

.macos-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(9, 16, 39, 0.03) 16%,
            rgba(9, 16, 39, 0.17) 52%,
            rgba(9, 16, 39, 0.73) 100%),
        linear-gradient(135deg,
            rgba(69, 153, 255, 0.14),
            transparent 48%,
            rgba(135, 76, 251, 0.18));
    pointer-events: none;
}

.macos-card__badge,
.macos-card__version {
    position: absolute;
    z-index: 2;
}

.macos-card__badge {
    top: 13px;
    left: 13px;
    padding: 5px 8px;
    border: 1px solid rgba(207, 234, 255, 0.35);
    border-radius: 999px;
    background: rgba(15, 29, 65, 0.50);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #e9f7ff;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.macos-card__badge--latest {
    border-color: rgba(104, 229, 181, 0.47);
    background: rgba(27, 165, 110, 0.24);
    color: #baffdf;
}

.macos-card__version {
    right: 15px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-family: "DM Mono", monospace;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 1;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.32);
}

.macos-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.macos-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.macos-card__meta span {
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.macos-card__meta span+span::before {
    margin-right: 7px;
    color: var(--cyan);
    content: "•";
}

.macos-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.macos-card__body>p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.72;
}

.macos-card__footer {
    margin-top: auto;
    padding-top: 20px;
}

.macos-card__footer .button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.macos-empty {
    display: grid;
    min-height: 260px;
    place-content: center;
    gap: 7px;
    margin-top: 18px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
    color: var(--muted);
    text-align: center;
}

.macos-empty strong {
    color: var(--text);
    font-size: 16px;
}

.macos-empty span {
    font-size: 12px;
}

.macos-guide-section {
    padding-top: 22px;
}

.macos-guide {
    padding: clamp(24px, 4vw, 42px);
    border-radius: var(--radius-xl);
}

.macos-guide__heading {
    max-width: 760px;
}

.macos-guide__heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.macos-guide__heading>p:not(.eyebrow) {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.78;
}

.macos-guide__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 30px;
}

.macos-guide__steps article {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
}

.macos-guide__steps span {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 700;
}

.macos-guide__steps h3 {
    margin: 10px 0 7px;
    color: var(--text);
    font-size: 14px;
    letter-spacing: -0.025em;
}

.macos-guide__steps p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.macos-guide code,
.macos-modal code {
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(98, 161, 255, 0.10);
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 0.9em;
}

.macos-guide__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(102, 184, 255, 0.20);
    border-radius: 14px;
    background: rgba(78, 147, 255, 0.07);
}

.macos-guide__note>span {
    color: var(--cyan);
    font-family: "DM Mono", monospace;
}

.macos-guide__note p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.macos-modal[hidden] {
    display: none;
}

.macos-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.macos-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 18, 0.66);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.macos-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-xl);
}

.macos-modal__dialog h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -0.055em;
}

.macos-modal__description {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.macos-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.macos-modal__close:hover {
    background: rgba(255, 255, 255, 0.13);
}

.macos-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin-top: 22px;
    padding: 11px;
    border: 1px solid rgba(108, 171, 255, 0.27);
    border-radius: 14px;
    background: rgba(7, 13, 30, 0.58);
}

.macos-command code {
    display: block;
    overflow-x: auto;
    padding: 5px;
    background: transparent;
    color: #cfeaff;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.macos-command__copy {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(123, 186, 255, 0.35);
    border-radius: 10px;
    background: rgba(86, 151, 255, 0.13);
    color: var(--cyan);
    cursor: pointer;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 700;
}

.macos-command__copy:hover {
    background: rgba(86, 151, 255, 0.22);
}

.macos-modal__steps {
    display: grid;
    gap: 8px;
    margin: 20px 0 24px;
    padding-left: 19px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.macos-modal__steps li::marker {
    color: var(--cyan);
    font-weight: 800;
}

@media (max-width: 1050px) {
    .macos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .macos-toolbar {
        grid-template-columns: minmax(210px, 1fr) auto;
    }

    .macos-count {
        grid-column: 1 / -1;
        text-align: left;
    }

    .macos-guide__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .macos-header .page-header__inner {
        grid-template-columns: 1fr;
    }

    .macos-header__version-card {
        min-height: 145px;
    }

    .macos-toolbar {
        grid-template-columns: 1fr;
    }

    .macos-filter-group {
        width: 100%;
        overflow-x: auto;
    }

    .macos-filter {
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {

    .macos-grid,
    .macos-guide__steps {
        grid-template-columns: 1fr;
    }

    .macos-card__cover {
        min-height: 190px;
    }

    .macos-command {
        grid-template-columns: 1fr;
    }

    .macos-command__copy {
        width: 100%;
    }
}

/* =========================================================
   macOS download options modal
   ========================================================= */

body.macos-modal-open {
    overflow: hidden;
}

.macos-download-modal[hidden] {
    display: none;
}

.macos-download-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 24px;
}

.macos-download-modal__backdrop {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(3, 8, 20, 0.70);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.macos-download-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    overflow: hidden;
    margin: auto;
    border-radius: 28px;
}

.macos-download-modal__header {
    position: relative;
    display: flex;
    min-height: 185px;
    align-items: end;
    overflow: hidden;
    padding: 28px 34px;
    background: #142146;
}

.macos-download-modal__header-art {
    position: absolute;
    inset: 0;
}

.macos-download-modal__header-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) brightness(0.72);
}

.macos-download-modal__header-art span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 14, 33, 0.10) 0%,
            rgba(8, 14, 33, 0.68) 100%),
        linear-gradient(120deg,
            rgba(49, 138, 255, 0.34),
            transparent 58%,
            rgba(128, 72, 241, 0.28));
}

.macos-download-modal__header-copy {
    position: relative;
    z-index: 1;
}

.macos-download-modal__header-copy .eyebrow {
    margin-bottom: 7px;
    color: #d5f4ff;
}

.macos-download-modal__header-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -0.065em;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.38);
}

.macos-download-modal__header-copy p:last-child {
    margin: 7px 0 0;
    color: rgba(239, 248, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.macos-download-modal__close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.21);
    border-radius: 13px;
    background: rgba(16, 27, 55, 0.30);
    color: #ffffff;
    cursor: pointer;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.macos-download-modal__close:hover {
    background: rgba(255, 255, 255, 0.17);
}

.macos-download-modal__dialog> :not(.macos-download-modal__header,
    .macos-download-modal__close,
    .liquid-glass__glow) {
    margin-right: 28px;
    margin-left: 28px;
}

.macos-download-modal__notice {
    margin-top: 22px !important;
    padding: 14px 16px;
    border: 1px solid rgba(114, 173, 255, 0.30);
    border-radius: 15px;
    background: rgba(86, 151, 255, 0.09);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.macos-download-modal__notice strong {
    color: var(--text);
}

.macos-download-section {
    margin-top: 17px !important;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.macos-download-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.macos-download-section__icon,
.macos-download-item__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg,
            rgba(72, 171, 255, 0.25),
            rgba(91, 99, 245, 0.21));
    color: var(--cyan);
    font-size: 20px;
}

.macos-download-section__heading h3,
.macos-download-item h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    letter-spacing: -0.03em;
}

.macos-download-section__heading p {
    margin: 3px 0 0;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
}

.macos-download-section__description {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.macos-download-section__size,
.macos-download-item small {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 700;
}

.macos-download-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    margin-top: 16px;
    padding: 9px 10px;
    border: 1px solid rgba(110, 172, 255, 0.23);
    border-radius: 13px;
    background: rgba(5, 11, 26, 0.48);
}

.macos-download-command code {
    display: block;
    overflow-x: auto;
    padding: 4px;
    color: #ceebff;
    font-family: "DM Mono", monospace;
    font-size: 10.5px;
    line-height: 1.55;
    white-space: nowrap;
}

.macos-download-command__copy {
    min-height: 33px;
    padding: 0 11px;
    border: 1px solid rgba(110, 183, 255, 0.38);
    border-radius: 10px;
    background: rgba(87, 151, 255, 0.13);
    color: var(--cyan);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
}

.macos-download-command__copy:hover {
    background: rgba(87, 151, 255, 0.23);
}

.macos-download-group {
    margin-top: 20px !important;
}

.macos-download-group[hidden] {
    display: none;
}

.macos-download-group__label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    color: var(--subtle);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-align: center;
    text-transform: uppercase;
}

.macos-download-group__label span {
    height: 1px;
    background: var(--border);
}

.macos-download-list {
    display: grid;
    gap: 10px;
}

.macos-download-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.048);
}

.macos-download-item__icon {
    width: 46px;
    height: 46px;
    color: #d4edff;
}

.macos-download-item:nth-child(2n) .macos-download-item__icon {
    background: linear-gradient(135deg,
            rgba(157, 105, 255, 0.23),
            rgba(82, 164, 255, 0.18));
}

.macos-download-item__body {
    min-width: 0;
}

.macos-download-item__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.macos-download-item__title-row span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(104, 159, 255, 0.10);
    color: var(--blue);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 700;
}

.macos-download-item p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.macos-download-item small {
    margin-top: 9px;
}

.macos-download-item__button {
    display: inline-grid;
    min-width: 94px;
    min-height: 38px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid rgba(123, 177, 255, 0.30);
    border-radius: 12px;
    background: linear-gradient(135deg,
            rgba(62, 143, 255, 0.23),
            rgba(123, 76, 243, 0.22));
    box-shadow: 0 8px 18px rgba(65, 88, 210, 0.15);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        filter 160ms ease,
        transform 160ms ease;
}

.macos-download-item__button:hover {
    filter: brightness(1.16);
    transform: translateY(-1px);
}

.macos-download-item__parts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.macos-download-item__parts a {
    min-height: 29px;
    padding: 0 9px;
    border: 1px solid rgba(115, 177, 255, 0.26);
    border-radius: 9px;
    background: rgba(81, 149, 255, 0.09);
    color: var(--cyan);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    line-height: 29px;
    text-decoration: none;
}

.macos-download-item__parts a:hover {
    background: rgba(81, 149, 255, 0.18);
}

.macos-download-modal__footer-note {
    margin-top: 22px !important;
    margin-bottom: 28px !important;
    color: var(--subtle);
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}

@media (max-width: 620px) {
    .macos-download-modal {
        align-items: start;
        padding: 12px;
    }

    .macos-download-modal__dialog {
        border-radius: 21px;
    }

    .macos-download-modal__header {
        min-height: 155px;
        padding: 23px 20px;
    }

    .macos-download-modal__dialog> :not(.macos-download-modal__header,
        .macos-download-modal__close,
        .liquid-glass__glow) {
        margin-right: 16px;
        margin-left: 16px;
    }

    .macos-download-section {
        padding: 16px;
    }

    .macos-download-command {
        grid-template-columns: 1fr;
    }

    .macos-download-command__copy {
        width: 100%;
    }

    .macos-download-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .macos-download-item__button {
        grid-column: 1 / -1;
        width: 100%;
    }
}