
:root {
    --bg: #f3f4ff;
    --surface: #ffffff;
    --surface-soft: #f8f8ff;

    --text: #0023a1;
    --text-muted: #66749c;

    --blue: #087cf3;
    --purple: #9421ed;
    --gradient: linear-gradient(110deg, #008ff5 0%, #4050e9 48%, #a020ed 100%);

    --border: #e0e4fa;
    --shadow: 0 6px 22px rgba(52, 65, 155, 0.10);
    --radius: 18px;

    --container: 1440px;
}

:root {

    /* Page */
    --theme-page-bg: rgb(39 48 121 / 0.14);
    --theme-page-glow-1: rgb(255 255 255 / 0.4);
    --theme-page-glow-2: rgb(255 255 255 / 0.32);


    /* Surfaces */
    --theme-surface: #ffffff;
    --theme-surface-soft: #f8f8ff;
    --theme-surface-card: #dde0f1;

    /* Typography */
    --theme-text: #0023a1;
    --theme-text-heading: #101638;
    --theme-text-muted: #66749c;

    /* Borders */
    --theme-border: #e0e4fa;

    /* Accents */
    --theme-accent: #4050e9;
    --theme-accent-secondary: #9421ed;
}


/* DESKTOP — DARK THEME TOKENS */

html[data-theme="dark"] {
    --theme-page-bg: #101525;
    --theme-page-glow-1: rgb(58 79 145 / 0.16);
    --theme-page-glow-2: rgb(113 58 165 / 0.10);

    --theme-surface: #1b2336;
    --theme-surface-soft: #3a4057;
    --theme-surface-glass: rgb(58 64 87 / 0.64);
    --theme-surface-card: #3a4057;

    --theme-text: #edf1ff;
    --theme-text-heading: #f7f8ff;
    --theme-text-muted: #aab6d3;

    --theme-border: #37415e;

    --theme-accent: #8192ff;
    --theme-accent-secondary: #bd85ff;
}


/* =========================================
   DESKTOP — CATEGORY COLOR PALETTE
========================================= */

:root {
    --cat-computers: #087eae;
    --cat-gaming: #c83d56;
    --cat-smartphones: #168b78;
    --cat-retro: #405ed6;
    --cat-peripherals: #b87518;
    --cat-monitors: #da5800;
    --cat-audio: #8553cc;
    --cat-all: #556798;
}

html[data-theme="dark"] {
    --cat-computers: #39c6f0;
    --cat-gaming: #ff7186;
    --cat-smartphones: #44d9b4;
    --cat-retro: #85a3ff;
    --cat-peripherals: #ffc16a;
    --cat-monitors: #ff8734;
    --cat-audio: #c39aff;
    --cat-all: #ffffff;
}



* { box-sizing: border-box; }

html { scroll-behavior: smooth; }


/* ===================================
   DESKTOP — MAIN LAYOUT
=================================== */


body {
    background:
            radial-gradient( ellipse at 50% 50%, rgb(20 14 107 / 0.03), #ffffffa6 45% ), radial-gradient( ellipse at 50% 80%, rgb(187 183 229 / 0%), #d7ddf966 32% ), var(--theme-page-bg);
}



.desktop-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0px 20px 10px;
}


a { color: inherit; text-decoration: none !important; }
img { display: block; max-width: 100%; }


/* DESKTOP — HEADER */

.header-main {
    background:
            linear-gradient(110deg, rgb(237 239 246 / 0.35) 0%, rgb(241 241 255 / 0.45) 60%, rgb(237 239 246 / 0.5) 100%),
            url(../images/header-bgr.jpg);
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 3px 18px rgba(41, 55, 125, .07);
}

.header-inner {
    max-width: var(--container);
    min-height: 90px;
    padding: 12px 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 365px;
    height: auto;
    object-fit: contain;
}

.header-search {
    width: 405px;
    max-width: 45%;
    height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid #d7dcfa;
    border-radius: 30px;
    background: #f5f6ff;
    box-shadow: 0 3px 8px rgba(60, 75, 170, .10);
    overflow: hidden;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}

.header-search input::placeholder {
    color: #7480a6;
}

.header-search button {
    width: 56px;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-icon {
    display: block;
    width: 20px;
    height: 20px;
    border: 3px solid #354b87;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 3px;
    background: #354b87;
    border-radius: 2px;
    left: -7px;
    bottom: -4px;
    transform: rotate(45deg);
}

.main-navigation {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    min-height: 54px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3540d7;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 6px 6px 0 0;
    background: var(--gradient);
}

.nav-icon {
    font-size: 21px;
    line-height: 1;
    color: #34457e;
}

.mobile-header-actions {
    display: none;
}

.btn {
    border: 0;
    border-radius: 15px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .22s ease;
}

.btn-ghost {
    background: rgba(255,255,255,.62);
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

/* MOBILE */

@media (max-width: 850px) {

    .header-inner {
        min-height: 72px;
        padding: 10px 16px;
        gap: 12px;
    }

    .site-logo img {
        width: min(52vw, 225px);
        max-height: 50px;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .mobile-search-toggle,
    .mobile-menu-toggle {
        width: 30px;
        height: 35px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 23px;
        height: 2px;
        background: #304780;
        border-radius: 2px;
    }

    .header-search {
        display: none;
        position: absolute;
        top: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        z-index: 120;
        background: white;
    }

    .header-search.is-open {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        box-shadow: var(--shadow);
    }

    .main-navigation.is-open {
        display: block;
    }

    .nav-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 18px;
        gap: 2px;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 13px 16px;
        border-radius: 10px;
    }

    .nav-link.active {
        background: #f0edff;
    }

    .nav-link.active::after {
        display: none;
    }
}




/* ===================================
   HERO
=================================== */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    direction: rtl;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    direction: rtl;
}

.hero-featured {
    min-height: 265px;
    background: #080d2d;
    color: white;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-featured .hero-image {
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            270deg,
            rgba(6, 12, 44, .90) 0%,
            rgba(7, 13, 46, .65) 35%,
            rgba(7, 13, 46, .05) 75%
    );
}


.hero-tag {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(110deg, #2778ff, #a020ed);
    font-size: 13px;
    font-weight: 600;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 22px;
    border-radius: 25px;
    background: var(--gradient);
    font-weight: 700;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(63, 50, 207, .25);
    transition: transform .2s, box-shadow .2s;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(63, 50, 207, .35);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 6px;
}

.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}

.hero-dots span.active {
    background: white;
}

/* SECONDARY HERO */

.hero-secondary {
    min-height: 265px;
    background: #e9e5ff;
    border: 2px solid white;
}

.hero-secondary .hero-image {
    height: 58%;
    object-position: 0 30%;
}

.secondary-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.secondary-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    min-height: 45%;
    padding: 16px 20px;
    background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(236,233,255,.95));
    text-align: right;
}

.secondary-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.secondary-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.secondary-arrow {
    position: absolute;
    bottom: 10px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
    box-shadow: 0 2px 8px rgba(55, 65, 150, .15);
    color: #3543ba;
    font-size: 25px;
}

/* ===================================
   MOBILE HERO
=================================== */

@media (max-width: 850px) {
    .desktop-main {
        padding: 16px 12px 40px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-overlay {
        background: linear-gradient(
                0deg,
                rgba(6, 12, 44, .98) 0%,
                rgba(6, 12, 44, .90) 35%,
                rgba(6, 12, 44, .05) 75%
        );
    }

    .hero-dots {
        display: none;
    }

    .hero-secondary {
        min-height: 240px;
    }
}


/* ===================================
   DESKTOP — PRODUCT CATEGORIES
=================================== */

.home-categories {
    margin-top: 20px;
    margin-bottom: 26px;
}

.categories-track {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-width: 0;
    min-height: 92px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 16px;

    background: linear-gradient(
            150deg,
            rgba(255, 255, 255, .96),
            rgba(236, 239, 255, .92)
    );

    box-shadow:
            0 5px 13px rgba(57, 69, 156, .09),
            inset 0 1px 0 rgba(255, 255, 255, .9);

    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-align: center;

    transition:
            transform .2s ease,
            box-shadow .2s ease,
            border-color .2s ease;
}

.category-card svg {
    width: 32px;
    height: 32px;
    stroke: #4a48dd;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #c5c7ff;
    box-shadow: 0 10px 22px rgba(67, 66, 173, .16);
}

.category-card:hover svg {
    stroke: #8b28ed;
}

.category-card span {
    line-height: 1.25;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .categories-track {
        gap: 8px;
    }

    .category-card {
        font-size: 11px;
        padding: 10px 5px;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .home-categories {
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .categories-track {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;

        padding: 3px 2px 12px;
    }

    .categories-track::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 calc((100% - 27px) / 4);
        min-height: 80px;
        padding: 9px 4px;
        gap: 7px;
        scroll-snap-align: start;
        font-size: 11px;
        border-radius: 13px;
    }

    .category-card svg {
        width: 27px;
        height: 27px;
    }

    .category-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card {
        transition: none;
    }
}


/* ===================================
   DESKTOP — FEATURED ARTICLES
=================================== */

.home-articles {
    width: 100%;
    min-width: 0;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #101638;
}

.section-heading svg {
    width: 25px;
    height: 25px;
    stroke: #8a22f5;
}

.featured-article {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid #e9eafd;
    border-radius: 16px;
    background: #e7ecff;
}

.featured-article-image {
    display: block;
    overflow: hidden;
    min-height: 205px;
    border-radius: 12px;
}

.featured-article-image img,
.mini-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.featured-article-image:hover img,
.mini-article-image:hover img {
    transform: scale(1.035);
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 0;
}

.article-label {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(110deg,#1687ff,#a31af0);
    font-size: 12px;
    font-weight: 700;
}

.featured-article h3 {
    margin: 14px 0 10px;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.3;
    font-weight: 800;
}

.featured-article-content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #606b91;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #66739f;
    font-size: 12px;
}

.featured-article-content .article-meta {
    margin-top: auto;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta svg {
    width: 14px;
    height: 14px;
}

.articles-mini-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-article {
    min-width: 0;
    padding: 7px;
    border: 1px solid #dadef7;
    border-radius: 14px;
    background: #f0f2ff;
    box-shadow: 0 3px 10px rgba(54,65,148,.05);
}

.mini-article-image {
    position: relative;
    display: block;
    height: 112px;
    overflow: hidden;
    border-radius: 10px;
}

.mini-article-image .article-label {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 1;
}

.mini-article h3 {
    margin: 10px 4px;
    min-height: 43px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}

.mini-article .article-meta {
    margin: 0 4px 5px;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border: 1px solid #cbd3ff;
    border-radius: 25px;
    background: #fff;
    color: #303d8e;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(54,65,148,.07);
}

.section-more svg {
    width: 16px;
    height: 16px;
}

.section-more:hover {
    color: #7a22e9;
    border-color: #a5aaff;
}

/* TABLET */
@media (max-width: 1100px) and (min-width: 701px) {
    .featured-article {
        grid-template-columns: 50% minmax(0,1fr);
    }
}

/* MOBILE */
@media (max-width: 700px) {
    .home-articles {
        padding: 15px 12px;
        border-radius: 17px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .featured-article {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .featured-article-image {
        height: 190px;
        min-height: 0;
    }

    .featured-article-content {
        padding: 2px 5px 8px;
    }

    .featured-article h3 {
        font-size: 19px;
    }

    .articles-mini-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mini-article {
        display: grid;
        grid-template-columns: 120px minmax(0,1fr);
        grid-template-rows: 1fr auto;
        column-gap: 12px;
        padding: 7px;
        align-items: center;
    }

    .mini-article-image {
        grid-row: 1 / 3;
        height: 90px;
    }

    .mini-article h3 {
        margin: 4px 0;
        min-height: 0;
        font-size: 13px;
    }

    .mini-article .article-meta {
        margin: 0 0 4px;
    }

    .mini-article-image .article-label {
        font-size: 10px;
        padding: 3px 7px;
    }
}

@media (max-width: 370px) {
    .mini-article {
        grid-template-columns: 100px minmax(0,1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-article-image img,
    .mini-article-image img {
        transition: none;
    }
}


/* ===================================
   DESKTOP — CONTENT GRID
=================================== */

.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
}

.home-content-grid > * {
    min-width: 0;
}

/* ===================================
   DESKTOP — PRICE COMPARISON FEED
=================================== */

.home-prices {
    padding: 24px 14px 30px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
}

.home-prices .section-heading {
    margin-bottom: 18px;
}

.home-prices .section-heading h2 {
    font-size: 19px;
}

.price-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-feed-item {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 77px;
    padding: 8px;
    border: 1px solid #e8eafb;
    border-radius: 14px;
    background: linear-gradient(145deg,#fff,#f6f6ff);
    transition: border-color .2s, transform .2s;
}

.price-feed-item:hover {
    border-color: #bfc6ff;
    transform: translateY(-2px);
}

.price-feed-item > img {
    width: 68px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px;
    background: #eef0ff;
}

.price-feed-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-feed-info h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.price-feed-info strong {
    font-size: 12px;
    font-weight: 700;
    color: #304db7;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

.price-feed-info > span {
    font-size: 11px;
    color: #6c789f;
}

.price-change {
    padding: 5px 7px;
    border-radius: 20px;
    background: #ff3357;
    color: white;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    direction: ltr;
}

.prices-all-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 25px;
    background: var(--gradient);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 13px rgba(81,59,202,.20);
    transition: transform .2s, box-shadow .2s;
}

.prices-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 19px rgba(81,59,202,.30);
}

.prices-all-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* TABLET AND MOBILE */

@media (max-width: 1050px) {
    .home-content-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .home-prices {
        width: 100%;
    }

    .price-feed {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .home-content-grid {
        gap: 16px;
    }

    .home-prices {
        padding: 15px 12px;
        border-radius: 17px;
    }

    .home-prices .section-heading h2 {
        font-size: 18px;
    }

    .price-feed {
        display: flex;
        flex-direction: column;
    }

    .price-feed-item {
        grid-template-columns: 64px minmax(0,1fr) auto;
        gap: 7px;
    }

    .price-feed-item > img {
        width: 64px;
        height: 56px;
    }

    .price-feed-info h3 {
        font-size: 11px;
    }

    .price-feed-info strong {
        font-size: 11px;
    }

    .price-change {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 370px) {
    .price-feed-item {
        grid-template-columns: 52px minmax(0,1fr) auto;
        gap: 5px;
        padding: 6px;
    }

    .price-feed-item > img {
        width: 52px;
        height: 50px;
    }

    .price-feed-info strong {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-feed-item,
    .prices-all-button {
        transition: none;
    }
}


/* ===================================
   DESKTOP — RECOMMENDED PRODUCTS
=================================== */

.home-products {
    margin-top: 20px;
    padding: 18px 16px 20px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
}

.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.products-section-header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #101638;
}

.products-section-header h2 svg {
    width: 25px;
    height: 25px;
    stroke: #9324f5;
}

.products-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #433bdb;
    white-space: nowrap;
}

.products-view-all svg {
    width: 15px;
    height: 15px;
}

.products-carousel {
    position: relative;
    min-width: 0;
}

.products-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 3px 2px 12px;
}

.products-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 0;
    padding: 12px 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e5e9ff;
    border-radius: 15px;
    background: linear-gradient(150deg,#fff,#f1f2ff);
    box-shadow: 0 4px 12px rgba(54,65,148,.06);
    scroll-snap-align: start;
}

.product-rating {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 1;
    padding: 4px 7px;
    border-radius: 15px;
    background: #fff;
    color: #ff9700;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(0,0,0,.07);
    direction: ltr;
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 115px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 10px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    margin: 0 0 10px;
    min-height: 35px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    direction: ltr;
}

.product-price {
    margin-top: auto;
    margin-bottom: 9px;
    color: #7922ed;
    font-size: 16px;
    font-weight: 800;
}

.product-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 7px 5px;
    border: 1px solid #d7d6ff;
    border-radius: 20px;
    background: #eeedff;
    color: #5430dc;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.product-compare:hover {
    background: linear-gradient(110deg,#1687ff,#a31af0);
    color: #fff;
}

.product-compare svg {
    width: 13px;
    height: 13px;
}

.products-arrow {
    position: absolute;
    z-index: 2;
    top: 43%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #dce0ff;
    border-radius: 50%;
    background: #fff;
    color: #34418c;
    box-shadow: 0 3px 12px rgba(42,53,130,.14);
    cursor: pointer;
}

.products-arrow svg {
    width: 20px;
    height: 20px;
}

.products-prev {
    right: -15px;
}

.products-next {
    left: -15px;
}

.products-arrow:disabled {
    opacity: .35;
    cursor: default;
}

/* TABLET */
@media (max-width: 1050px) {
    .product-card {
        flex-basis: calc((100% - 24px) / 3);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .home-products {
        padding: 15px 12px;
        border-radius: 17px;
    }

    .products-section-header h2 {
        font-size: 18px;
    }

    .products-view-all {
        font-size: 11px;
    }

    .products-track {
        gap: 8px;
    }

    .product-card {
        flex-basis: calc((100% - 16px) / 3);
        padding: 9px 5px;
    }

    .product-card-image {
        height: 80px;
    }

    .product-card h3 {
        font-size: 10px;
        min-height: 42px;
    }

    .product-price {
        font-size: 13px;
    }

    .product-rating {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 3px 5px;
    }

    .product-compare {
        font-size: 9px;
        padding: 6px 2px;
    }

    .products-arrow {
        width: 29px;
        height: 29px;
    }

    .products-prev {
        right: -10px;
    }

    .products-next {
        left: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-track {
        scroll-behavior: auto;
    }
}


/* ===================================
   DESKTOP — BUYING GUIDES CTA
=================================== */

.home-guides-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 20px;
    padding: 30px 24px;

    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;

    background: linear-gradient(
            135deg,
            rgba(255,255,255,.93),
            rgba(240,234,255,.95)
    );

    box-shadow: 0 8px 24px rgba(54,65,148,.09);
    text-align: center;
}

.guides-cta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guides-cta-icon svg {
    width: 48px;
    height: 48px;
    stroke: #9224f5;
    stroke-width: 1.7;
}

.guides-cta-content {
    max-width: 580px;
}

.guides-cta-content h2 {
    margin: 0 0 9px;
    color: #101638;
    font-size: 26px;
    font-weight: 800;
}

.guides-cta-content p {
    margin: 0 0 20px;
    color: #59658b;
    font-size: 15px;
    line-height: 1.65;
}

.guides-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 220px;
    min-height: 44px;
    padding: 10px 24px;

    border-radius: 25px;
    background: linear-gradient(110deg,#1687ff,#a31af0);
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(81,59,202,.2);
    transition: transform .2s, box-shadow .2s;
}

.guides-cta-button svg {
    width: 17px;
    height: 17px;
}

.guides-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(81,59,202,.28);
}

/* MOBILE */

@media (max-width: 700px) {
    .home-guides-cta {
        flex-direction: column;
        gap: 10px;
        padding: 25px 18px;
        border-radius: 17px;
    }

    .guides-cta-icon svg {
        width: 37px;
        height: 37px;
    }

    .guides-cta-content h2 {
        font-size: 22px;
    }

    .guides-cta-content p {
        font-size: 13px;
    }

    .guides-cta-button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guides-cta-button {
        transition: none;
    }
}


/* ===================================
   DESKTOP — SITE FOOTER
=================================== */

.desktop-footer {
    position: relative;
    margin-top: 38px;
    padding: 42px 20px 0;

    border-top: 1px solid rgba(146, 130, 245, .22);

    background: linear-gradient(
            135deg,
            #f9faff 0%,
            #f0efff 55%,
            #f4eaff 100%
    );

    box-shadow: 0 -8px 30px rgba(57, 65, 145, .04);
}

.desktop-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
            90deg,
            #1687ff,
            #6839ed,
            #a31af0
    );
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(250px, 1.8fr) repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding-bottom: 38px;
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    width: 210px;
    height: auto;
    max-width: 100%;
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 330px;
    margin: 0 0 16px;
    color: #58658c;
    font-size: 13px;
    line-height: 1.85;
}

.footer-brand-line {
    color: #606c9b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    direction: ltr;
    display: inline-block;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.footer-column h3 {
    margin: 5px 0 7px;
    color: #101638;
    font-size: 15px;
    font-weight: 800;
}

.footer-column a {
    color: #626e96;
    font-size: 13px;
    line-height: 1.4;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: #8325e9;
}

.footer-column a:focus-visible {
    outline: 2px solid #7035e8;
    outline-offset: 4px;
    border-radius: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 19px 0 22px;
    border-top: 1px solid rgba(106, 117, 187, .16);

    color: #6b759a;
    font-size: 12px;
}

.footer-bottom-note {
    color: #7a6bb0;
}

/* TABLET */

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .desktop-footer {
        margin-top: 25px;
        padding: 30px 20px 0;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
        padding-bottom: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        width: 195px;
        margin: 0 auto 14px;
    }

    .footer-brand p {
        max-width: 340px;
        margin: 0 auto 12px;
        font-size: 12px;
    }

    .footer-brand-line {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        font-size: 11px;
    }
}

@media (max-width: 350px) {
    .footer-top {
        column-gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-column a {
        transition: none;
    }
}

/* ===================================
   DESKTOP — FLOATING GLASS HEADER
=================================== */

.desktop-floating-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    width: 100%;
    max-width: none;
    margin: 0;

    border-radius: 0 0 16px 16px;

    z-index: 1000;



    background: transparent;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    border: 1px solid rgba(255, 255, 255, 0.75);

    box-shadow:
            0 8px 30px rgba(43, 48, 135, 0.13),
            inset 0 1px 0 rgba(255,255,255,0.8);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-24px);

    transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;

    pointer-events: none;
}

.desktop-floating-header.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;

    min-height: 66px;
    padding: 8px 24px;
}

.floating-logo {
    flex-shrink: 0;
}

.floating-logo img {
    width: 195px;
    height: auto;
}

.floating-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.floating-navigation .nav-link {
    font-size: 12px;
    padding: 12px 5px;
}

.floating-navigation .nav-icon {
    font-size: 17px;
}

.floating-search-toggle {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.65);
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-floating-header {
        top: 8px;
        right: 10px;
        left: 10px;
        border-radius: 15px;
    }

    .floating-header-inner {
        min-height: 56px;
        padding: 8px 14px;
        gap: 12px;
    }

    .floating-logo img {
        width: min(43vw, 175px);
    }

    .floating-navigation {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-floating-header {
        transition: none;
    }
}


/* FLOATING HEADER — FULL WIDTH */

.desktop-floating-header {
    background: rgba(244, 245, 255, 0.78);
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.floating-header-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.floating-navigation .nav-link.active::after {
    bottom: -8px;
}

@media (max-width: 850px) {
    .desktop-floating-header {
        top: 0;
        right: 0;
        left: 0;
        border-radius: 0 0 14px 14px;
    }
}

.floating-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.floating-menu-toggle span {
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: #304780;
}

.floating-search-panel[hidden] {
    display: none !important;
}

.floating-search-panel {
    display: flex;
    gap: 10px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px 16px;
}

.floating-search-panel input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #d7dcfa;
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    font: inherit;
}

.floating-search-panel button {
    padding: 8px 22px;
    border: 0;
    border-radius: 20px;
    background: var(--gradient);
    color: white;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 850px) {
    .floating-header-inner {
        justify-content: space-between;
    }

    .floating-menu-toggle {
        display: flex;
    }

    .floating-navigation {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 12px 20px;
        background: rgba(246,246,255,.97);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .floating-navigation.is-open {
        display: flex;
    }

    .floating-navigation .nav-link {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .floating-search-panel {
        padding: 10px 14px 14px;
    }
}


/* ===================================
   DESKTOP — PRODUCTS MEGA MENU
=================================== */

.nav-mega-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mega-chevron {
    margin-bottom: 10px;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}

.nav-mega-trigger[aria-expanded="true"] .mega-chevron {
    transform: rotate(180deg);
    margin-bottom: -10px;
}

/* The panel is positioned relative to the viewport. */

.mega-panel {
    position: fixed;
    top: var(--mega-top, 110px);

    left: 0;
    right: 0;
    transform: none;

    width: 100%;
    max-height: calc(100dvh - var(--mega-top, 110px) - 16px);
    overflow-y: auto;

    padding: 26px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 0 0 22px 22px;

    background: rgb(248 248 255 / 0.82);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    box-shadow:
            0 20px 60px rgba(35,43,117,.19),
            inset 0 1px 0 rgba(255,255,255,.9);

    z-index: 1100;
}

.mega-panel[hidden] {
    display: none !important;
}

.mega-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 23px;
    padding-bottom: 19px;
    border-bottom: 1px solid #e4e6fa;
}

.mega-eyebrow {
    color: #7934e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.mega-panel-header h2 {
    margin: 6px 0 8px;
    color: #111638;
    font-size: 25px;
    font-weight: 800;
}

.mega-panel-header p {
    margin: 0;
    color: #687394;
    font-size: 13px;
    line-height: 1.6;
}

.mega-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;

    padding: 10px 18px;
    border: 1px solid #d6d8ff;
    border-radius: 24px;

    background: #fff;
    color: #5731d8;
    font-size: 13px;
    font-weight: 700;
}

.mega-all-link svg {
    width: 16px;
    height: 16px;
}

.mega-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 13px;
}

.mega-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    min-width: 0;
    min-height: 145px;
    padding: 19px;

    border: 1px solid #e6e8fb;
    border-radius: 16px;

    background: linear-gradient(145deg,#fff,#f6f5ff);
    box-shadow: 0 4px 13px rgba(52,59,142,.05);

    transition:
            transform .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
}

.mega-category:hover {
    transform: translateY(-3px);
    border-color: #b7b6ff;
    box-shadow: 0 9px 22px rgba(52,59,142,.12);
}

.mega-category-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(135deg,#e8f3ff,#efe2ff);
    color: #7234dc;
}

.mega-category-icon svg {
    width: 21px;
    height: 21px;
}

.mega-category strong {
    color: #18214b;
    font-size: 15px;
    font-weight: 800;
}

.mega-category small {
    color: #697594;
    font-size: 11px;
    line-height: 1.5;
}

.mega-category-all {
    background: linear-gradient(135deg,#f1f4ff,#eee6ff);
    border-color: #d6d5ff;
}

.mega-category:focus-visible,
.mega-all-link:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1050px) {
    .mega-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .nav-mega-item {
        display: block;
        width: 100%;
    }

    .mega-panel {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 12px;
        margin-top: 5px;

        transform: none;
        border-radius: 14px;
        box-shadow: none;
        background: rgba(245,244,255,.95);
    }

    .mega-panel-header {
        display: block;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .mega-panel-header h2 {
        font-size: 17px;
    }

    .mega-panel-header p {
        font-size: 11px;
    }

    .mega-all-link {
        margin-top: 12px;
        font-size: 11px;
    }

    .mega-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .mega-category {
        min-height: 116px;
        padding: 12px;
    }

    .mega-category strong {
        font-size: 13px;
    }

    .mega-category small {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-category,
    .mega-chevron {
        transition: none;
    }
}

/* MEGA MENU — FULL WIDTH WITH CENTERED CONTENT */

@media (min-width: 851px) {
    .mega-panel-header,
    .mega-categories {
        max-width: 1388px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MOBILE NAVIGATION — SCROLLABLE MENUS */

@media (max-width: 850px) {

    .main-navigation.is-open,
    .floating-navigation.is-open {
        max-height: calc(100dvh - 85px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #c8c4ef transparent;
    }

    .mega-panel {
        max-height: none;
        overflow: visible;
    }

}


/* ===================================
   DESKTOP — ARTICLES MEGA MENU
=================================== */

.mega-articles-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-articles-layout h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 800;
    color: #151b42;
}

.mega-articles-topics {
    min-width: 0;
}

.mega-topic {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 57px;
    margin-bottom: 9px;
    padding: 12px 15px;
    border: 1px solid #e6e8fb;
    border-radius: 13px;
    background: linear-gradient(145deg,#fff,#f7f6ff);
    color: #273260;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s, border-color .2s;
}

.mega-topic:hover {
    transform: translateX(-3px);
    border-color: #bdbbff;
}

.mega-topic svg {
    width: 20px;
    height: 20px;
    color: #7135df;
    flex-shrink: 0;
}

.mega-topic span {
    flex: 1;
}

.mega-topic svg:last-child {
    width: 15px;
    height: 15px;
    color: #8e96bb;
}

.mega-articles-featured {
    min-width: 0;
}

.mega-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 14px;
}

.mega-editorial-main {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: #fff;
    padding: 9px 9px 16px;
}

.mega-editorial-main img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 11px;
}

.mega-editorial-tag {
    align-self: flex-start;
    margin: 12px 5px 7px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #efebff;
    color: #7132db;
    font-size: 10px;
    font-weight: 800;
}

.mega-editorial-main strong {
    margin: 0 5px 7px;
    font-size: 17px;
    line-height: 1.35;
    color: #151b42;
}

.mega-editorial-main small {
    margin: 0 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #687394;
}

.mega-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-editorial-small {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 18px;
    border: 1px solid #e4e7fa;
    border-radius: 15px;
    background: linear-gradient(145deg,#fff,#f1efff);
    font-size: 13px;
    font-weight: 700;
    color: #293263;
}

.mega-editorial-small svg {
    width: 23px;
    height: 23px;
    color: #7934e9;
    flex-shrink: 0;
}

.mega-editorial-main:hover,
.mega-editorial-small:hover {
    border-color: #b9b7ff;
    box-shadow: 0 6px 18px rgba(53,58,145,.09);
}

.mega-topic:focus-visible,
.mega-editorial-main:focus-visible,
.mega-editorial-small:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-articles-layout {
        grid-template-columns: 250px minmax(0,1fr);
        gap: 18px;
    }

    .mega-editorial-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .mega-editorial-side {
        flex-direction: row;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-articles-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-editorial-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .mega-editorial-main img {
        height: 150px;
    }

    .mega-editorial-side {
        flex-direction: column;
    }

    .mega-editorial-small {
        min-height: 65px;
    }

    .mega-articles-layout h3 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-topic {
        transition: none;
    }
}


/* ===================================
   DESKTOP — REVIEWS MEGA MENU
=================================== */

.mega-reviews-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-reviews-layout h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 800;
    color: #151b42;
}

.mega-reviews-topics,
.mega-reviews-featured {
    min-width: 0;
}

.mega-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mega-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 9px;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f7f6ff);
    box-shadow: 0 4px 13px rgba(52,59,142,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mega-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(52,59,142,.13);
}

.mega-review-image {
    position: relative;
    height: 175px;
    overflow: hidden;
    border-radius: 11px;
    background: #e9eaff;
}

.mega-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-review-label {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(42,40,130,.18);
}

.mega-review-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 9px;
    padding: 15px 9px 10px;
}

.mega-review-content strong {
    font-size: 17px;
    font-weight: 800;
    color: #151b42;
    direction: ltr;
    text-align: right;
}

.mega-review-content small {
    font-size: 12px;
    line-height: 1.6;
    color: #687394;
}

.mega-review-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #6334dc;
    font-size: 12px;
    font-weight: 700;
}

.mega-review-read svg {
    width: 15px;
    height: 15px;
}

.mega-review-card:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-reviews-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 18px;
    }

    .mega-review-image {
        height: 135px;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-reviews-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-reviews-layout h3 {
        font-size: 14px;
    }

    .mega-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .mega-review-image {
        height: 160px;
    }

    .mega-review-content strong {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-review-card {
        transition: none;
    }
}


/* ===================================
   DESKTOP — GUIDES MEGA MENU
=================================== */

.mega-guides-layout {
    display: grid;
    grid-template-columns: none;
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-guides-layout h3 {
    margin: 0 0 15px;
    color: #151b42;
    font-size: 16px;
    font-weight: 800;
}

.mega-guides-paths,
.mega-guides-featured {
    min-width: 0;
}

.mega-guide-path {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #e4e7fa;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f7f6ff);
    transition: transform .2s, border-color .2s;
}

.mega-guide-path:hover {
    transform: translateX(-3px);
    border-color: #b9b7ff;
}

.mega-guide-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6f2ff, #eee4ff);
    color: #7135df;
}

.mega-guide-icon svg {
    width: 22px;
    height: 22px;
}

.mega-guide-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mega-guide-text strong {
    color: #18214b;
    font-size: 14px;
    font-weight: 800;
}

.mega-guide-text small {
    color: #687394;
    font-size: 11px;
}

.mega-guide-path > svg {
    width: 16px;
    height: 16px;
    color: #9098ba;
}

.mega-guides-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 14px;
}

.mega-guide-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 9px;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: #fff;
}

.mega-guide-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 11px;
}

.mega-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-guide-image > span {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.mega-guide-main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    flex: 1;
    padding: 15px 8px 9px;
}

.mega-guide-main-content strong {
    color: #151b42;
    font-size: 17px;
    font-weight: 800;
}

.mega-guide-main-content small {
    color: #687394;
    font-size: 12px;
    line-height: 1.6;
}

.mega-guide-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #6734dc;
    font-size: 12px;
    font-weight: 700;
}

.mega-guide-read svg {
    width: 15px;
    height: 15px;
}

.mega-guides-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-guide-small {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 1;
    padding: 18px;
    border: 1px solid #e4e7fa;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f1efff);
}

.mega-guide-small > svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #7934e9;
}

.mega-guide-small span {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mega-guide-small strong {
    color: #18214b;
    font-size: 13px;
    font-weight: 800;
}

.mega-guide-small small {
    color: #687394;
    font-size: 11px;
    line-height: 1.5;
}

.mega-guide-main:hover,
.mega-guide-small:hover {
    border-color: #b9b7ff;
    box-shadow: 0 7px 20px rgba(52,59,142,.1);
}

.mega-guide-path:focus-visible,
.mega-guide-main:focus-visible,
.mega-guide-small:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-guides-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 18px;
    }

    .mega-guides-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mega-guides-side {
        flex-direction: row;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-guides-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-guides-layout h3 {
        font-size: 14px;
    }

    .mega-guides-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mega-guides-side {
        flex-direction: column;
    }

    .mega-guide-image {
        height: 155px;
    }

    .mega-guide-path {
        min-height: 65px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-guide-path {
        transition: none;
    }
}


/* =====================================
   DESKTOP — SINGLE ARTICLE
===================================== */

.desktop-article-container {
    width: min(1388px, calc(100% - 40px));
    margin-inline: auto;
}

.desktop-article-hero {
    padding: 38px 0 5px;
}

.desktop-article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: #54619a;
    font-size: 12px;
}

.desktop-article-breadcrumbs a {
    color: #54619a;
    text-decoration: none;
}

.desktop-article-breadcrumbs a:hover {
    color: #7135df;
}

.desktop-article-breadcrumbs svg {
    width: 14px;
    height: 14px;
}

.desktop-article-heading {
    max-width: 950px;
    margin: 30px auto 30px;
    text-align: center;
}

.desktop-article-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg,#287dff,#9a20f0);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.desktop-article-heading h1 {
    margin: 17px 0;
    color: #141b42;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.desktop-article-lead {
    max-width: 790px;
    margin: 0 auto 22px;
    color: #657092;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.8;
}

.desktop-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #6c779b;
    font-size: 12px;
}

.desktop-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.desktop-article-meta svg {
    width: 16px;
    height: 16px;
    color: #7538e6;
}

.desktop-article-cover {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e1e4fc;
    border-radius: 22px;
    background: #e8eaff;
    box-shadow: 0 12px 38px rgba(49,55,130,.10);
}

.desktop-article-cover img {
    display: block;
    width: 100%;
    max-height: 540px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.desktop-article-cover figcaption {
    padding: 12px 20px;
    background: rgba(255,255,255,.9);
    color: #7b84a5;
    font-size: 11px;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-article-container {
        width: calc(100% - 28px);
    }

    .desktop-article-hero {
        padding: 22px 0;
    }

    .desktop-article-breadcrumbs {
        margin-bottom: 22px;
    }

    .desktop-article-heading {
        margin-bottom: 24px;
    }

    .desktop-article-heading h1 {
        font-size: clamp(27px, 7vw, 36px);
    }

    .desktop-article-meta {
        gap: 12px;
        font-size: 11px;
    }

    .desktop-article-cover {
        border-radius: 16px;
    }

    .desktop-article-cover img {
        aspect-ratio: 16 / 10;
        min-height: 210px;
    }

    .desktop-article-cover figcaption {
        padding: 10px 13px;
    }
}


/* =====================================
   DESKTOP — ARTICLE READING EXPERIENCE
===================================== */

.desktop-article-body {
    width: min(100% - 40px, 820px);
    max-width: 820px;
    margin: 0 auto 55px;
    padding: 34px 38px;

    color: #252d50;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e3e6fa;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(49, 55, 130, .06);

    box-sizing: border-box;
}

.desktop-article-body p {
    margin: 0 0 1.5em;
}

.desktop-article-body h2,
.desktop-article-body h3,
.desktop-article-body h4 {
    color: #1a2ca8;
    font-weight: 850;
    line-height: 1.4;
}

.desktop-article-body h2 {
    margin: 10px 0;
    font-size: clamp(24px, 2vw, 30px);
}

.desktop-article-body h3 {
    margin: 1.7em 0 .7em;
    font-size: 22px;
}

.desktop-article-body h4 {
    margin: 1.5em 0 .6em;
    font-size: 19px;
}

.desktop-article-body a {
    color: #6639db;
    text-decoration: underline;
    text-decoration-color: #c9b9ff;
    text-underline-offset: 4px;
}

.desktop-article-body a:hover {
    color: #246dff;
}

.desktop-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
}

.desktop-article-body figure {
    max-width: 100%;
    margin: 30px 0;
}

.desktop-article-body figure img {
    margin-bottom: 10px;
}

.desktop-article-body figcaption {
    color: #7882a2;
    font-size: 12px;
    text-align: center;
}

.desktop-article-body blockquote {
    margin: 32px 0;
    padding: 22px 26px;
    border-right: 4px solid #7a35ef;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(120deg, #f0edff, #f7f9ff);
    color: #333b69;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
}

.desktop-article-body ul,
.desktop-article-body ol {
    margin: 0 0 24px;
    padding-right: 26px;
}

.desktop-article-body li {
    margin-bottom: 9px;
}

.desktop-article-body li::marker {
    color: #7540e8;
}

.desktop-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14px;
}

.desktop-article-body th,
.desktop-article-body td {
    padding: 13px 15px;
    border: 1px solid #e1e5fa;
    text-align: right;
}

.desktop-article-body th {
    background: #eeeaff;
    color: #25265d;
    font-weight: 800;
}

.desktop-article-body tr:nth-child(even) td {
    background: #f8f8ff;
}

.desktop-article-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
    border-radius: 14px;
    background: #171d37;
    color: #e6edff;
    direction: ltr;
    text-align: left;
    font-size: 13px;
}

.desktop-article-body :not(pre) > code {
    padding: 3px 6px;
    border-radius: 5px;
    background: #eeebff;
    color: #6639db;
    font-size: .9em;
}

.desktop-article-body iframe {
    max-width: 100%;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-article-body {
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-article-body {
        width: calc(100% - 28px);
        max-width: 100%;
        margin: 20px auto 35px;
        padding: 24px 20px;
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-article-body h2 {
        font-size: 24px;
        text-align: center;
    }

    .desktop-article-body h3 {
        font-size: 20px;
    }

    .desktop-article-body blockquote {
        padding: 18px;
        font-size: 17px;
    }

    .desktop-article-body th,
    .desktop-article-body td {
        padding: 10px;
        font-size: 12px;
    }
}


/* =====================================
   DESKTOP — ARTICLE LAYOUT & SIDEBAR
===================================== */

.desktop-article-section {
    padding: 0 20px 75px;
}

.desktop-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 25px;
    align-items: start;
    width: min(1300px, 100%);
    margin: 0 auto;
}

.desktop-article-main {
    min-width: 0;
}

.desktop-article-main .article-content-box {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.desktop-article-main .desktop-article-body {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
}

.desktop-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* POLL */

.desktop-article-sidebar .article-poll {
    margin: 0;
    padding: 22px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: linear-gradient(145deg, #fff, #f2efff);
    box-shadow: 0 8px 26px rgba(49,55,130,.07);
}

.desktop-article-sidebar .article-poll h2 {
    margin: 0 0 13px;
    color: #7438e6;
    font-size: 13px;
    font-weight: 800;
}

.desktop-article-sidebar .poll-title {
    margin: 0 0 18px;
    color: #192049;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.5;
}

.desktop-article-sidebar .poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desktop-article-sidebar .poll-option {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e3fa;
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    color: #222a52;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.desktop-article-sidebar .poll-option:hover {
    border-color: #a9a4ff;
    background: #fff;
}

.desktop-article-sidebar .poll-text {
    flex: 1;
    text-align: right;
    font-weight: 700;
}

.desktop-article-sidebar .poll-count {
    color: #7135df;
    font-weight: 800;
}

.desktop-article-sidebar .poll-bar {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eafd;
}

.desktop-article-sidebar .poll-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#287dff,#9a20f0);
    transition: width .3s ease;
}

/* RELATED ARTICLES */

.desktop-article-sidebar .sidebar-box {
    margin: 0;
    padding: 20px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 8px 26px rgba(49,55,130,.06);
}

.desktop-article-sidebar .section-kicker {
    margin-bottom: 16px;
    color: #192049;
    font-size: 17px;
    font-weight: 850;
}

.desktop-article-sidebar .sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-article-sidebar .sidebar-news-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 1px solid #e8e9fa;
    border-radius: 12px;
    background: #f8f8ff;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.desktop-article-sidebar .sidebar-news-card:hover {
    border-color: #b7afff;
    transform: translateY(-2px);
}

.desktop-article-sidebar .sidebar-news-card img {
    width: 75px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: cover;
}

.desktop-article-sidebar .sidebar-news-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.desktop-article-sidebar .sidebar-news-content span {
    color: #7540e8;
    font-size: 10px;
    font-weight: 800;
}

.desktop-article-sidebar .sidebar-news-content strong {
    color: #192049;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .desktop-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .desktop-article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .desktop-article-section {
        padding: 0 14px 45px;
    }

    .desktop-article-layout {
        gap: 20px;
    }

    .desktop-article-sidebar {
        display: flex;
        flex-direction: column;
    }

    .desktop-article-main .desktop-article-body {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-article-sidebar .poll-fill,
    .desktop-article-sidebar .poll-option,
    .desktop-article-sidebar .sidebar-news-card {
        transition: none;
    }
}


/* DESKTOP — ARTICLE SHARING */

.desktop-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
    padding: 18px;
    border: 1px solid #e2e5fc;
    border-radius: 17px;
    background: rgba(255,255,255,.8);
}

.desktop-share-bar .article-share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dfe2fc;
    border-radius: 12px;
    background: #f6f5ff;
    color: #4335bd;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.desktop-share-bar .article-share-btn:hover {
    background: #ebe7ff;
    transform: translateY(-2px);
}

.desktop-share-bar .article-share-btn:focus-visible {
    outline: 3px solid #8a59f4;
    outline-offset: 3px;
}

/* DESKTOP — ARTICLE COMMENTS */

.desktop-comments-section {
    margin: 24px 0 35px;
    min-width: 0;
}

.desktop-comments-heading {
    margin-bottom: 18px;
}

.desktop-comments-kicker {
    color: #8139f2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.desktop-comments-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #171d43;
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 850;
}

.desktop-comments-heading h2 svg {
    width: 25px;
    height: 25px;
    color: #8737f1;
}

.desktop-comments-heading p {
    margin: 0;
    color: #747f9e;
    font-size: 13px;
}

.desktop-comments-section .comments-wrap {
    min-width: 0;
}

.desktop-comments-section .comment-form-box {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 8px 26px rgba(49,55,130,.06);
}

.desktop-comments-section .comment-guest-note {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f0edff;
    color: #535d87;
    font-size: 12px;
}

.desktop-comments-section .comment-form-row {
    margin-bottom: 14px;
}

.desktop-comments-section .comment-label {
    display: block;
    margin-bottom: 9px;
    color: #1b2249;
    font-size: 13px;
    font-weight: 800;
}

.desktop-comments-section .comment-textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    padding: 15px;
    border: 1px solid #dfe3f8;
    border-radius: 13px;
    background: #fafaff;
    color: #20274d;
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}

.desktop-comments-section .comment-textarea:focus {
    outline: none;
    border-color: #8d6af4;
    box-shadow: 0 0 0 3px rgba(141,106,244,.12);
}

.desktop-comments-section .comment-form .btn-primary,
.desktop-comments-section .reply-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 10px 22px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(110deg,#1688ff,#9621ee);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-comments-section .comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desktop-comments-section .comment-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e2e5fa;
    border-radius: 17px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 5px 18px rgba(49,55,130,.04);
}

.desktop-comments-section .comment-head,
.desktop-comments-section .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-comments-section .comment-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.desktop-comments-section .comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.desktop-comments-section .comment-author strong,
.desktop-comments-section .comment-author a {
    color: #1b2249;
    font-size: 13px;
    text-decoration: none;
}

.desktop-comments-section .comment-head span {
    color: #8891ad;
    font-size: 11px;
}

.desktop-comments-section .comment-body {
    color: #30385b;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.desktop-comments-section .comment-reply-toggle {
    margin-top: 12px;
    padding: 6px 12px;
    border: 1px solid #e2dafa;
    border-radius: 10px;
    background: #f2efff;
    color: #7041d9;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-comments-section .reply-form {
    margin-top: 15px;
}

.desktop-comments-section .comment-children {
    margin-top: 15px;
    padding-right: 17px;
    border-right: 3px solid #e5dfff;
}

.desktop-comments-section .comment-card-child {
    background: #f8f7ff;
    box-shadow: none;
    margin: 5px 0 !important;
}

.desktop-comments-section .comments-empty {
    padding: 28px;
    border: 1px dashed #d8dcf7;
    border-radius: 16px;
    background: rgba(255,255,255,.65);
    color: #7781a2;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .desktop-share-bar {
        padding: 12px;
    }

    .desktop-share-bar .article-share-btn {
        flex: 1 1 auto;
        font-size: 12px;
    }

    .desktop-comments-section .comment-form-box,
    .desktop-comments-section .comment-card {
        padding: 15px;
    }

    .desktop-comments-section .comment-children {
        padding-right: 10px;
    }
}

.desktop-comments-section .comment-guest-name {
    display: block;
    width: 100%;
    max-width: 340px;
    margin-top: 9px;
    padding: 12px 15px;
    border: 1px solid #dfe3f5;
    border-radius: 12px;
    background: #fff;
    color: #252d50;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.desktop-comments-section .comment-guest-name:focus {
    outline: none;
    border-color: #7776e8;
    box-shadow: 0 0 0 3px rgba(119, 118, 232, .12);
}


:root {
    --bg: #f3f4ff;
    --surface: #ffffff;
    --surface-soft: #f8f8ff;

    --text: #111936;
    --text-muted: #66749c;

    --blue: #087cf3;
    --purple: #9421ed;
    --gradient: linear-gradient(110deg, #008ff5 0%, #4050e9 48%, #a020ed 100%);

    --border: #e0e4fa;
    --shadow: 0 6px 22px rgba(52, 65, 155, 0.10);
    --radius: 18px;

    --container: 1440px;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Google Sans", "Rubik", sans-serif !important;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none !important; }
img { display: block; max-width: 100%; }


/* DESKTOP — HEADER */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 3px 18px rgba(41, 55, 125, .07);
}

.header-inner {
    max-width: var(--container);
    min-height: 90px;
    padding: 12px 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 365px;
    height: auto;
    object-fit: contain;
}

.header-search {
    width: 405px;
    max-width: 45%;
    height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid #d7dcfa;
    border-radius: 30px;
    background: #f5f6ff;
    box-shadow: 0 3px 8px rgba(60, 75, 170, .10);
    overflow: hidden;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}

.header-search input::placeholder {
    color: #7480a6;
}

.header-search button {
    width: 56px;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-icon {
    display: block;
    width: 20px;
    height: 20px;
    border: 3px solid #354b87;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 3px;
    background: #354b87;
    border-radius: 2px;
    left: -7px;
    bottom: -4px;
    transform: rotate(45deg);
}

.main-navigation {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    min-height: 54px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3540d7;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 6px 6px 0 0;
    background: var(--gradient);
}

.nav-icon {
    font-size: 21px;
    line-height: 1;
    color: #34457e;
}

.mobile-header-actions {
    display: none;
}

/* MOBILE */

@media (max-width: 850px) {

    .header-inner {
        min-height: 72px;
        padding: 10px 16px;
        gap: 12px;
    }

    .site-logo img {
        width: min(52vw, 225px);
        max-height: 50px;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .mobile-search-toggle,
    .mobile-menu-toggle {
        width: 30px;
        height: 35px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 23px;
        height: 2px;
        background: #304780;
        border-radius: 2px;
    }

    .header-search {
        display: none;
        position: absolute;
        top: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        z-index: 120;
        background: white;
    }

    .header-search.is-open {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        box-shadow: var(--shadow);
        
    }

    .main-navigation.is-open {
        display: block;
    }

    .nav-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 18px;
        gap: 2px;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 13px 16px;
        border-radius: 10px;
    }
    .nav-link.active::after {
        display: none;
    }
}


/* ===================================
   HERO
=================================== */

.hero-section {
    display: grid;
    grid-template-columns: none;
    gap: 20px;
    direction: rtl;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 0px 0 18px 18px;
    direction: rtl;
    box-shadow: 0 12px 38px rgba(49, 55, 130, .10);
}

.hero-featured {
    min-height: 265px;
    background: #080d2d;
    color: white;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-featured .hero-image {
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(270deg, rgb(7 9 27 / 0.88) 22%, rgb(0 0 0 / 25%) 100%, rgb(0 0 0 / 0.41) 89% );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 300px;
    max-height: 300px;
    padding: 29px 63px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(110deg, #2778ff, #a020ed);
    font-size: 13px;
    font-weight: 600;
}

.hero-content h1 {
    margin: 12px 0 8px;
    font-size: clamp(21px, 1.8vw, 28px);
    line-height: 1.08;
    font-weight: 800;
    text-shadow: -2px -1px 12px rgb(0 0 0);
}

.hero-content p {
    margin: 15px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    width: 50%;
    text-shadow: -2px -1px 12px rgb(0 0 0);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 22px;
    border-radius: 25px;
    background: var(--gradient);
    font-weight: 700;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(63, 50, 207, .25);
    transition: transform .2s, box-shadow .2s;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(63, 50, 207, .35);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 6px;
}

.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}

.hero-dots span.active {
    background: white;
}

/* SECONDARY HERO */

.hero-secondary {
    min-height: 265px;
    background: #e9e5ff;
    border: 2px solid white;
}

.hero-secondary .hero-image {
    height: 58%;
    object-position: 0 30%;
}

.secondary-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.secondary-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    min-height: 45%;
    padding: 16px 20px;
    background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(236,233,255,.95));
    text-align: right;
}

.secondary-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.secondary-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.secondary-arrow {
    position: absolute;
    bottom: 10px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
    box-shadow: 0 2px 8px rgba(55, 65, 150, .15);
    color: #3543ba;
    font-size: 25px;
}

/* ===================================
   MOBILE HERO
=================================== */

@media (max-width: 850px) {
    .desktop-main {
        padding: 16px 12px 40px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-featured {
        min-height: 330px;
        place-content: end;
    }

    .hero-featured .hero-image {
        height: 100%;
        object-position: center top;
    }

    .hero-overlay {
        background: linear-gradient( 180deg, rgb(21 28 117 / 85%) 0%, rgb(0 0 0 / 66%) 35%, rgb(0 0 0 / 0.63) 75% );
    }

    .hero-button {
        width: 100%;
        max-width: 275px;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .hero-dots {
        display: none;
    }

    .hero-secondary {
        min-height: 240px;
    }
}


/* ===================================
   DESKTOP — PRODUCT CATEGORIES
=================================== */

.home-categories {
    margin-top: 20px;
    margin-bottom: 26px;
}

.categories-track {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-width: 0;
    min-height: 92px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgb(255 255 255 / 0.43);
    border-radius: 16px;

    background: linear-gradient( 150deg, #ffffff, rgb(181 191 229 / 14%));

    box-shadow: 0 2px 8px rgb(57 69 156 / 22%), inset 0 1px 0 rgba(255, 255, 255, .9);

    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-align: center;

    transition:
            transform .2s ease,
            box-shadow .2s ease,
            border-color .2s ease;
}

.category-card svg {
    width: 32px;
    height: 32px;
    stroke: #4a48dd;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #c5c7ff;
    box-shadow: 0 10px 22px rgba(67, 66, 173, .16);
}

.category-card:hover svg {
    stroke: #8b28ed;
}

.category-card span {
    line-height: 1.25;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .categories-track {
        gap: 8px;
    }

    .category-card {
        font-size: 11px;
        padding: 10px 5px;
    }
}

/* MOBILE */

@media (max-width: 850px) {

    .hero-content p {
        width: 90%;
        text-align: justify;
        margin: 0 auto;
        text-shadow: 1px 0px 1px #00053799, 0px 1px 1px #00053799, 2px 1px 1px #00053799,
        1px 2px 1px #00053799, 0px 1px 1px #00053799, 2px -2px 1px #00053799,
        2px 3px 1px #00053799, 1px 1px 1px #00053799, 5px 1px 1px #00053799,
        2px 5px 1px #00053799, 0px 1px 1px #00053799, 5px 3px 1px #00053799,
        3px 6px 1px rgb(0 5 55 / 0.6);
    }

    .hero-content h1 {
        text-shadow: 1px 0px 1px #00053799, 0px 1px 1px #00053799, 2px 1px 1px #00053799,
        1px 2px 1px #00053799, 0px 1px 1px #00053799, 2px -2px 1px #00053799,
        2px 3px 1px #00053799, 1px 1px 1px #00053799, 5px 1px 1px #00053799,
        2px 5px 1px #00053799, 0px 1px 1px #00053799, 5px 3px 1px #00053799,
        3px 6px 1px #00053799;
    }

        .home-categories {
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .categories-track {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;

        padding: 3px 2px 12px;
    }

    .categories-track::-webkit-scrollbar {
        display: none;
    }

    .category-card {

        flex: 0 0 calc((100% - 27px) / 3.6);

        min-height: 80px;
        padding: 9px 4px;
        gap: 7px;
        scroll-snap-align: start;
        font-size: 11px;
        border-radius: 13px;
    }

    .category-card svg {
        width: 27px;
        height: 27px;
    }

    .category-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card {
        transition: none;
    }
}


/* ===================================
   DESKTOP — FEATURED ARTICLES
=================================== */

.home-articles {
    width: 100%;
    min-width: 0;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #101638;
}

.section-heading svg {
    width: 25px;
    height: 25px;
    stroke: #8a22f5;
}

.featured-article {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgb(233 234 253 / 0.76);
    border-radius: 16px;
    background:
            radial-gradient(circle, #cbcee70d 8%, rgb(43 32 209 / 6%) 69%);
}

.featured-article-image {
    display: block;
    overflow: hidden;
    min-height: 205px;
    border-radius: 12px;
}

.featured-article-image img,
.mini-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    backdrop-filter: blur(700px);
}

.featured-article-image:hover img,
.mini-article-image:hover img {
    transform: scale(1.035);
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 0;
    width: 100%;
}

.article-label {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(110deg,#1687ff,#a31af0);
    font-size: 12px;
    font-weight: 700;
}

.featured-article h3 {
    margin: 14px 0 10px;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.3;
    font-weight: 800;
    color: #152793;
}

.featured-article-content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #606b91;
    width: 80%;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #66739f;
    font-size: 12px;
}

.featured-article-content .article-meta {
    margin-top: auto;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta svg {
    width: 14px;
    height: 14px;
}

.articles-mini-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-article {
    min-width: 0;
    padding: 7px;
    border-radius: 14px;
    border: 1px solid rgb(233 234 253 / 0.76);
    background:
            radial-gradient(circle, rgb(255 255 255 / 0.7) 37%, rgb(221 225 241 / 0.7) 136%);

}

.mini-article-image {
    position: relative;
    display: block;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
}

.mini-article-image .article-label {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 1;
}

.mini-article h3 {
    margin: 10px 4px;
    min-height: 43px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    color: #152793;
}

.mini-article .article-meta {
    margin: 0 4px 5px;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border: 1px solid #cbd3ff;
    border-radius: 25px;
    background: #fff;
    color: #303d8e;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(54,65,148,.07);
}

.section-more svg {
    width: 16px;
    height: 16px;
}

.section-more:hover {
    color: #7a22e9;
    border-color: #a5aaff;
}

/* TABLET */
@media (max-width: 1100px) and (min-width: 701px) {
    .featured-article {
        grid-template-columns: 50% minmax(0,1fr);
    }
}

/* MOBILE */
@media (max-width: 700px) {
    .home-articles {
        padding: 15px 12px;
        border-radius: 17px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .featured-article {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .featured-article-image {
        height: 190px;
        min-height: 0;
    }

    .featured-article-content {
        padding: 2px 5px 8px;
        width: 100%;
    }

    .featured-article h3 {
        font-size: 19px;
    }

    .articles-mini-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mini-article {
        display: grid;
        grid-template-columns: 120px minmax(0,1fr);
        grid-template-rows: 1fr auto;
        column-gap: 12px;
        padding: 7px;
        align-items: center;
    }

    .mini-article-image {
        grid-row: 1 / 3;
        height: 90px;
    }

    .mini-article h3 {
        margin: 4px 0;
        min-height: 0;
        font-size: 13px;
    }

    .mini-article .article-meta {
        margin: 0 0 4px;
    }

    .mini-article-image .article-label {
        font-size: 10px;
        padding: 3px 7px;
    }
}

@media (max-width: 370px) {
    .mini-article {
        grid-template-columns: 100px minmax(0,1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-article-image img,
    .mini-article-image img {
        transition: none;
    }
}


/* ===================================
   DESKTOP — CONTENT GRID
=================================== */

.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
    padding: 0 40px;
}

.home-content-grid > * {
    min-width: 0;
}

/* ===================================
   DESKTOP — PRICE COMPARISON FEED
=================================== */

.home-prices {
    padding: 24px 14px 30px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
    height: stretch;
    display: grid;
    gap: 15px;
}

.home-prices .section-heading {
    margin-bottom: 18px;
}

.home-prices .section-heading h2 {
    font-size: 19px;
}

.price-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-feed-item {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 77px;
    padding: 8px;
    border: 1px solid #e8eafb;
    border-radius: 14px;
    background: linear-gradient(145deg,#fff,#f6f6ff);
    transition: border-color .2s, transform .2s;
}

.price-feed-item:hover {
    border-color: #bfc6ff;
    transform: translateY(-2px);
}

.price-feed-item > img {
    width: 68px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px;
    background: #eef0ff;
}

.price-feed-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-feed-info h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.price-feed-info strong {
    font-size: 12px;
    font-weight: 700;
    color: #304db7;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

.price-feed-info > span {
    font-size: 11px;
    color: #6c789f;
}

.price-change {
    padding: 5px 7px;
    border-radius: 20px;
    background: #ff3357;
    color: white;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    direction: ltr;
}

.prices-all-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 25px;
    background: var(--gradient);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 13px rgba(81,59,202,.20);
    transition: transform .2s, box-shadow .2s;
}

.prices-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 19px rgba(81,59,202,.30);
}

.prices-all-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* TABLET AND MOBILE */

@media (max-width: 1050px) {
    .home-content-grid {
        grid-template-columns: minmax(0,1fr);
        padding: 0;
        margin-top: 5px;
    }

    .home-prices {
        width: 100%;
    }

    .price-feed {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .home-content-grid {
        gap: 16px;
    }

    .home-prices {
        padding: 15px 12px;
        border-radius: 17px;
    }

    .home-prices .section-heading h2 {
        font-size: 18px;
    }

    .price-feed {
        display: flex;
        flex-direction: column;
    }

    .price-feed-item {
        grid-template-columns: 64px minmax(0,1fr) auto;
        gap: 7px;
    }

    .price-feed-item > img {
        width: 64px;
        height: 56px;
    }

    .price-feed-info h3 {
        font-size: 11px;
    }

    .price-feed-info strong {
        font-size: 11px;
    }

    .price-change {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 370px) {
    .price-feed-item {
        grid-template-columns: 52px minmax(0,1fr) auto;
        gap: 5px;
        padding: 6px;
    }

    .price-feed-item > img {
        width: 52px;
        height: 50px;
    }

    .price-feed-info strong {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-feed-item,
    .prices-all-button {
        transition: none;
    }
}


/* ===================================
   DESKTOP — RECOMMENDED PRODUCTS
=================================== */

.home-products {
    margin-top: 20px;
    padding: 18px 16px 20px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(54,65,148,.09);
    margin: 0 40px;
}

.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.products-section-header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #101638;
}

.products-section-header h2 svg {
    width: 25px;
    height: 25px;
    stroke: #9324f5;
}

.products-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #433bdb;
    white-space: nowrap;
}

.products-view-all svg {
    width: 15px;
    height: 15px;
}

.products-carousel {
    position: relative;
    min-width: 0;
}

.products-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 3px 2px 12px;
}

.products-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 0;
    padding: 12px 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e5e9ff;
    border-radius: 15px;
    background: linear-gradient(150deg,#fff,#f1f2ff);
    box-shadow: 0 4px 12px rgba(54,65,148,.06);
    scroll-snap-align: start;
}

.product-rating {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 1;
    padding: 4px 7px;
    border-radius: 15px;
    background: #fff;
    color: #ff9700;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(0,0,0,.07);
    direction: ltr;
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 115px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 10px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    margin: 0 0 10px;
    min-height: 35px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    direction: ltr;
}

.product-price {
    margin-top: auto;
    margin-bottom: 9px;
    color: #7922ed;
    font-size: 16px;
    font-weight: 800;
}

.product-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 7px 5px;
    border: 1px solid #d7d6ff;
    border-radius: 20px;
    background: #eeedff;
    color: #5430dc;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.product-compare:hover {
    background: linear-gradient(110deg,#1687ff,#a31af0);
    color: #fff;
}

.product-compare svg {
    width: 13px;
    height: 13px;
}

.products-arrow {
    position: absolute;
    z-index: 2;
    top: 43%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #dce0ff;
    border-radius: 50%;
    background: #fff;
    color: #34418c;
    box-shadow: 0 3px 12px rgba(42,53,130,.14);
    cursor: pointer;
}

.products-arrow svg {
    width: 20px;
    height: 20px;
}

.products-prev {
    right: -15px;
}

.products-next {
    left: -15px;
}

.products-arrow:disabled {
    opacity: .35;
    cursor: default;
}

/* TABLET */
@media (max-width: 1050px) {
    .product-card {
        flex-basis: calc((100% - 24px) / 3);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .home-products {
        padding: 15px 12px;
        border-radius: 17px;
        margin: 0;
    }

    .products-section-header h2 {
        font-size: 18px;
    }

    .products-view-all {
        font-size: 11px;
    }

    .products-track {
        gap: 8px;
    }

    .product-card {
        flex-basis: calc((100% - 16px) / 3);
        padding: 9px 5px;
    }

    .product-card-image {
        height: 80px;
    }

    .product-card h3 {
        font-size: 10px;
        min-height: 42px;
    }

    .product-price {
        font-size: 13px;
    }

    .product-rating {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 3px 5px;
    }

    .product-compare {
        font-size: 9px;
        padding: 6px 2px;
    }

    .products-arrow {
        width: 29px;
        height: 29px;
    }

    .products-prev {
        right: -10px;
    }

    .products-next {
        left: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-track {
        scroll-behavior: auto;
    }
}


/* ===================================
   DESKTOP — BUYING GUIDES CTA
=================================== */

.home-guides-cta {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 20px;
    padding: 30px 24px;

    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;

    background: linear-gradient(
            135deg,
            rgba(255,255,255,.93),
            rgba(240,234,255,.95)
    );

    box-shadow: 0 8px 24px rgba(54,65,148,.09);
    text-align: center;
}

.guides-cta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guides-cta-icon svg {
    width: 48px;
    height: 48px;
    stroke: #9224f5;
    stroke-width: 1.7;
}

.guides-cta-content {
    max-width: 580px;
}

.guides-cta-content h2 {
    margin: 0 0 9px;
    color: #101638;
    font-size: 26px;
    font-weight: 800;
}

.guides-cta-content p {
    margin: 0 0 20px;
    color: #59658b;
    font-size: 15px;
    line-height: 1.65;
}

.guides-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 220px;
    min-height: 44px;
    padding: 10px 24px;

    border-radius: 25px;
    background: linear-gradient(110deg,#1687ff,#a31af0);
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(81,59,202,.2);
    transition: transform .2s, box-shadow .2s;
}

.guides-cta-button svg {
    width: 17px;
    height: 17px;
}

.guides-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(81,59,202,.28);
}

/* MOBILE */

@media (max-width: 700px) {
    .home-guides-cta {
        flex-direction: column;
        gap: 10px;
        padding: 25px 18px;
        border-radius: 17px;
    }

    .guides-cta-icon svg {
        width: 37px;
        height: 37px;
    }

    .guides-cta-content h2 {
        font-size: 22px;
    }

    .guides-cta-content p {
        font-size: 13px;
    }

    .guides-cta-button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guides-cta-button {
        transition: none;
    }
}


/* ===================================
   DESKTOP — SITE FOOTER
=================================== */

.desktop-footer {
    position: relative;
    margin-top: 38px;
    padding: 42px 20px 0;

    border-top: 1px solid rgba(146, 130, 245, .22);

    background: linear-gradient(
            135deg,
            rgb(249 250 255 / 0.8) 0%,
            rgb(240 239 255 / 0.77) 55%,
            rgb(244 234 255 / 0.71) 100%
    ),
    url(../images/header-bgr.jpg);

    box-shadow: 0 -8px 30px rgba(57, 65, 145, .04);
}

.desktop-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
            90deg,
            #1687ff,
            #6839ed,
            #a31af0
    );
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(250px, 1.8fr) repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding-bottom: 38px;
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    width: 210px;
    height: auto;
    max-width: 100%;
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 330px;
    margin: 0 0 16px;
    color: #58658c;
    font-size: 13px;
    line-height: 1.85;
}

.footer-brand-line {
    color: #606c9b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    direction: ltr;
    display: inline-block;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.footer-column h3 {
    margin: 5px 0 7px;
    color: #152aa6;
    font-size: 15px;
    font-weight: 800;
}

.footer-column a {
    color: #293f85;
    font-size: 13px;
    line-height: 1.4;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: #8325e9;
}

.footer-column a:focus-visible {
    outline: 2px solid #7035e8;
    outline-offset: 4px;
    border-radius: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 19px 0 22px;
    border-top: 1px solid rgba(106, 117, 187, .16);

    color: #6b759a;
    font-size: 12px;
}

.footer-bottom-note {
    color: #7a6bb0;
}

/* TABLET */

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .desktop-footer {
        margin-top: 25px;
        padding: 30px 20px 0;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
        padding-bottom: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        width: 195px;
        margin: 0 auto 14px;
    }

    .footer-brand p {
        max-width: 340px;
        margin: 0 auto 12px;
        font-size: 12px;
    }

    .footer-brand-line {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        font-size: 11px;
    }
}

@media (max-width: 350px) {
    .footer-top {
        column-gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-column a {
        transition: none;
    }
}

/* ===================================
   DESKTOP — FLOATING GLASS HEADER
=================================== */

.desktop-floating-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    width: 100%;
    max-width: none;
    margin: 0;

    border-radius: 0 0 16px 16px;

    z-index: 1000;



    background: transparent;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    border: 1px solid rgba(255, 255, 255, 0.75);

    box-shadow:
            0 8px 30px rgba(43, 48, 135, 0.13),
            inset 0 1px 0 rgba(255,255,255,0.8);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-24px);

    transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;

    pointer-events: none;
}

/* Glass background layer, separate from mega menu */
.desktop-floating-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: rgb(230 232 255 / 0.24);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    pointer-events: none;
    z-index: -1;
}

.desktop-floating-header.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;

    min-height: 66px;
    padding: 8px 24px;
}

.floating-logo {
    flex-shrink: 0;
}

.floating-logo img {
    width: 195px;
    height: auto;
}

.floating-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.floating-navigation .nav-link {
    font-size: 12px;
    padding: 12px 5px;
}

.floating-navigation .nav-icon {
    font-size: 17px;
}

.floating-search-toggle {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.65);
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-floating-header {
        top: 8px;
        right: 10px;
        left: 10px;
        border-radius: 15px;
    }

    .floating-header-inner {
        min-height: 56px;
        padding: 8px 14px;
        gap: 12px;
    }

    .floating-logo img {
        width: min(43vw, 175px);
    }

    .floating-navigation {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-floating-header {
        transition: none;
    }
}


/* FLOATING HEADER — FULL WIDTH */

.desktop-floating-header {
    background: rgba(244, 245, 255, 0.78);
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.floating-header-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.floating-navigation .nav-link.active::after {
    bottom: -8px;
}

@media (max-width: 850px) {
    .desktop-floating-header {
        top: 0;
        right: 0;
        left: 0;
        border-radius: 0 0 14px 14px;
    }
}

.floating-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.floating-menu-toggle span {
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: #304780;
}

.floating-search-panel[hidden] {
    display: none !important;
}

.floating-search-panel {
    display: flex;
    gap: 10px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px 16px;
}

.floating-search-panel input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #d7dcfa;
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    font: inherit;
}

.floating-search-panel button {
    padding: 8px 22px;
    border: 0;
    border-radius: 20px;
    background: var(--gradient);
    color: white;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 850px) {
    .floating-header-inner {
        justify-content: space-between;
    }

    .floating-menu-toggle {
        display: flex;
    }

    .floating-navigation {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 12px 20px;
        background: rgba(246,246,255,.97);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .floating-navigation.is-open {
        display: flex;
    }

    .floating-navigation .nav-link {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .floating-search-panel {
        padding: 10px 14px 14px;
    }
}


/* ===================================
   DESKTOP — PRODUCTS MEGA MENU
=================================== */

.nav-mega-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mega-chevron {
    margin-bottom: 10px;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}

.nav-mega-trigger[aria-expanded="true"] .mega-chevron {
    transform: rotate(180deg);
    margin-bottom: -10px;
}

/* The panel is positioned relative to the viewport. */

.mega-panel {
    position: fixed;
    top: var(--mega-top, 110px);

    left: 0;
    right: 0;
    transform: none;

    width: 100%;
    max-height: calc(100dvh - var(--mega-top, 110px) - 16px);
    overflow-y: auto;

    padding: 26px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 0 0 22px 22px;

    background: rgb(248 248 255 / 0.82);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);

    box-shadow:
            0 20px 60px rgba(35,43,117,.19),
            inset 0 1px 0 rgba(255,255,255,.9);

    z-index: 1100;
}

.mega-panel[hidden] {
    display: none !important;
}

.mega-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 23px;
    padding-bottom: 19px;
    border-bottom: 1px solid #e4e6fa;
}

.mega-eyebrow {
    color: #7934e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.mega-panel-header h2 {
    margin: 6px 0 8px;
    color: #111638;
    font-size: 25px;
    font-weight: 800;
}

.mega-panel-header p {
    margin: 0;
    color: #687394;
    font-size: 13px;
    line-height: 1.6;
}

.mega-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;

    padding: 10px 18px;
    border: 1px solid #d6d8ff;
    border-radius: 24px;

    background: #fff;
    color: #5731d8;
    font-size: 13px;
    font-weight: 700;
}

.mega-all-link svg {
    width: 16px;
    height: 16px;
}

.mega-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 13px;
}

.mega-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    min-width: 0;
    min-height: 145px;
    padding: 19px;

    border: 1px solid #e6e8fb;
    border-radius: 16px;

    background: linear-gradient(145deg, rgb(255 255 255 / 0.82), rgb(246 245 255 / 0.77));
    box-shadow: 0 4px 13px rgba(52,59,142,.05);

    transition:
            transform .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
}

.mega-category:hover {
    transform: translateY(-3px);
    border-color: #b7b6ff;
    box-shadow: 0 9px 22px rgba(52,59,142,.12);
}

.mega-category-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(135deg,#e8f3ff,#efe2ff);
    color: #7234dc;
}

.mega-category-icon svg {
    width: 21px;
    height: 21px;
}

.mega-category strong {
    color: #18214b;
    font-size: 15px;
    font-weight: 800;
}

.mega-category small {
    color: #697594;
    font-size: 11px;
    line-height: 1.5;
}

.mega-category-all {
    background: linear-gradient(135deg,#f1f4ff,#eee6ff);
    border-color: #d6d5ff;
}

.mega-category:focus-visible,
.mega-all-link:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1050px) {
    .mega-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .nav-mega-item {
        display: block;
        width: 100%;
    }

    .mega-panel {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 12px;
        margin-top: 5px;

        transform: none;
        border-radius: 14px;
        box-shadow: none;
        background: rgba(245,244,255,.95);
    }

    .mega-panel-header {
        display: block;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .mega-panel-header h2 {
        font-size: 17px;
    }

    .mega-panel-header p {
        font-size: 11px;
    }

    .mega-all-link {
        margin-top: 12px;
        font-size: 11px;
    }

    .mega-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .mega-category {
        min-height: 116px;
        padding: 12px;
    }

    .mega-category strong {
        font-size: 13px;
    }

    .mega-category small {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-category,
    .mega-chevron {
        transition: none;
    }
}

/* MEGA MENU — FULL WIDTH WITH CENTERED CONTENT */

@media (min-width: 851px) {
    .mega-panel-header,
    .mega-categories {
        max-width: 1388px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MOBILE NAVIGATION — SCROLLABLE MENUS */

@media (max-width: 850px) {

    .main-navigation.is-open,
    .floating-navigation.is-open {
        max-height: calc(100dvh - 85px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #c8c4ef transparent;
    }

    .mega-panel {
        max-height: none;
        overflow: visible;
    }

}


/* ===================================
   DESKTOP — ARTICLES MEGA MENU
=================================== */

.mega-articles-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-articles-layout h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 800;
    color: #151b42;
}

.mega-articles-topics {
    min-width: 0;
}

.mega-topic {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 57px;
    margin-bottom: 9px;
    padding: 12px 15px;
    border: 1px solid #e6e8fb;
    border-radius: 13px;
    background: linear-gradient(145deg,#fff,#f7f6ff);
    color: #273260;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s, border-color .2s;
    backdrop-filter: blur(16px);
}

.mega-topic:hover {
    transform: translateX(-3px);
    border-color: #bdbbff;
}

.mega-topic svg {
    width: 20px;
    height: 20px;
    color: #7135df;
    flex-shrink: 0;
}

.mega-topic span {
    flex: 1;
}

.mega-topic svg:last-child {
    width: 15px;
    height: 15px;
    color: #8e96bb;
}

.mega-articles-featured {
    min-width: 0;
}

.mega-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 14px;
}

.mega-editorial-main {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: #fff;
    padding: 9px 9px 16px;
}

.mega-editorial-main img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 11px;
    backdrop-filter: blur(100px);
}

.mega-editorial-tag {
    align-self: flex-start;
    margin: 12px 5px 7px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #efebff;
    color: #7132db;
    font-size: 10px;
    font-weight: 800;
}

.mega-editorial-main strong {
    margin: 0 5px 7px;
    font-size: 17px;
    line-height: 1.35;
    color: #151b42;
}

.mega-editorial-main small {
    margin: 0 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #687394;
}

.mega-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-editorial-small {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 18px;
    border: 1px solid #e4e7fa;
    border-radius: 15px;
    background: linear-gradient(145deg,#fff,#f1efff);
    font-size: 13px;
    font-weight: 700;
    color: #293263;
}

.mega-editorial-small svg {
    width: 23px;
    height: 23px;
    color: #7934e9;
    flex-shrink: 0;
}

.mega-editorial-main:hover,
.mega-editorial-small:hover {
    border-color: #b9b7ff;
    box-shadow: 0 6px 18px rgba(53,58,145,.09);
}

.mega-topic:focus-visible,
.mega-editorial-main:focus-visible,
.mega-editorial-small:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-articles-layout {
        grid-template-columns: 250px minmax(0,1fr);
        gap: 18px;
    }

    .mega-editorial-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .mega-editorial-side {
        flex-direction: row;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-articles-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-editorial-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .mega-editorial-main img {
        height: 150px;
    }

    .mega-editorial-side {
        flex-direction: column;
    }

    .mega-editorial-small {
        min-height: 65px;
    }

    .mega-articles-layout h3 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-topic {
        transition: none;
    }
}


/* ===================================
   DESKTOP — REVIEWS MEGA MENU
=================================== */

.mega-reviews-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-reviews-layout h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 800;
    color: #151b42;
}

.mega-reviews-topics,
.mega-reviews-featured {
    min-width: 0;
}

.mega-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mega-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 9px;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f7f6ff);
    box-shadow: 0 4px 13px rgba(52,59,142,.05);
    transition: transform .2s ease, box-shadow .2s ease;
    direction: rtl;
}

.mega-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(52,59,142,.13);
}

.mega-review-image {
    position: relative;
    height: 175px;
    overflow: hidden;
    border-radius: 11px;
    background: #e9eaff;
}

.mega-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backdrop-filter: blur(100px);
    border-radius: 11px;
}

.mega-review-label {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(42,40,130,.18);
}

.mega-review-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 9px;
    padding: 15px 9px 10px;
}

.mega-review-content strong {
    font-size: 17px;
    font-weight: 800;
    color: #151b42;
    direction: rtl;
    text-align: right;
}

.mega-review-content small {
    font-size: 12px;
    line-height: 1.6;
    color: #687394;
}

.mega-review-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #6334dc;
    font-size: 12px;
    font-weight: 700;
}

.mega-review-read svg {
    width: 15px;
    height: 15px;
}

.mega-review-card:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-reviews-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 18px;
    }

    .mega-review-image {
        height: 135px;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-reviews-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-reviews-layout h3 {
        font-size: 14px;
    }

    .mega-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .mega-review-image {
        height: 160px;
    }

    .mega-review-content strong {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-review-card {
        transition: none;
    }
}


/* ===================================
   DESKTOP — GUIDES MEGA MENU
=================================== */

.mega-guides-layout {
    display: grid;
    grid-template-columns: none;
    gap: 28px;
    max-width: 1388px;
    margin: 0 auto;
}

.mega-guides-layout h3 {
    margin: 0 0 15px;
    color: #151b42;
    font-size: 16px;
    font-weight: 800;
}

.mega-guides-paths,
.mega-guides-featured {
    min-width: 0;
}

.mega-guide-path {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #e4e7fa;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f7f6ff);
    transition: transform .2s, border-color .2s;
}

.mega-guide-path:hover {
    transform: translateX(-3px);
    border-color: #b9b7ff;
}

.mega-guide-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6f2ff, #eee4ff);
    color: #7135df;
}

.mega-guide-icon svg {
    width: 22px;
    height: 22px;
}

.mega-guide-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mega-guide-text strong {
    color: #18214b;
    font-size: 14px;
    font-weight: 800;
}

.mega-guide-text small {
    color: #687394;
    font-size: 11px;
}

.mega-guide-path > svg {
    width: 16px;
    height: 16px;
    color: #9098ba;
}

.mega-guides-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 14px;
}

.mega-guide-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 9px;
    border: 1px solid #e4e7fa;
    border-radius: 16px;
    background: #fff;
}

.mega-guide-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 11px;
}

.mega-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backdrop-filter: blur(100px);
}

.mega-guide-image > span {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.mega-guide-main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    flex: 1;
    padding: 15px 8px 9px;
}

.mega-guide-main-content strong {
    color: #151b42;
    font-size: 17px;
    font-weight: 800;
}

.mega-guide-main-content small {
    color: #687394;
    font-size: 12px;
    line-height: 1.6;
}

.mega-guide-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #6734dc;
    font-size: 12px;
    font-weight: 700;
}

.mega-guide-read svg {
    width: 15px;
    height: 15px;
}

.mega-guides-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-guide-small {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 1;
    padding: 18px;
    border: 1px solid #e4e7fa;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f1efff);
}

.mega-guide-small > svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #7934e9;
}

.mega-guide-small span {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mega-guide-small strong {
    color: #18214b;
    font-size: 13px;
    font-weight: 800;
}

.mega-guide-small small {
    color: #687394;
    font-size: 11px;
    line-height: 1.5;
}

.mega-guide-main:hover,
.mega-guide-small:hover {
    border-color: #b9b7ff;
    box-shadow: 0 7px 20px rgba(52,59,142,.1);
}

.mega-guide-path:focus-visible,
.mega-guide-main:focus-visible,
.mega-guide-small:focus-visible {
    outline: 3px solid #7540e8;
    outline-offset: 3px;
}

/* TABLET */

@media (min-width: 851px) and (max-width: 1100px) {
    .mega-guides-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 18px;
    }

    .mega-guides-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mega-guides-side {
        flex-direction: row;
    }
}

/* MOBILE */

@media (max-width: 850px) {
    .mega-guides-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-guides-layout h3 {
        font-size: 14px;
    }

    .mega-guides-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mega-guides-side {
        flex-direction: column;
    }

    .mega-guide-image {
        height: 155px;
    }

    .mega-guide-path {
        min-height: 65px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-guide-path {
        transition: none;
    }
}


/* =====================================
   DESKTOP — SINGLE ARTICLE
===================================== */

.desktop-article-container {
    width: min(1388px, calc(100% - 40px));
    margin-inline: auto;
}

.desktop-article-hero {
    padding: 0px 0 5px;
}

.desktop-article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: #1f3088;
    font-size: 12px;
}

.desktop-article-breadcrumbs a {
    color: #1f3088;
    text-decoration: none;
}

.desktop-article-breadcrumbs a:hover {
    color: #7135df;
}

.desktop-article-breadcrumbs svg {
    width: 14px;
    height: 14px;
}

.desktop-article-heading {
    max-width: 950px;
    margin: 30px auto 30px;
    text-align: center;
}

.desktop-article-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg,#287dff,#9a20f0);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.desktop-article-heading h1 {
    margin: 17px 0;
    color: #141b42;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.desktop-article-lead {
    max-width: 790px;
    margin: 0 auto 22px;
    color: #657092;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.8;
}

.desktop-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #6c779b;
    font-size: 12px;
}

.desktop-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(90deg,#1b28c3, #7320f0);
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.desktop-article-meta svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.desktop-article-cover {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e1e4fc;
    border-radius: 0 0 28px 28px;
    background: #e8eaff;
    box-shadow: 0 12px 38px rgba(49,55,130,.10);
}

.desktop-article-cover img {
    display: block;
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.desktop-article-cover figcaption {
    padding: 12px 20px;
    background: rgba(255,255,255,.9);
    color: #7b84a5;
    font-size: 11px;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-article-container {
        width: calc(100% - 28px);
    }

    .desktop-article-hero {
        padding: 22px 0;
    }

    .desktop-article-breadcrumbs {
        margin-bottom: 22px;
    }

    .desktop-article-heading {
        margin-bottom: 24px;
    }

    .desktop-article-heading h1 {
        font-size: clamp(27px, 7vw, 36px);
    }

    .desktop-article-meta {
        gap: 12px;
        font-size: 11px;
    }

    .desktop-article-cover {
        border-radius: 16px;
    }

    .desktop-article-cover img {
        aspect-ratio: 16 / 10;
        min-height: 210px;
    }

    .desktop-article-cover figcaption {
        padding: 10px 13px;
    }
}


/* =====================================
   DESKTOP — ARTICLE READING EXPERIENCE
===================================== */

.desktop-article-body {
    width: min(100% - 40px, 820px);
    max-width: 820px;
    margin: 0 auto 55px;
    padding: 34px 38px;

    color: #252d50;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e3e6fa;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(49, 55, 130, .06);

    box-sizing: border-box;
}

.desktop-article-body p {
    margin: 0 0 1.5em;
    text-align: justify;
}

.desktop-article-body h2,
.desktop-article-body h3,
.desktop-article-body h4 {
    color: #432ee3;
    font-weight: 850;
    line-height: 1.4;
}

.desktop-article-body h2 {
    margin: 15px 0;
    font-size: clamp(24px, 2vw, 30px);
}

.desktop-article-body h3 {
    margin: 1.7em 0 .7em;
    font-size: 22px;
}

.desktop-article-body h4 {
    margin: 1.5em 0 .6em;
    font-size: 19px;
}

.desktop-article-body a {
    color: #6639db;
    text-decoration: underline;
    text-decoration-color: #c9b9ff;
    text-underline-offset: 4px;
}

.desktop-article-body a:hover {
    color: #246dff;
}

.desktop-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
}

.desktop-article-body figure {
    max-width: 100%;
    margin: 30px 0;
}

.desktop-article-body figure img {
    margin-bottom: 10px;
}

.desktop-article-body figcaption {
    color: #7882a2;
    font-size: 12px;
    text-align: center;
}

.desktop-article-body blockquote {
    margin: 32px 0;
    padding: 22px 26px;
    border-right: 4px solid #7a35ef;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(120deg, #f0edff, #f7f9ff);
    color: #333b69;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
}

.desktop-article-body ul,
.desktop-article-body ol {
    margin: 0 0 24px;
    padding-right: 26px;
}

.desktop-article-body li {
    margin-bottom: 9px;
}

.desktop-article-body li::marker {
    color: #7540e8;
}

.desktop-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14px;
}

.desktop-article-body th,
.desktop-article-body td {
    padding: 13px 15px;
    border: 1px solid #e1e5fa;
    text-align: right;
}

.desktop-article-body th {
    background: #eeeaff;
    color: #25265d;
    font-weight: 800;
}

.desktop-article-body tr:nth-child(even) td {
    background: #f8f8ff;
}

.desktop-article-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
    border-radius: 14px;
    background: #171d37;
    color: #e6edff;
    direction: ltr;
    text-align: left;
    font-size: 13px;
}

.desktop-article-body :not(pre) > code {
    padding: 3px 6px;
    border-radius: 5px;
    background: #eeebff;
    color: #6639db;
    font-size: .9em;
}

.desktop-article-body iframe {
    max-width: 100%;
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-article-body {
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-article-body {
        width: calc(100% - 28px);
        max-width: 100%;
        margin: 20px auto 35px;
        padding: 24px 20px;
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-article-body h2 {
        font-size: 24px;
    }

    .desktop-article-body h3 {
        font-size: 20px;
    }

    .desktop-article-body blockquote {
        padding: 18px;
        font-size: 17px;
    }

    .desktop-article-body th,
    .desktop-article-body td {
        padding: 10px;
        font-size: 12px;
    }
}


/* =====================================
   DESKTOP — ARTICLE LAYOUT & SIDEBAR
===================================== */

.desktop-article-section {
    padding: 0 20px 75px;
}

.desktop-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 25px;
    align-items: start;
    width: min(1300px, 100%);
    margin: 0 auto;
}

.desktop-article-main {
    min-width: 0;
}

.desktop-article-main .article-content-box {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.desktop-article-main .desktop-article-body {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
}

.desktop-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* POLL */

.desktop-article-sidebar .article-poll {
    margin: 0;
    padding: 22px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: linear-gradient(145deg, #fff, #f2efff);
    box-shadow: 0 8px 26px rgba(49,55,130,.07);
}

.desktop-article-sidebar .article-poll h2 {
    margin: 0 0 13px;
    color: #7438e6;
    font-size: 13px;
    font-weight: 800;
}

.desktop-article-sidebar .poll-title {
    margin: 0 0 18px;
    color: #192049;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.5;
}

.desktop-article-sidebar .poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desktop-article-sidebar .poll-option {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e3fa;
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    color: #222a52;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.desktop-article-sidebar .poll-option:hover {
    border-color: #a9a4ff;
    background: #fff;
}

.desktop-article-sidebar .poll-text {
    flex: 1;
    text-align: right;
    font-weight: 700;
}

.desktop-article-sidebar .poll-count {
    color: #7135df;
    font-weight: 800;
}

.desktop-article-sidebar .poll-bar {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eafd;
}

.desktop-article-sidebar .poll-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#287dff,#9a20f0);
    transition: width .3s ease;
}

/* RELATED ARTICLES */

.desktop-article-sidebar .sidebar-box {
    margin: 0;
    padding: 20px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 8px 26px rgba(49,55,130,.06);
}

.desktop-article-sidebar .section-kicker {
    margin-bottom: 16px;
    color: #192049;
    font-size: 17px;
    font-weight: 850;
}

.desktop-article-sidebar .sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-article-sidebar .sidebar-news-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 1px solid #e8e9fa;
    border-radius: 12px;
    background: #f8f8ff;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.desktop-article-sidebar .sidebar-news-card:hover {
    border-color: #b7afff;
    transform: translateY(-2px);
}

.desktop-article-sidebar .sidebar-news-card img {
    width: 75px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: cover;
    backdrop-filter: blur(800px);
}

.desktop-article-sidebar .sidebar-news-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.desktop-article-sidebar .sidebar-news-content span {
    color: #7540e8;
    font-size: 10px;
    font-weight: 800;
}

.desktop-article-sidebar .sidebar-news-content strong {
    color: #192049;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .desktop-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .desktop-article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        width: 100%;
        min-height: 420px;
        max-height: 420px;
        justify-content: space-around;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 600px) {
    .desktop-article-section {
        padding: 0 14px 45px;
    }

    .desktop-article-layout {
        gap: 20px;
    }

    .desktop-article-sidebar {
        display: flex;
        flex-direction: column;
    }

    .desktop-article-main .desktop-article-body {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-article-sidebar .poll-fill,
    .desktop-article-sidebar .poll-option,
    .desktop-article-sidebar .sidebar-news-card {
        transition: none;
    }
}


/* DESKTOP — ARTICLE SHARING */

.desktop-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
    padding: 18px;
    border: 1px solid #e2e5fc;
    border-radius: 17px;
    background: rgba(255,255,255,.8);
}

.desktop-share-bar .article-share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dfe2fc;
    border-radius: 12px;
    background: #f6f5ff;
    color: #4335bd;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.desktop-share-bar .article-share-btn:hover {
    background: #ebe7ff;
    transform: translateY(-2px);
}

.desktop-share-bar .article-share-btn:focus-visible {
    outline: 3px solid #8a59f4;
    outline-offset: 3px;
}

/* DESKTOP — ARTICLE COMMENTS */

.desktop-comments-section {
    margin: 24px 0 35px;
    min-width: 0;
}

.desktop-comments-heading {
    margin: 50px;
    text-align: center;
}

.desktop-comments-kicker {
    color: #8139f2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.desktop-comments-heading h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
    color: #171d43;
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 850;
}

.desktop-comments-heading h2 svg {
    width: 25px;
    height: 25px;
    color: #8737f1;
}

.desktop-comments-heading p {
    margin: 0;
    color: #747f9e;
    font-size: 13px;
}

.desktop-comments-section .comments-wrap {
    min-width: 0;
}

.desktop-comments-section .comment-form-box {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #e1e5fc;
    border-radius: 19px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 8px 26px rgba(49,55,130,.06);
}

.desktop-comments-section .comment-guest-note {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f0edff;
    color: #535d87;
    font-size: 12px;
}

.desktop-comments-section .comment-form-row {
    margin-bottom: 14px;
}

.desktop-comments-section .comment-label {
    display: block;
    margin-bottom: 9px;
    color: #1b2249;
    font-size: 13px;
    font-weight: 800;
}

.desktop-comments-section .comment-textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    padding: 15px;
    border: 1px solid #dfe3f8;
    border-radius: 13px;
    background: #fafaff;
    color: #20274d;
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}

.desktop-comments-section .comment-textarea:focus {
    outline: none;
    border-color: #8d6af4;
    box-shadow: 0 0 0 3px rgba(141,106,244,.12);
}

.desktop-comments-section .comment-form .btn-primary,
.desktop-comments-section .reply-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 10px 22px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(110deg,#1688ff,#9621ee);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-comments-section .comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desktop-comments-section .comment-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e2e5fa;
    border-radius: 17px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 5px 18px rgba(49,55,130,.04);
}

.desktop-comments-section .comment-head,
.desktop-comments-section .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-comments-section .comment-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.desktop-comments-section .comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.desktop-comments-section .comment-author strong,
.desktop-comments-section .comment-author a {
    color: #1b2249;
    font-size: 13px;
    text-decoration: none;
}

.desktop-comments-section .comment-head span {
    color: #8891ad;
    font-size: 11px;
}

.desktop-comments-section .comment-body {
    color: #30385b;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.desktop-comments-section .comment-reply-toggle {
    margin-top: 12px;
    padding: 6px 12px;
    border: 1px solid #e2dafa;
    border-radius: 10px;
    background: #f2efff;
    color: #7041d9;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-comments-section .reply-form {
    display: none;
    margin-top: 15px;
}

.desktop-comments-section .comment-children {
    margin-top: 15px;
    padding-right: 17px;
    border-right: 3px solid #e5dfff;
}

.desktop-comments-section .comment-card-child {
    background: #f8f7ff;
    box-shadow: none;
}

.desktop-comments-section .comments-empty {
    padding: 28px;
    border: 1px dashed #d8dcf7;
    border-radius: 16px;
    background: rgba(255,255,255,.65);
    color: #7781a2;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .desktop-share-bar {
        padding: 12px;
    }

    .desktop-share-bar .article-share-btn {
        flex: 1 1 auto;
        font-size: 12px;
    }

    .desktop-comments-section .comment-form-box,
    .desktop-comments-section .comment-card {
        padding: 15px;
    }

    .desktop-comments-section .comment-children {
        padding-right: 10px;
    }
}

.desktop-comments-section .comment-guest-name {
    display: block;
    width: 100%;
    max-width: 340px;
    margin-top: 9px;
    padding: 12px 15px;
    border: 1px solid #dfe3f5;
    border-radius: 12px;
    background: #fff;
    color: #252d50;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.desktop-comments-section .comment-guest-name:focus {
    outline: none;
    border-color: #7776e8;
    box-shadow: 0 0 0 3px rgba(119, 118, 232, .12);
}

/* Desktop — clean comment identities */

.desktop-comments-section .comment-author {
    gap: 6px;
}

.desktop-comments-section .comment-author strong {
    font-size: 15px;
    font-weight: 700;
    color: #252d50;
}

/* Hide reply forms until explicitly opened */
.desktop-comments-section .comment-card .reply-form {
    display: none;
}

/* Desktop — Archive Hero */

.desktop-archive-hero {
    position: relative;
    min-height: 260px;
    max-width: 1450px;
    border-radius: 0px 0px 18px 18px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background:
            linear-gradient(
                    270deg,
                    rgba(17, 13, 43, .25) 0%,
                    rgba(17, 13, 43, .05) 45%,
                    rgba(17, 13, 43, 0) 100%
            ),
            url('../images/desktop-archive-hero.jpg')
            center center / cover no-repeat,
            #11112e;
    box-sizing: border-box;
}

.desktop-archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    90deg,
                    transparent,
                    rgba(169, 106, 255, .12),
                    transparent
            );
    pointer-events: none;
}

.desktop-archive-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.desktop-archive-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #c9b9ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.desktop-archive-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.15;
}

.desktop-archive-hero p {
    margin: 0;
    color: #d9d4f2;
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .desktop-archive-hero {
        min-height: 220px;
        padding: 40px 24px;
    }

    .desktop-archive-hero p {
        font-size: 15px;
    }
}

/* Desktop — Archive Filters */

.articles-page-shell {
    position: relative;
}

.articles-page-shell .articles-hero {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100% - 40px));
    margin: -28px auto 35px;
    padding: 18px 24px;
    box-sizing: border-box;

    background: rgba(247, 245, 255, .93);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 20px;

    box-shadow:
            0 15px 35px rgba(58, 45, 130, .12),
            0 3px 8px rgba(58, 45, 130, .05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.articles-page-shell .articles-filters {
    margin: 0;
}

.articles-page-shell .articles-filters-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.articles-page-shell .articles-select,
.articles-page-shell .articles-search {
    min-height: 46px;
    padding: 0 16px;

    border: 1px solid #d8dafa;
    border-radius: 12px;

    background: rgba(255, 255, 255, .88);
    color: #28254d;
    font: inherit;
    font-size: 14px;

    box-sizing: border-box;
}

.articles-page-shell .articles-select {
    min-width: 170px;
    cursor: pointer;
}

.articles-page-shell .articles-search {
    flex: 1;
    min-width: 220px;
}

.articles-page-shell .articles-select:focus,
.articles-page-shell .articles-search:focus {
    outline: none;
    border-color: #8b65f5;
    box-shadow: 0 0 0 3px rgba(139, 101, 245, .12);
}

.articles-page-shell .articles-filters-row .btn-primary {
    min-height: 46px;
    padding: 0 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(110deg, #247bff, #9725f5);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(100, 70, 230, .15);
}

@media (max-width: 700px) {
    .articles-page-shell .articles-hero {
        width: calc(100% - 24px);
        margin-top: -18px;
        padding: 15px;
    }

    .articles-page-shell .articles-filters-row {
        gap: 10px;
    }

    .articles-page-shell .articles-select {
        flex: 1;
        min-width: 120px;
    }

    .articles-page-shell .articles-search {
        flex-basis: 100%;
        min-width: 0;
    }

    .articles-page-shell .articles-filters-row .btn-primary {
        flex: 1;
    }
}

/* Desktop — Advanced Archive Filters */

.desktop-archive-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
}

.desktop-archive-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #38315f;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.desktop-archive-toggle-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
    margin-top: -13px;
}

.desktop-archive-advanced-toggle[aria-expanded="true"]
.desktop-archive-toggle-arrow {
    transform: rotate(180deg);
    margin-top: 13px;
}

.desktop-archive-reset {
    color: #7656d9;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.desktop-archive-reset:hover {
    text-decoration: underline;
}

.desktop-archive-advanced[hidden] {
    display: none;
}

.desktop-archive-advanced {
    margin-top: 15px;
    padding-top: 18px;
    border-top: 1px solid #dedcf4;
}

.desktop-archive-advanced-inner {
    padding: 15px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    color: #38315f;
}

.desktop-archive-advanced-inner p {
    margin: 7px 0 0;
    font-size: 13px;
    color: #79739a;
}

/* Desktop — Advanced Filter Controls */

.desktop-archive-filter-group + .desktop-archive-filter-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4e1f6;
}

.desktop-archive-filter-options,
.desktop-archive-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.desktop-archive-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    background: #fff;
    border: 1px solid #dedcf7;
    border-radius: 12px;
    color: #37335e;
    font-size: 13px;
    cursor: pointer;
}

.desktop-archive-filter-check:has(input:checked) {
    border-color: #9163f5;
    background: #f0eaff;
    color: #6336cb;
}

.desktop-archive-filter-check input {
    accent-color: #8547ed;
    cursor: pointer;
}

.desktop-archive-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.desktop-archive-filter-heading small {
    color: #928ba9;
    font-size: 12px;
}

.desktop-archive-topic-placeholder {
    padding: 8px 14px;
    border: 1px solid #e4e1f6;
    border-radius: 999px;
    background: #f4f2fb;
    color: #aaa5bf;
    font-size: 12px;
    cursor: default;
}

/* =========================================
   Desktop — Magazine Archive Cards
   ========================================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;

    width: min(1380px, calc(100% - 40px));
    margin: 38px auto 75px;
    align-items: stretch;
}

/* Card */

.articles-grid .article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: #fff;
    border: 1px solid #e6e6fa;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(38, 36, 100, .055);

    transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;
}

.articles-grid .article-card:hover {
    transform: translateY(-6px);
    border-color: #d4c8ff;
    box-shadow: 0 18px 40px rgba(61, 46, 143, .13);
}

/* Image */

.articles-grid .article-card-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1b1947, #7135c7);
}

.articles-grid .article-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backdrop-filter: blur(100px);

    transition: transform .4s ease;
}

.articles-grid .article-card:hover .article-card-image {
    transform: scale(1.055);
}

.articles-grid .article-card-image-placeholder {
    background:
            radial-gradient(circle at 30% 30%, rgba(89, 160, 255, .45), transparent 55%),
            linear-gradient(135deg, #16143d, #6429b8);
}

/* Content */

.articles-grid .article-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 21px 20px 23px;
}

/* Metadata */

.articles-grid .article-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.articles-grid .article-card-type,
.articles-grid .article-card-featured {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.articles-grid .article-card-type {
    background: #f0edff;
    color: #7041d8;
}

.articles-grid .article-card-featured {
    background: #fff2d9;
    color: #a66b10;
}

/* Title */

.articles-grid .article-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.articles-grid .article-card-title a {
    color: #222447;
    text-decoration: none;
    transition: color .2s;
}

.articles-grid .article-card-title a:hover {
    color: #7136e5;
}

/* Date */

.articles-grid .article-card-date {
    color: #9298b5;
    font-size: 12px;
}

/* Summary */

.articles-grid .article-card-summary {
    margin: 0;
    color: #686e8b;
    font-size: 13px;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Read more */

.articles-grid .article-card-readmore {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;

    color: #7543e5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.articles-grid .article-card-readmore:hover {
    color: #316dff;
}

/* Responsive */

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 580px) {
    .articles-grid {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 24px);
        gap: 16px;
    }

    .articles-grid .article-card-content {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .articles-grid .article-card,
    .articles-grid .article-card-image {
        transition: none;
    }
}

/* Desktop — Archive Results Header */

.desktop-archive-results-bar {
    width: min(1380px, calc(100% - 40px));
    margin: 38px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.desktop-archive-results-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.desktop-archive-results-info h2 {
    margin: 0;
    color: #25244e;
    font-size: 24px;
    font-weight: 800;
}

.desktop-archive-results-info span,
.desktop-archive-results-sort {
    color: #8986a9;
    font-size: 13px;
}

.desktop-archive-results-sort {
    padding: 8px 13px;
    border: 1px solid #dedcf5;
    border-radius: 10px;
    background: rgba(255, 255, 255, .65);
}

@media (max-width: 580px) {
    .desktop-archive-results-bar {
        width: calc(100% - 24px);
        align-items: flex-start;
    }

    .desktop-archive-results-info {
        gap: 5px;
        flex-direction: column;
    }

    .desktop-archive-results-info h2 {
        font-size: 21px;
    }
}

/* =========================================
   Desktop — Archive Pagination
   ========================================= */

.desktop-archive-pagination {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    width: min(1380px, calc(100% - 40px));
    margin: -35px auto 12px;
}

.desktop-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 43px;
    height: 43px;
    padding: 0 12px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, .85);
    border: 1px solid #dedcf5;
    border-radius: 12px;

    color: #514a85;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
            background .2s ease,
            color .2s ease,
            border-color .2s ease,
            transform .2s ease;
}

a.desktop-page-btn:hover {
    background: #f1ecff;
    border-color: #b9a3fa;
    color: #7438e7;
    transform: translateY(-2px);
}

.desktop-page-btn.is-active {
    background: linear-gradient(120deg, #287cff, #9328f6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(100, 65, 230, .2);
}

.desktop-page-arrow {
    font-size: 25px;
    line-height: 1;
}

.desktop-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    color: #9993b5;
}

.desktop-archive-pagination-info {
    margin: 0 auto 70px;
    color: #9390ad;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 580px) {
    .desktop-archive-pagination {
        width: calc(100% - 24px);
        gap: 6px;
    }

    .desktop-page-btn {
        min-width: 38px;
        height: 40px;
        padding: 0 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-page-btn {
        transition: none;
    }
}

/* Homepage category selection */

.category-card {
    transition:
            background-color .25s ease,
            border-color .25s ease,
            box-shadow .25s ease,
            transform .25s ease;
}

.category-card.is-active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, .09);
    box-shadow: 0 0 18px rgba(139, 92, 246, .13);
}

.category-card.is-active i,
.category-card.is-active svg {
    color: #8b5cf6;
}

.category-card.is-active:hover {
    transform: translateY(-2px);
}

/* Article transitions */

#home-articles-content {
    transition: opacity .2s ease, transform .2s ease;
}

#home-articles-content.is-switching {
    opacity: 0;
    transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
    .category-card,
    #home-articles-content {
        transition: none;
    }
}

/* DESKTOP — Hero carousel arrows */

.hero-featured {
    position: relative;
}

.hero-arrows {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    background: rgba(15, 12, 45, 0.45);
    color: #fff;
    backdrop-filter: blur(10px);

    cursor: pointer;
    pointer-events: auto;

    opacity: 0;
    transition:
            opacity .25s ease,
            background-color .25s ease,
            box-shadow .25s ease;
}

.hero-prev {
    right: 16px;
}

.hero-next {
    left: 16px;
}

.hero-featured:hover .hero-arrow,
.hero-arrow:focus-visible {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(139, 92, 246, 0.85);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}

.hero-arrow svg {
    width: 20px;
    height: 20px;
}

@media (hover: none) {
    .hero-arrow {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-arrow {
        transition: none;
    }
}

/* DESKTOP — Hero carousel transitions */

.hero-featured .hero-image,
.hero-featured .hero-content {
    transition: opacity .35s ease;
}


.hero-featured.is-changing .hero-image {
    opacity: 0;
}


.hero-dots button {
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .hero-featured .hero-image,
    .hero-featured .hero-content {
        transition: none;
    }
}

/* DESKTOP — Hero carousel navigation dots */

.hero-featured .hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.hero-featured .hero-dots button {
    appearance: none;
    display: block;
    flex: 0 0 auto;

    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;

    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;

    transition:
            width .25s ease,
            background-color .25s ease,
            opacity .25s ease;
}

.hero-featured .hero-dots button.active {
    width: 25px;
    background: #fff;
    border-radius: 20px;
}

.hero-featured .hero-dots button:hover {
    background: #fff;
}

.hero-featured .hero-dots button:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 4px;
}


/* DESKTOP — SINGLE ARTICLE HERO BACKDROP */

.desktop-article-hero {
    position: relative;
    isolation: isolate;
}

.desktop-article-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 310px;


}

.desktop-article-hero .desktop-article-cover {
    z-index: 1;
}

@media (max-width: 850px) {
    .desktop-article-hero::before {
        height: 190px;
    }
}


/* DESKTOP — HOMEPAGE HERO BACKDROP */

.desktop-main {
    position: relative;
    isolation: isolate;
}

.desktop-main::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 260px;
    pointer-events: none;
    background: radial-gradient(circle, rgb(255 255 255 / 28%) 59%, rgb(255 255 255) 100%);
}

@media (max-width: 850px) {
    .desktop-main::before {
        height: 230px;
    }
}

.article-content img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 18px auto;
    box-shadow: 0 18px 40px rgba(138, 138, 138, 0.12);
}

.desktop-disclosure {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: inherit;
}

.desktop-disclosure > svg {
    width: 16px;
    height: 16px;
}

.desktop-disclosure-toggle {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.desktop-disclosure-toggle:hover {
    text-decoration: underline;
}

.desktop-disclosure-toggle:focus-visible {
    outline: 2px solid #8eaaff;
    outline-offset: 3px;
    border-radius: 3px;
}

.desktop-disclosure-popup {
    position: absolute;
    z-index: 100;
    top: calc(100% + 14px);
    right: 0;
    width: min(340px, 85vw);
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(145, 160, 220, .25);
    background: #171b2d;
    color: #e8eaf5;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .35);
    line-height: 1.7;
    text-align: right;
    white-space: normal;
}

.desktop-disclosure-popup[hidden] {
    display: none !important;
}

.desktop-disclosure-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #fff;
}

.desktop-disclosure-title svg {
    width: 17px;
    height: 17px;
}

.desktop-disclosure-popup p {
    margin: 8px 0 0;
    font-size: .88rem;
    color: #cbd1e8;
}

@media (max-width: 600px) {
    .desktop-disclosure-popup {
        width: min(300px, 85vw);
    }
}

/* Desktop — Disclosure popup stacking fix */

.desktop-article-hero {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.desktop-article-section {
    position: relative;
    z-index: 1;
}

.home-products[hidden] {
    display: none !important;
}

.price-feed[hidden] {
    display: none !important;
}

.prices-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 30%;
    padding: 24px 14px;
    text-align: center;
    border: 1px dashed #cdd2fa;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8faff, #f1edff);
}

.prices-coming-soon-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e9e8ff;
    color: #7635ed;
}

.prices-coming-soon-icon svg {
    width: 29px;
    height: 29px;
}

.prices-coming-soon strong {
    font-size: 19px;
    font-weight: 800;
    color: #18245d;
}

.prices-coming-soon p {
    margin: 0;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.7;
    color: #66749c;
}

.prices-coming-soon-badge {
    padding: 7px 13px;
    border-radius: 20px;
    background: #e9e4ff;
    color: #6733c7;
    font-size: 11px;
    font-weight: 700;
}

/* DESKTOP — PRODUCTS MEGA MENU / COMING SOON */

.mega-products-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1386px;
    padding: 16px 20px;
    border: 1px solid #dcdcff;
    border-radius: 16px;
    background: linear-gradient(110deg, rgb(244 248 255 / 0.72), rgb(241 235 255 / 0.8));
    color: #17235c;
    margin: 0 auto 14px auto;
}

.mega-products-notice-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e6e4ff;
    color: #7c32ed;
}

.mega-products-notice-icon svg {
    width: 24px;
    height: 24px;
}

.mega-products-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 800;
}

.mega-products-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #66749c;
}

.mega-products-notice-badge {
    margin-inline-start: auto;
    padding: 7px 13px;
    border-radius: 20px;
    background: #e7ddff;
    color: #7130d9;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mega-products-panel.is-coming-soon .mega-category {
    opacity: .65;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 600px) {
    .mega-products-notice {
        flex-wrap: wrap;
        padding: 14px;
    }

    .mega-products-notice-badge {
        margin-inline-start: 0;
    }
}


/* ===================================
   DESKTOP — SEARCH PAGE
=================================== */

.desktop-search-page {
    direction: rtl;
    padding: 38px 20px 70px;
}

.desktop-search-page > .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

.desktop-search-shell {
    min-width: 0;
}

/* Heading */

.desktop-search-heading {
    text-align: center;
    margin-bottom: 28px;
}

.desktop-search-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #7837e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.desktop-search-heading h1 {
    margin: 0 0 12px;
    color: #111638;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 850;
}

.desktop-search-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Search form */

.desktop-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 850px;
    margin: 0 auto 34px;
    padding: 8px;
    border: 1px solid #dfe2fa;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 28px rgba(54,65,148,.09);
}

.desktop-search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 20px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111638;
    font: inherit;
    font-size: 15px;
}

.desktop-search-input::placeholder {
    color: #929ab8;
}

.desktop-search-form:focus-within {
    border-color: #9695f5;
    box-shadow: 0 8px 28px rgba(90,70,210,.15);
}

.desktop-search-button {
    min-width: 115px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

/* Filter tabs */

.search-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid #dfe2fa;
    border-radius: 30px;
    background: rgba(255,255,255,.8);
    color: #4c5884;
    font-size: 13px;
    font-weight: 750;
    transition: background .2s, color .2s;
}

.search-tab span {
    opacity: .7;
    font-size: 12px;
}

.search-tab:hover {
    background: #eeedff;
    color: #5430dc;
}

.search-tab.is-active {
    border-color: transparent;
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(75,60,200,.18);
}

/* Results */

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 285px minmax(0,1fr);
    gap: 24px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(225,228,250,.95);
    border-radius: 20px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 6px 22px rgba(54,65,148,.07);
    transition: transform .2s, box-shadow .2s;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(54,65,148,.12);
}

.search-result-image-wrap {
    display: block;
    height: 185px;
    overflow: hidden;
    border-radius: 14px;
    background: #e9ecfa;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.search-result-card:hover .search-result-image {
    transform: scale(1.035);
}

.search-result-image-placeholder {
    background: linear-gradient(135deg,#e1e9ff,#eee0ff);
}

.search-result-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 12px 8px 10px 0;
}

.search-result-top {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-result-type {
    display: inline-flex;
    padding: 5px 13px;
    border-radius: 20px;
    background: linear-gradient(110deg,#1687ff,#a31af0);
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.search-result-title {
    margin: 0 0 10px;
    color: #111638;
    font-size: clamp(19px, 1.8vw, 25px);
    font-weight: 850;
    line-height: 1.35;
}

.search-result-title a:hover {
    color: #7132e5;
}

.search-result-excerpt {
    margin: 0 0 18px;
    color: #667195;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.search-result-link {
    display: inline-flex;
    margin-top: auto;
    color: #5438dc;
    font-size: 13px;
    font-weight: 800;
}

.search-result-link:hover {
    color: #9224ed;
}

/* Empty state */

.desktop-search-page .comments-empty {
    padding: 45px 20px;
    border: 1px solid #e2e5fa;
    border-radius: 18px;
    background: rgba(255,255,255,.85);
    color: #657095;
    text-align: center;
    font-size: 15px;
}

/* Responsive */

@media (max-width: 850px) {
    .search-result-card {
        grid-template-columns: 220px minmax(0,1fr);
        gap: 16px;
    }

    .search-result-image-wrap {
        height: 165px;
    }
}

@media (max-width: 600px) {
    .desktop-search-page {
        padding: 24px 12px 45px;
    }

    .desktop-search-heading p {
        font-size: 13px;
    }

    .desktop-search-form {
        gap: 5px;
        padding: 6px;
        border-radius: 16px;
    }

    .desktop-search-input {
        padding: 0 10px;
        font-size: 13px;
    }

    .desktop-search-button {
        min-width: 78px;
        padding: 0 12px;
    }

    .search-tabs {
        gap: 7px;
    }

    .search-tab {
        padding: 9px 13px;
        font-size: 12px;
    }

    .search-result-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 9px;
        border-radius: 16px;
    }

    .search-result-image-wrap {
        height: 190px;
    }

    .search-result-content {
        padding: 5px 8px 12px;
    }

    .search-result-title {
        font-size: 19px;
    }

    .search-result-excerpt {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-result-card,
    .search-result-image,
    .search-tab {
        transition: none;
    }
}


/* DESKTOP — Sliding navigation indicator */

@media (min-width: 851px) {
    .main-navigation .nav-inner {
        position: relative;
    }

    .main-navigation .nav-link.active::after {
        display: none;
    }

    .desktop-nav-indicator {
        position: absolute;
        bottom: 0;
        height: 4px;
        border-radius: 6px 6px 0 0;
        background: var(--gradient);
        pointer-events: none;
        opacity: 0;
        transition:
                left .3s cubic-bezier(.22, 1, .36, 1),
                width .3s cubic-bezier(.22, 1, .36, 1),
                opacity .15s ease;
    }
}

@media (max-width: 850px) {
    .desktop-nav-indicator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-nav-indicator {
        transition: none;
    }
}


/* DESKTOP — Mobile categories progress */

.categories-progress {
    display: none;
}

@media (max-width: 850px) {
    .categories-progress {
        display: block;
        width: 100px;
        height: 4px;
        margin: 0 auto 15px auto;
        border-radius: 10px;
        background: #d9def5;
        overflow: hidden;
    }

    .categories-progress-fill {
        display: block;
        width: 35%;
        height: 100%;
        border-radius: inherit;
        background: var(--gradient);
        transform: translateX(0);
        transition: transform .12s ease-out;
    }
}


/* DESKTOP — Hero touch gestures */


.hero-featured {
    touch-action: auto;
    user-select: none;
}


.hero-featured img {
    -webkit-user-drag: none;
}


/* QA: Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .hero-featured .hero-button:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}


/* =========================================
   DESKTOP — DARK MODE: HEADER & NAVIGATION
   First visual integration test
========================================= */

html[data-theme="dark"] .site-header {
    background: var(--theme-surface);
    box-shadow: 0 3px 18px rgb(0 0 0 / 0.22);
}

html[data-theme="dark"] .header-main {
    background:
            linear-gradient(
                    110deg,
                    rgb(17 24 43 / 0.76),
                    rgb(27 35 54 / 0.83)
            ),
            url(../images/header-bgr.jpg);
}

html[data-theme="dark"] .main-navigation {
    background: rgb(27 35 54 / 0.97);
    border-bottom-color: var(--theme-border);
}

html[data-theme="dark"] .nav-link {
    color: var(--theme-text);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
    color: var(--theme-accent);
}

html[data-theme="dark"] .nav-icon {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .header-search {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.16);
}

html[data-theme="dark"] .header-search input {
    color: var(--theme-text);
}

html[data-theme="dark"] .header-search input::placeholder {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .search-icon {
    border-color: var(--theme-accent);
}

html[data-theme="dark"] .search-icon::after {
    background: var(--theme-accent);
}

html[data-theme="dark"] .mobile-menu-toggle span {
    background: var(--theme-text);
}


/* =========================================
   DESKTOP — CATEGORY CARD ACCENTS
========================================= */

/* Default accent */
.categories-track .category-card {
    --card-accent: var(--cat-all);
}

/* Category colors */
.categories-track .category-card[data-home-category="computers"] {
    --card-accent: var(--cat-computers);
}

.categories-track .category-card[data-home-category="gaming"] {
    --card-accent: var(--cat-gaming);
}

.categories-track .category-card[data-home-category="smartphones"] {
    --card-accent: var(--cat-smartphones);
}

.categories-track .category-card[data-home-category="retro"] {
    --card-accent: var(--cat-retro);
}

.categories-track .category-card[data-home-category="peripherals"] {
    --card-accent: var(--cat-peripherals);
}

.categories-track .category-card[data-home-category="monitors"] {
    --card-accent: var(--cat-monitors);
}

.categories-track .category-card[data-home-category="audio"] {
    --card-accent: var(--cat-audio);
}

/* Category icon */
.categories-track .category-card svg {
    color: var(--card-accent);
    stroke: currentColor;
}

/* Subtle hover effect */
.categories-track .category-card:hover {
    border-color: var(--card-accent);
}


/* =========================================
   DESKTOP — CATEGORY CARDS: THEME SUPPORT
========================================= */

/* Selected category — both themes */
.categories-track .category-card.is-active {
    border-color: var(--card-accent);
    background: color-mix(
            in srgb,
            var(--card-accent) 9%,
            var(--theme-surface)
    );
    box-shadow: 0 0 18px color-mix(
            in srgb,
            var(--card-accent) 16%,
            transparent
    );
}

.categories-track .category-card.is-active svg {
    color: var(--card-accent);
    stroke: currentColor;
}

/* Dark mode cards */
html[data-theme="dark"] .categories-track .category-card {
    background: linear-gradient(
            150deg,
            var(--theme-surface-soft),
            var(--theme-surface)
    );
    border-color: var(--theme-border);
    color: var(--theme-text);

    box-shadow:
            0 5px 16px rgb(0 0 0 / 0.16),
            inset 0 1px 0 rgb(255 255 255 / 0.04);
}

/* Dark mode hover */
html[data-theme="dark"] .categories-track .category-card:hover {
    border-color: var(--card-accent);
    box-shadow:
            0 8px 22px rgb(0 0 0 / 0.22),
            0 0 14px color-mix(
                    in srgb,
                    var(--card-accent) 12%,
                    transparent
            );
}

/* Dark mode selected category */
html[data-theme="dark"] .categories-track .category-card.is-active {
    background: color-mix(
            in srgb,
            var(--card-accent) 12%,
            var(--theme-surface-soft)
    );
    border-color: var(--card-accent);
    box-shadow: 0 0 18px color-mix(
            in srgb,
            var(--card-accent) 18%,
            transparent
    );
}


/* =========================================
   DESKTOP — DARK MODE: HOME ARTICLES
========================================= */

/* Main articles container */
html[data-theme="dark"] .home-articles {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
}

/* Section title */
html[data-theme="dark"] .home-articles .section-heading h2 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .home-articles .section-heading svg {
    stroke: var(--theme-accent-secondary);
}

/* Featured article */
html[data-theme="dark"] .home-articles .featured-article {
    background: radial-gradient(circle, rgb(58 64 87 / 0.1) 8%, rgb(58 64 87 / 62%) 77%);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .home-articles .featured-article h3 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .home-articles .featured-article-content p {
    color: var(--theme-text-muted);
}

/* Smaller article cards */
html[data-theme="dark"] .home-articles .mini-article {
    background: radial-gradient(circle, rgb(58 64 87 / 0.1) 8%, rgb(58 64 87 / 62%) 77%);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .home-articles .mini-article h3 {
    color: var(--theme-text);
}

/* Dates and metadata */
html[data-theme="dark"] .home-articles .article-meta {
    color: var(--theme-text-muted);
}

/* More articles button */
html[data-theme="dark"] .home-articles .section-more {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .home-articles .section-more:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}


/* =========================================
   DESKTOP — DARK MODE: PRICE COMPARISON
========================================= */

html[data-theme="dark"] .home-prices {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
    box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
}

html[data-theme="dark"] .home-prices .section-heading h2 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .home-prices .section-heading svg {
    stroke: var(--theme-accent-secondary);
}

/* Future comparison feed items */
html[data-theme="dark"] .home-prices .price-feed-item {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .home-prices .price-feed-info strong {
    color: var(--theme-accent);
}

html[data-theme="dark"] .home-prices .price-feed-info > span {
    color: var(--theme-text-muted);
}


/* =========================================
   DESKTOP — DARK MODE: PRICES COMING SOON
========================================= */

html[data-theme="dark"] .prices-coming-soon {
    background: linear-gradient(
            145deg,
            var(--theme-surface-soft),
            var(--theme-surface-card)
    );
    border-color: var(--theme-border);
}

html[data-theme="dark"] .prices-coming-soon-icon {
    background: var(--theme-surface);
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .prices-coming-soon strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .prices-coming-soon p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .prices-coming-soon-badge {
    background: var(--theme-surface);
    color: var(--theme-accent-secondary);
}


/* =========================================
   DESKTOP — DARK MODE: FLOATING HEADER
========================================= */

html[data-theme="dark"] .desktop-floating-header {
    background: rgb(27 35 54 / 0.62);
    border-color: var(--theme-border);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.25);
}

/* Glass layer */
html[data-theme="dark"] .desktop-floating-header::before {
    background: rgb(30 41 67 / 0.68);
}

/* Navigation */
html[data-theme="dark"] .floating-navigation .nav-link {
    color: var(--theme-text);
}

html[data-theme="dark"] .floating-navigation .nav-link:hover,
html[data-theme="dark"] .floating-navigation .nav-link.active {
    color: var(--theme-accent);
}

html[data-theme="dark"] .floating-navigation .nav-icon {
    color: var(--theme-text-muted);
}

/* Search button */
html[data-theme="dark"] .floating-search-toggle {
    background: var(--theme-surface-soft);
    color: var(--theme-accent);
}

/* Mobile menu icon */
html[data-theme="dark"] .floating-menu-toggle span {
    background: var(--theme-text);
}

/* Search panel */
html[data-theme="dark"] .floating-search-panel input {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .floating-search-panel input::placeholder {
    color: var(--theme-text-muted);
}

/* Mobile floating navigation */
@media (max-width: 850px) {
    html[data-theme="dark"] .floating-navigation.is-open {
        background: var(--theme-surface);
        border: 1px solid var(--theme-border);
    }
}


/* =========================================
   DESKTOP — DARK MODE: MEGA MENU
========================================= */

/* Main panel */
html[data-theme="dark"] .mega-panel {
    background: rgb(27 35 54 / 0.6);
    border-color: var(--theme-border);
    box-shadow:
            0 20px 60px rgb(0 0 0 / 0.30),
            inset 0 1px 0 rgb(255 255 255 / 0.04);
}

/* Panel headings */
html[data-theme="dark"] .mega-panel-header {
    border-bottom-color: var(--theme-border);
}

html[data-theme="dark"] .mega-panel-header h2,
html[data-theme="dark"] .mega-articles-layout h3 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-panel-header p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .mega-eyebrow {
    color: var(--theme-accent-secondary);
}

/* Topic links */
html[data-theme="dark"] .mega-topic {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .mega-topic:hover {
    border-color: var(--theme-accent);
}

html[data-theme="dark"] .mega-topic svg {
    color: var(--theme-accent-secondary);
}

/* Featured article */
html[data-theme="dark"] .mega-editorial-main {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .mega-editorial-main strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-editorial-main small {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .mega-editorial-tag {
    background: var(--theme-surface-card);
    color: var(--theme-accent-secondary);
}

/* Side articles */
html[data-theme="dark"] .mega-editorial-small {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

/* Shared hover */
html[data-theme="dark"] .mega-editorial-main:hover,
html[data-theme="dark"] .mega-editorial-small:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.20);
}


/* =========================================
   DESKTOP — DARK MODE: REVIEWS MEGA MENU
========================================= */

/* Section headings */
html[data-theme="dark"] .mega-reviews-layout h3 {
    color: var(--theme-text-heading);
}

/* Review cards */
html[data-theme="dark"] .mega-review-card {
    background: linear-gradient(
            145deg,
            var(--theme-surface-glass),
            var(--theme-surface-glass)
    );
    border-color: var(--theme-border);
    box-shadow: 0 4px 13px rgb(0 0 0 / 0.12);
}

/* Review titles */
html[data-theme="dark"] .mega-review-content strong {
    color: var(--theme-text-heading);
}

/* Review descriptions */
html[data-theme="dark"] .mega-review-content small {
    color: var(--theme-text-muted);
}

/* Read review links */
html[data-theme="dark"] .mega-review-read {
    color: var(--theme-accent-secondary);
}

/* Hover */
html[data-theme="dark"] .mega-review-card:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.22);
}


/* =========================================
   DESKTOP — DARK MODE: GUIDES MEGA MENU
========================================= */

/* Section headings */
html[data-theme="dark"] .mega-guides-layout h3 {
    color: var(--theme-text-heading);
}

/* Guide category links */
html[data-theme="dark"] .mega-guide-path {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .mega-guide-path:hover {
    border-color: var(--theme-accent);
}

/* Category icons */
html[data-theme="dark"] .mega-guide-icon {
    background: var(--theme-surface-card);
    color: var(--theme-accent-secondary);
}

/* Category text */
html[data-theme="dark"] .mega-guide-text strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-guide-text small,
html[data-theme="dark"] .mega-guide-path > svg {
    color: var(--theme-text-muted);
}

/* Featured guide */
html[data-theme="dark"] .mega-guide-main {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .mega-guide-main-content strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-guide-main-content small {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .mega-guide-read {
    color: var(--theme-accent-secondary);
}

/* Smaller guides */
html[data-theme="dark"] .mega-guide-small {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .mega-guide-small strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-guide-small small {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .mega-guide-small > svg {
    color: var(--theme-accent-secondary);
}

/* Hover */
html[data-theme="dark"] .mega-guide-main:hover,
html[data-theme="dark"] .mega-guide-small:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 7px 20px rgb(0 0 0 / 0.20);
}


/* DESKTOP — DARK MODE: LOGO BACKLIGHT */

html[data-theme="dark"] .site-logo {
    position: relative;
    isolation: isolate;
}

html[data-theme="dark"] .site-logo::before {
    content: "";
    position: absolute;
    z-index: -1;

    inset: -8px -14px;

    background: radial-gradient(
            ellipse at center,
            rgb(185 205 255 / 0.24) 0%,
            rgb(145 175 255 / 0.12) 42%,
            transparent 75%
    );

    filter: blur(12px);
    pointer-events: none;
}


/* =========================================
   DESKTOP — DARK MODE: PRODUCTS MEGA MENU
========================================= */

/* Coming soon announcement */
html[data-theme="dark"] .mega-products-notice {
    background: linear-gradient(
            110deg,
            var(--theme-surface-glass),
            var(--theme-surface-glass)
    );
    border-color: var(--theme-border);
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-products-notice-icon {
    background: var(--theme-surface-card);
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .mega-products-notice p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .mega-products-notice-badge {
    background: #392a59;
    color: #dfbaff;
}

/* Product category cards */
html[data-theme="dark"] .mega-products-panel .mega-category {
    background: linear-gradient(
            145deg,
            var(--theme-surface-glass),
            var(--theme-surface-glass)
    );
    border-color: var(--theme-border);
    box-shadow: 0 4px 13px rgb(0 0 0 / 0.12);
}

/* Category icons */
html[data-theme="dark"] .mega-products-panel .mega-category-icon {
    background: #343052;
    color: var(--theme-accent-secondary);
}

/* Category titles and descriptions */
html[data-theme="dark"] .mega-products-panel .mega-category strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .mega-products-panel .mega-category small {
    color: var(--theme-text-muted);
}

/* All products card */
html[data-theme="dark"] .mega-products-panel .mega-category-all {
    background: linear-gradient(
            135deg,
            #28334d,
            #342b56
    );
    border-color: #554b83;
}

/* Hover — ready for future launch */
html[data-theme="dark"] .mega-products-panel .mega-category:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 9px 22px rgb(0 0 0 / 0.22);
}

/* =========================================
   DESKTOP — THEME TOGGLE
   ========================================= */

.desktop-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid var(--theme-border);
    border-radius: 50%;

    background: var(--theme-surface-soft);
    color: var(--theme-accent);

    cursor: pointer;

    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.desktop-theme-toggle svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

.desktop-theme-toggle:hover {
    border-color: var(--theme-accent);
    background: var(--theme-surface-card);
    box-shadow: 0 0 16px rgb(100 110 255 / 0.16);
    transform: translateY(-1px);
}

.desktop-theme-toggle:active {
    transform: scale(0.94);
}

.desktop-theme-toggle:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 3px;
}

/* Dark mode */

html[data-theme="dark"] .desktop-theme-toggle {
    background: #283149;
    border-color: #3c4868;
    color: #a6b2ff;
}

html[data-theme="dark"] .desktop-theme-toggle:hover {
    background: #333e5b;
    border-color: #8192ff;
    box-shadow: 0 0 18px rgb(129 146 255 / 0.22);
}

/* Floating header */

.desktop-theme-toggle-floating {
    width: 36px;
    height: 36px;
}

.desktop-theme-toggle-floating svg {
    width: 17px;
    height: 17px;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .desktop-theme-toggle {
        transition: none;
    }
}

/* DESKTOP — DARK MODE: MEGA PRODUCT CARDS */

/* All category cards */
html[data-theme="dark"] .mega-category {
    background: linear-gradient(
            145deg,
            var(--theme-surface-glass),
            var(--theme-surface-glass)
    );
    border-color: var(--theme-border);
    box-shadow: 0 4px 13px rgb(0 0 0 / 0.12);
}

/* Category icons */
html[data-theme="dark"] .mega-category-icon {
    background: #343052;
    color: var(--theme-accent-secondary);
}

/* Titles */
html[data-theme="dark"] .mega-category strong {
    color: var(--theme-text-heading);
}

/* Descriptions */
html[data-theme="dark"] .mega-category small {
    color: var(--theme-text-muted);
}

/* All products — special card */
html[data-theme="dark"] .mega-category-all {
    background: linear-gradient(
            135deg,
            #28334d,
            #342b56
    );
    border-color: #554b83;
}

/* Hover */
html[data-theme="dark"] .mega-category:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 9px 22px rgb(0 0 0 / 0.22);
}


/* =========================================
   DESKTOP — AUTOMATIC THEME LOGO
========================================= */

/* Original logo in light mode */
.site-logo img {
    content: url("../images/desklogo.png");
}

/* Night logo in dark mode */
html[data-theme="dark"] .site-logo img {
    content: url("../images/desklogo-dark.png");
}

..floating-logo img {
    content: url("../images/desklogo.png");
}

/* Night logo in dark mode */
html[data-theme="dark"] .floating-logo img {
    content: url("../images/desklogo-dark.png");
}

/* DESKTOP — SEARCH + THEME TOGGLE GROUP */

.header-search-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

.header-search-actions .header-search {
    margin: 0;
}

.header-search-actions .desktop-theme-toggle {
    flex-shrink: 0;
}

/* DESKTOP — HEADER SEARCH GROUP FIX */

.header-search-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    flex: 0 0 auto;
}

.header-search-actions .header-search {
    flex: 0 1 360px;
    width: 360px;
    max-width: 100%;
    margin: 0;
}

.header-search-actions .desktop-theme-toggle {
    flex: 0 0 40px;
}


/* =========================================
   DESKTOP — THEME SELECTOR MENU
========================================= */

.desktop-theme-toggle {
    position: relative;
}

.desktop-theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;

    width: 175px;
    padding: 7px;

    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgb(0 0 0 / 0.18);

    z-index: 10000;
    direction: rtl;
}

.desktop-theme-option {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 10px 12px;

    border: 0;
    border-radius: 9px;
    background: transparent;

    color: var(--theme-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
}

.desktop-theme-option svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.desktop-theme-option:hover {
    background: var(--theme-surface-soft);
}

.desktop-theme-option.active {
    background: var(--theme-surface-card);
    color: var(--theme-accent);
}

.desktop-theme-option:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: -2px;
}

/* DESKTOP — THEME MENU ISOLATION */

.desktop-theme-menu {
    position: fixed;
    z-index: 99999;
}

.desktop-theme-menu .desktop-theme-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 38px;
    line-height: 1.4;
}

.desktop-theme-menu .desktop-theme-option span {
    display: inline;
    flex: 1;
}


/* =========================================
   DESKTOP — DARK MODE: ARTICLE READING
========================================= */

/* Article heading */

html[data-theme="dark"] .desktop-article-heading h1 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-article-lead {
    color: var(--theme-text-muted);
}

/* Article reading surface */

html[data-theme="dark"] .desktop-article-body {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
    box-shadow: 0 10px 35px rgb(0 0 0 / 0.14);
}

/* Headings inside the article */

html[data-theme="dark"] .desktop-article-body h2,
html[data-theme="dark"] .desktop-article-body h3,
html[data-theme="dark"] .desktop-article-body h4 {
    color: var(--theme-accent);
}

/* Image captions */

html[data-theme="dark"] .desktop-article-body figcaption {
    color: var(--theme-text-muted);
}


/* DESKTOP — DARK MODE: ARTICLE POLL */

html[data-theme="dark"] .desktop-article-sidebar .article-poll {
    background: linear-gradient(145deg, var(--theme-surface), var(--theme-surface-soft));
    border-color: var(--theme-border);
    box-shadow: 0 8px 26px rgb(0 0 0 / 0.12);
}

html[data-theme="dark"] .desktop-article-sidebar .article-poll h2 {
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .desktop-article-sidebar .poll-title {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-article-sidebar .poll-option {
    background: var(--theme-surface-card);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .desktop-article-sidebar .poll-option:hover {
    background: #323d59;
    border-color: var(--theme-accent);
}

html[data-theme="dark"] .desktop-article-sidebar .poll-count {
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .desktop-article-sidebar .poll-bar {
    background: #151c30;
}


/* DESKTOP — DARK MODE: RELATED ARTICLES */

html[data-theme="dark"] .desktop-article-sidebar .sidebar-box {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: 0 8px 26px rgb(0 0 0 / 0.12);
}

html[data-theme="dark"] .desktop-article-sidebar .section-kicker {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-article-sidebar .sidebar-news-card {
    background: var(--theme-surface-card);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .desktop-article-sidebar .sidebar-news-card:hover {
    background: #323d59;
    border-color: var(--theme-accent);
}

html[data-theme="dark"] .desktop-article-sidebar .sidebar-news-content strong {
    color: var(--theme-text);
}

html[data-theme="dark"] .desktop-article-sidebar .sidebar-news-content span {
    color: var(--theme-accent-secondary);
}


/* =========================================
   DESKTOP — DARK MODE: SHARING & COMMENTS
   ========================================= */

/* Sharing bar */
html[data-theme="dark"] .desktop-share-bar {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .desktop-share-bar .article-share-btn {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-accent);
}

html[data-theme="dark"] .desktop-share-bar .article-share-btn:hover {
    background: var(--theme-surface-card);
}

/* Comments heading */
html[data-theme="dark"] .desktop-comments-heading h2 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-comments-heading p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-comments-kicker {
    color: var(--theme-accent-secondary);
}

/* Comment form */
html[data-theme="dark"] .desktop-comments-section .comment-form-box {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: none;
}

html[data-theme="dark"] .desktop-comments-section .comment-guest-note {
    background: var(--theme-surface-soft);
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-comments-section .comment-label {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-comments-section .comment-textarea,
html[data-theme="dark"] .desktop-comments-section input[type="text"] {
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .desktop-comments-section input::placeholder,
html[data-theme="dark"] .desktop-comments-section textarea::placeholder {
    color: var(--theme-text-muted);
}

/* Existing comments and replies */
html[data-theme="dark"] .desktop-comments-section .comment-card {
    background: var(--theme-surface-glass);
    border-color: var(--theme-border);
    box-shadow: none;
}

html[data-theme="dark"] .desktop-comments-section .comment-card-child {
    background: var(--theme-surface-glass);
}

html[data-theme="dark"] .desktop-comments-section .comment-author strong,
html[data-theme="dark"] .desktop-comments-section .comment-author a,
html[data-theme="dark"] .desktop-comments-section .comment-body {
    color: var(--theme-text);
}

html[data-theme="dark"] .desktop-comments-section .comment-head span {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-comments-section .comment-reply-toggle {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .desktop-comments-section .comment-children {
    border-right-color: var(--theme-border);
}

/* Empty comments message */
html[data-theme="dark"] .desktop-comments-section .comments-empty {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}


/* DESKTOP — DARK MODE: FOOTER */

html[data-theme="dark"] .desktop-footer {
    background: linear-gradient(
            135deg,
            #1b2336 0%,
            #202841 55%,
            #241f3b 100%
    );
    border-top: 1px solid var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .footer-brand p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .footer-column h3 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .footer-column a {
    color: var(--theme-text-muted);
    transition: color 0.2s ease;
}

html[data-theme="dark"] .footer-column a:hover {
    color: var(--theme-accent-secondary);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: var(--theme-border);
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .footer-bottom-note {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-article-cover {
    border: 1px solid var(--theme-border);
}

/* Footer logo — follow the website theme */

html[data-theme="dark"] .footer-logo {
    content: url("/images/desklogo-dark.png");
}


/* DESKTOP — DARK MODE: ARTICLES ARCHIVE */

html[data-theme="dark"] .articles-page-shell .articles-hero,
html[data-theme="dark"] .articles-page-shell .desktop-archive-advanced {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .articles-page-shell .desktop-archive-advanced-inner {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .articles-page-shell .articles-select,
html[data-theme="dark"] .articles-page-shell .articles-search,
html[data-theme="dark"] .articles-page-shell .desktop-archive-filter-check {
    background: var(--theme-surface-soft);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .articles-page-shell .desktop-archive-filter-group,
html[data-theme="dark"] .articles-page-shell .desktop-archive-filter-heading,
html[data-theme="dark"] .articles-page-shell .desktop-archive-results-bar {
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .articles-page-shell .desktop-archive-results-info h2,
html[data-theme="dark"] .articles-page-shell .desktop-archive-filter-group strong {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .articles-page-shell .article-card {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .articles-page-shell .article-card-title,
html[data-theme="dark"] .articles-page-shell .article-card-title a {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .articles-page-shell .article-card-summary,
html[data-theme="dark"] .articles-page-shell .article-card-date,
html[data-theme="dark"] .articles-page-shell .desktop-archive-results-info span,
html[data-theme="dark"] .articles-page-shell .desktop-archive-filter-heading small {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .articles-page-shell .article-card-readmore,
html[data-theme="dark"] .articles-page-shell .desktop-archive-reset {
    color: var(--theme-accent);
}


/* DESKTOP — DARK MODE: ARCHIVE FINISHING TOUCHES */

html[data-theme="dark"] .articles-page-shell .desktop-archive-results-sort {
    background: var(--theme-surface-soft);
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
}

html[data-theme="dark"] .articles-page-shell .desktop-archive-advanced-toggle,
html[data-theme="dark"] .articles-page-shell .desktop-archive-toggle-arrow {
    color: var(--theme-accent);
}

html[data-theme="dark"] .articles-page-shell .articles-search::placeholder {
    color: var(--theme-text-muted);
    opacity: 1;
}

html[data-theme="dark"] .articles-page-shell .articles-select option {
    background: var(--theme-surface);
    color: var(--theme-text);
}


/* ==========================================
   DESKTOP — DARK MODE: SEARCH PAGE
   ========================================== */

/* Main heading */
html[data-theme="dark"] .desktop-search-heading h1 {
    color: var(--theme-text-heading);
}

html[data-theme="dark"] .desktop-search-heading p {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-search-eyebrow {
    color: var(--theme-accent-secondary);
}

/* Search category tabs */
html[data-theme="dark"] .desktop-search-page .search-tab {
    background: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .desktop-search-page .search-tab.is-active {
    background: linear-gradient(110deg, #087cf3, #9421ed);
    border-color: transparent;
    color: #ffffff;
}

html[data-theme="dark"] .desktop-search-page .search-tab:hover:not(.is-active) {
    background: var(--theme-surface-card);
    color: var(--theme-text);
}

/* Result cards */
html[data-theme="dark"] .desktop-search-page .search-result-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

/* Result titles */
html[data-theme="dark"] .desktop-search-page .search-result-title,
html[data-theme="dark"] .desktop-search-page .search-result-title a {
    color: var(--theme-text-heading);
}

/* Result descriptions */
html[data-theme="dark"] .desktop-search-page .search-result-excerpt {
    color: var(--theme-text-muted);
}

/* Links */
html[data-theme="dark"] .desktop-search-page .search-result-link {
    color: var(--theme-accent);
}

/* Placeholder image */
html[data-theme="dark"] .desktop-search-page .search-result-image-placeholder {
    background: var(--theme-surface-card);
}

/* Empty search states */
html[data-theme="dark"] .desktop-search-page .comments-empty {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}


/* DESKTOP — DARK MODE: MOBILE NAVIGATION */
@media (max-width: 768px) {

    html[data-theme="dark"] .floating-navigation.is-open {
        background: var(--theme-surface);
        color: var(--theme-text);
    }

    html[data-theme="dark"] .floating-navigation.is-open > .nav-link,
    html[data-theme="dark"] .floating-navigation.is-open > .nav-mega-item > .nav-link {
        background: transparent;
        color: var(--theme-text);
        border-color: var(--theme-border);
    }

    html[data-theme="dark"] .floating-navigation.is-open .nav-link.active {
        background: var(--theme-surface-soft);
        color: var(--theme-accent);
    }

    html[data-theme="dark"] .floating-navigation.is-open .nav-icon,
    html[data-theme="dark"] .floating-navigation.is-open .mega-chevron {
        color: var(--theme-text-muted);
    }
}


/* DESKTOP — DARK MODE: MOBILE NAVIGATION */
@media (max-width: 768px) {

    html[data-theme="dark"] .floating-navigation {
        background: var(--theme-surface);
        color: var(--theme-text);
    }

    html[data-theme="dark"] .floating-navigation .nav-link {
        background: transparent;
        color: var(--theme-text);
        border-color: var(--theme-border);
    }

    html[data-theme="dark"] .floating-navigation .nav-link.active {
        background: var(--theme-surface-soft);
        color: var(--theme-accent);
    }

    html[data-theme="dark"] .floating-navigation .nav-icon,
    html[data-theme="dark"] .floating-navigation .mega-chevron {
        color: var(--theme-text-muted);
    }
}


/* DESKTOP — DARK MODE: MOBILE ACTIVE NAV FIX */
@media (max-width: 850px) {

    html[data-theme="dark"] #floating-navigation .nav-link.active {
        background: var(--theme-surface-soft);
        color: var(--theme-accent);
    }

    html[data-theme="dark"] #floating-navigation .nav-inner {
        background: var(--theme-surface);
    }
}


/* DESKTOP — DARK MODE: MAIN MOBILE NAVIGATION */
@media (max-width: 850px) {

    html[data-theme="dark"] #main-navigation .nav-link.active {
        background: var(--theme-surface-soft);
        color: var(--theme-accent);
    }

    html[data-theme="dark"] #main-navigation .nav-inner {
        background: var(--theme-surface);
    }
}

html[data-theme="dark"] body {
    background:
            radial-gradient(
                    ellipse at 15% 25%,
                    var(--theme-page-glow-1),
                    transparent 45%
            ),
            radial-gradient(
                    ellipse at 85% 70%,
                    var(--theme-page-glow-2),
                    transparent 45%
            ),
            var(--theme-page-bg);
}


html[data-theme="dark"] .desktop-comments-section .comment-children {
    margin-top: 15px;
    padding-right: 17px;
    border-right: 3px solid rgb(0 0 0 / 0.21);
}

.desktop-page-body {
    width: min(100% - 40px, 1400px);
    max-width: 1400px;
    margin: 55px auto 55px;
    padding: 34px 38px;
    color: #252d50;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 35px rgba(49, 55, 130, .06);
    border: 1px solid transparent;
    box-sizing: border-box;
    border-radius: 18px;
}

.desktop-page-body p {
    margin: 0 0 1.5em;
}

.desktop-page-body h2,
.desktop-page-body h3,
.desktop-page-body h4 {
    color: #1a2ca8;
    font-weight: 850;
    line-height: 1.4;
}

.desktop-page-body h2 {
    margin: 10px 0;
    font-size: clamp(24px, 2vw, 30px);
}

.desktop-page-body h3 {
    margin: 1.7em 0 .7em;
    font-size: 22px;
}

.desktop-page-body h4 {
    margin: 1.5em 0 .6em;
    font-size: 19px;
}

.desktop-page-body a {
    color: #6639db;
    text-decoration: underline;
    text-decoration-color: #c9b9ff;
    text-underline-offset: 4px;
}

.desktop-page-body a:hover {
    color: #246dff;
}

.desktop-page-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
}

.desktop-page-body figure {
    max-width: 100%;
    margin: 30px 0;
}

.desktop-page-body figure img {
    margin-bottom: 10px;
}


html[data-theme="dark"] .desktop-page-body {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
    box-shadow: 0 10px 35px rgb(0 0 0 / 0.14);
}

/* MOBILE */

@media (max-width: 850px) {
    .desktop-page-body {
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-page-body {
        width: calc(100% - 28px);
        max-width: 100%;
        margin: 20px auto 35px;
        padding: 24px 20px;
        font-size: 16px;
        line-height: 1.9;
    }

    .desktop-page-body h2 {
        font-size: 24px;
        text-align: center;
    }

    .desktop-page-body h3 {
        font-size: 20px;
    }

    .desktop-page-body blockquote {
        padding: 18px;
        font-size: 17px;
    }

    .desktop-page-body th,
    .desktop-page-body td {
        padding: 10px;
        font-size: 12px;
    }
}

html[data-theme="dark"] .desktop-page-body h2,
html[data-theme="dark"] .desktop-page-body h3,
html[data-theme="dark"] .desktop-page-body h4 {
    color: var(--theme-accent);
}

.comments-wrap {
    background: var(--theme-page-glow-1);
    padding: 28px;
    width: 100%;
    max-width: 1380px;
    margin: 55px auto;
}

.comment-form-box {
    background: var(--theme-page-glow-1);
    padding: 20px;
    margin-bottom: 26px;
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form-row {
    gap: 8px;
}

.comment-label {
    font-weight: 800;
    font-size: .95rem;
    margin: 15px;
    display: block;
}

.comment-input,
.comment-textarea {
    width: 100%;
    background: var(--theme-page-bg);
    border-radius: 18px;
    padding: 14px 16px;
    border: 0;
    font: inherit;
    color: var(--theme-text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.comment-input:focus,
.comment-textarea:focus {
    border-color: var(--theme-page-glow-1);
    background: var(--theme-page-glow-1);
}

.comment-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

.comment-message {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.comment-message.error {
    background: rgba(255, 99, 99, 0.10);
    color: #a64848;
    border: 1px solid rgba(255, 99, 99, 0.18);
}

.comment-message.success {
    background: rgba(90, 181, 122, 0.10);
    color: #3f7b55;
    border: 1px solid rgba(90, 181, 122, 0.18);
}

.comment-logged-note {
    background: rgba(184, 79, 79, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(184, 79, 79, 0.16);
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 700;
}

.comments-list {
    display: grid;
    gap: 16px;
}

.comment-card {
    background: rgb(221 208 208 / 0.46);
    padding: 18px;
    box-shadow: 0 12px 24px rgba(143, 143, 143, 0.06);
    margin: 20px 0;
}

.comment-card-child {
    margin-top: 12px;
    margin-right: 24px;
    background: rgb(255, 255, 255);
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-head strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.comment-head span {
    color: rgb(0 0 0 / 0.29);
    font-size: .84rem;
    font-weight: 700;
}

.comment-body {
    color: #000000;
    line-height: 1.9;
    font-size: .98rem;
}

.comment-reply-toggle {
    margin-top: 14px;
    border: 0;
    color: var(--primary-dark);
    font-weight: bolder !important;
    cursor: pointer;
    padding: 10px;
    border-radius: 15px;
    font: inherit;
    background: rgba(128, 128, 128, 0.16);
}

.comment-reply-toggle:hover {
    text-decoration: underline;
}

.reply-form {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 160, 160, 0.24);
    gap: 14px;
}

.reply-form.open {
    display: grid;
}

.comment-children {
    margin-top: 14px;
}

.comments-empty {
    background: var(--theme-surface-soft);
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    margin: 20px 0;
}

.ptn-community-hero {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 14px 24px rgba(163, 163, 163, 0.22);
    border: 1px solid rgba(255,255,255,.55);
}

@media (max-width: 680px) {
    .comments-wrap {
        padding: 0px !important;
    }

    .comment-body {
        padding-right: 8px;
        text-align: right;
    }

    .comment-card-child {
        margin-right: 12px;
    }

    .comment-head span {
        color: #8e8e8e;
        font-size: .50rem;
        font-weight: 500;
    }

    .comment-card {
        padding: 15px 5px;
    }
}

.comment-ajax-message {
    display: none;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.comment-ajax-message.is-visible {
    display: block;
}

.comment-ajax-message.is-error {
    background: var(--theme-surface-soft);
    color: #a64848;
    border: 1px solid rgba(255, 99, 99, 0.18);
}

.comment-ajax-message.is-success {
    background: rgba(90, 181, 122, 0.10);
    color: #3f7b55;
    border: 1px solid rgba(90, 181, 122, 0.18);
}

.btn.is-loading {
    opacity: .72;
    pointer-events: none;
    position: relative;
}

.btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 8px;
    animation: commentSpin .65s linear infinite;
}

@keyframes commentSpin {
    to {
        transform: rotate(360deg);
    }
}

html[data-theme="dark"] .desktop-main::before {
    background: radial-gradient(circle, rgb(58 64 87 / 0%) 59%, rgb(0 0 0 / 37%) 100%);
}

/* =========================================
   DESKTOP - Contact Page
   ========================================= */

.desktop-contact .contact-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 42px 36px;
    margin-bottom: 28px;
    border-radius: 24px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.desktop-contact .contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient);
    opacity: .09;
    pointer-events: none;
}

.desktop-contact .contact-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--theme-text-muted);
    direction: ltr;
    margin-bottom: 12px;
}

.desktop-contact .contact-hero h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-contact .contact-hero p {
    color: var(--theme-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.desktop-contact .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.desktop-contact .contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.desktop-contact .contact-panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}

.desktop-contact .contact-panel h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--theme-text-heading);
}

.desktop-contact .contact-description,
.desktop-contact .contact-info p {
    color: var(--theme-text-muted);
    font-size: .95rem;
    line-height: 1.8;
    margin: 0;
}

.desktop-contact .contact-card-tag {
    display: inline-block;
    direction: ltr;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-contact .contact-email {
    display: inline-block;
    direction: ltr;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: .95rem;
    font-weight: 700;
}

.desktop-contact .contact-form {
    margin-top: 24px;
}

.desktop-contact .comment-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.desktop-contact .comment-label {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
}

.desktop-contact .comment-input {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--theme-border);
    background: var(--theme-page-bg);
    color: var(--theme-text);
    transition: border-color .2s, box-shadow .2s;
}

.desktop-contact .comment-input:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px var(--theme-page-glow-1);
    background: var(--theme-page-bg);
}

.desktop-contact textarea.comment-input {
    min-height: 160px;
    resize: vertical;
}

.desktop-contact select.comment-input {
    cursor: pointer;
}

.desktop-contact select.comment-input option {
    background: var(--theme-surface);
    color: var(--theme-text);
}

.desktop-contact .contact-form .btn-primary {
    width: 100%;
    padding: 15px 22px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
}

.desktop-contact .contact-form .btn-primary:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 4px;
}

html[data-theme="dark"] .desktop-contact {
    color-scheme: dark;
}

@media (max-width: 900px) {
    .desktop-contact .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .desktop-contact .contact-hero {
        padding: 28px 22px;
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .desktop-contact .contact-panel {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .desktop-contact .contact-layout {
        gap: 20px;
    }

    .desktop-contact .contact-sidebar {
        gap: 14px;
    }

    .desktop-contact .contact-hero p {
        font-size: .95rem;
    }
}

.article-poll {
    display: none;
}