:root {
    --bg-main: #060b14;
    --bg-sidebar: #08111f;
    --bg-card: #0c1627;
    --bg-card-hover: #101d33;
    --border-color: #1d324f;
    --border-soft: rgba(118, 170, 220, 0.16);
    --panel-highlight: rgba(91, 169, 255, 0.12);
    --text-main: #f4f8ff;
    --text-muted: #9fb2c9;
    --text-dim: #64748b;

    /* Premium Accent Colors */
    --color-ue: #ff8a2a;
    --color-blueprint: #37b6ff;
    --color-cyan: #00d9ff;
    --color-blender: #f28c28;
    --color-photoshop: #31a8ff;
    --color-substance: #f0a844;
    --color-tools: #a259ff;
    --color-discord: #5865f2;
    --color-patreon: #f96854;
}

/* --- ANIMATIONS --- */
@keyframes mobile-focus-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(55, 182, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(55, 182, 255, 0), 0 12px 35px rgba(0, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(55, 182, 255, 0), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

@keyframes mobile-button-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Mobile Filter Button Base (Hidden on Desktop) */
.dashboard-mobile-filter-btn {
    display: none;
}

@media (max-width: 1024px) {
    .hero-banner {
        display: none !important;
    }

    .dashboard-mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        height: 42px;
        margin: 0;
        background: rgba(12, 22, 39, 0.9);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(55, 182, 255, 0.2);
        border-left: 4px solid var(--color-ue);
        border-radius: 8px;
        color: #fff;
        font-family: 'Rajdhani', sans-serif;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        transition: all 0.2s ease;
    }

    .dashboard-mobile-filter-btn:active {
        transform: scale(0.97);
        background: var(--color-ue);
        color: #000;
    }

    .dashboard-mobile-filter-btn:active i {
        color: #000;
    }

    .dashboard-mobile-filter-btn i {
        color: var(--color-ue);
        font-size: 18px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(88, 199, 255, 0.2), transparent 42%),
        radial-gradient(ellipse at 10% 14%, rgba(255, 42, 42, 0.11), transparent 28%),
        radial-gradient(ellipse at 92% 18%, rgba(255, 196, 93, 0.1), transparent 30%),
        linear-gradient(180deg, #071421 0%, #06101d 320px, #030711 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(88, 199, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 199, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 74%);
    opacity: 1;
}

/* --- GLOBAL CONTENT CONTAINER --- */
.dashboard-layout {
    display: flex;
    max-width: 1780px;
    margin: 0 auto;
    width: 100%;
    min-height: auto;
    position: relative;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 40px 56px;
}

/* --- STICKY MOBILE TOP BAR --- */
.mobile-header {
    display: none;
    background: rgba(7, 15, 33, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    width: 100%;
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mobile-brand img {
    display: block;
    width: 46px;
    height: auto;
}

.mobile-menu-trigger {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

/* --- DESKTOP SIDEBAR --- */
aside {
    width: 280px;
    /* Matching the sidebar-w variable */
    background-color: transparent;
    border-right: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
}

@media (min-width: 1025px) {
    aside {
        position: sticky;
        top: 100px;
        bottom: auto;
        align-self: start;
    }
}

aside::-webkit-scrollbar {
    width: 4px;
}

aside::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* --- SIDEBAR NAV IMPORT --- */
.sidebar {
    --bg-deep: #070d1a;
    --bg-item: #0e1830;
    --bg-item-hover: #122040;
    --border-dim: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 200, 255, 0.18);
    --ue-orange: #e8732a;
    --ue-glow: rgba(232, 115, 42, 0.35);
    --bl-orange: #e87d2a;
    --bl-glow: rgba(232, 125, 42, 0.35);
    --ps-blue: #31a8ff;
    --ps-glow: rgba(49, 168, 255, 0.35);
    --sb-orange: #f0a844;
    --sb-glow: rgba(240, 168, 68, 0.35);
    --tp-purple: #a259ff;
    --tp-glow: rgba(162, 89, 255, 0.35);
    --text-head: #ffffff;
    --text-item: #aebdd0;
    --sidebar-w: 280px;
    width: var(--sidebar-w);
    background:
        linear-gradient(180deg, rgba(13, 24, 42, 0.96), rgba(7, 13, 24, 0.98));
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    margin-top: 10px;
    /* Keep this margin to define the start of the sidebar's visual content */
    padding: 0;
    font-family: 'Exo 2', sans-serif;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sidebar-header {
    padding: 16px 18px 14px;
    letter-spacing: 0.15em;
    font-family: 'Rajdhani', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #71869e;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.018);
}

.category {
    border-bottom: 1px solid rgba(118, 170, 220, 0.09);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 14px 11px 16px;
    cursor: pointer;
    background: rgba(10, 18, 32, 0.72);
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.all-posts-category {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(118, 170, 220, 0.09);
    padding: 11px 14px 11px 16px;
    background: rgba(10, 18, 32, 0.72);
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.all-posts-category .cat-icon {
    color: var(--color-cyan);
}

.all-posts-category.active,
.category-filter.active {
    background: var(--accent-glow, rgba(0, 217, 255, 0.12));
}

.cat-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-glow, transparent) 0%, transparent 52%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-header:hover::before {
    opacity: 1;
}

.cat-header:hover {
    background: rgba(19, 35, 58, 0.9);
}

.cat-header::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color, transparent);
    box-shadow: 0 0 8px var(--accent-glow, transparent);
}

.cat-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cat-icon svg,
.cat-icon img {
    width: 100%;
    height: 100%;
}

.cat-icon img,
.item-icon-img {
    object-fit: contain;
}

.cat-icon-fallback {
    width: 22px;
    height: 22px;
    border: 1px solid var(--accent-color, var(--text-dim));
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow, rgba(55, 182, 255, 0.18));
    color: var(--accent-color, var(--text-head));
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cat-title {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color, var(--text-head));
    position: relative;
    z-index: 1;
}

.cat-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category.open .cat-chevron {
    transform: rotate(0deg);
}

.category:not(.open) .cat-chevron {
    transform: rotate(-90deg);
}

.cat-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(5, 10, 18, 0.58);
}

.category.open .cat-items {
    max-height: 600px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 22px;
    cursor: pointer;
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    transition: background 0.18s, padding-left 0.18s;
    border-left: 3px solid transparent;
    position: relative;
    text-decoration: none;
}

.cat-item:hover {
    background: var(--accent-glow, rgba(23, 39, 63, 0.78));
    border-left-color: var(--accent-color, var(--border-glow));
    padding-left: 24px;
}

.item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.cat-item:hover .item-icon {
    opacity: 1;
}

.item-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-item);
    transition: color 0.18s;
    letter-spacing: 0.01em;
}

.cat-item:hover .item-label {
    color: var(--accent-color, var(--text-head));
}

.sidebar-toolkit {
    margin: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 138, 42, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 138, 42, 0.2), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(55, 182, 255, 0.11), transparent 36%),
        linear-gradient(135deg, rgba(10, 19, 35, 0.96), rgba(6, 11, 20, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 12px 26px rgba(0, 0, 0, 0.18);
}

.sidebar-toolkit__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.sidebar-toolkit__eyebrow {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffb15f;
}

.sidebar-toolkit__header i {
    color: var(--color-ue);
    font-size: 15px;
    text-shadow: 0 0 16px rgba(255, 138, 42, 0.38);
}

.sidebar-toolkit h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.sidebar-toolkit p {
    margin: 0 0 12px;
    color: #9fb2c9;
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-toolkit__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid rgba(255, 177, 95, 0.38);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(255, 138, 42, 0.22), rgba(255, 177, 95, 0.12));
    color: #fff3e7;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.sidebar-toolkit__cta:hover {
    border-color: rgba(255, 177, 95, 0.62);
    background: linear-gradient(135deg, rgba(255, 138, 42, 0.32), rgba(255, 177, 95, 0.18));
    color: #ffffff;
}

.sidebar-toolkit__cta i {
    color: var(--color-ue);
    font-size: 12px;
}

.pro-box {
    display: none;
    padding: 18px 16px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 229, 142, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(46, 31, 8, 0.98), rgba(17, 12, 5, 0.99) 58%, rgba(8, 10, 16, 0.98));
    border-top: 1px solid rgba(255, 214, 114, 0.42);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0 0 8px 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 182, 0.18),
        0 -1px 0 rgba(255, 214, 114, 0.12);
}

.pro-box::before {
    content: '';
    position: absolute;
    top: -38px;
    right: -34px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(255, 203, 87, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.pro-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 68%);
    opacity: 0.55;
    pointer-events: none;
}

.pro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.pro-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffe9a6;
    text-shadow: 0 1px 10px rgba(255, 190, 64, 0.16);
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 226, 151, 0.42);
    border-radius: 6px;
    background: rgba(255, 204, 82, 0.12);
    color: #ffd45c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.patreon-icon {
    width: 20px;
    height: 17px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.drawer-socials .patreon-icon {
    width: 17px;
    height: 17px;
}

.pro-desc {
    font-size: 11.5px;
    color: #d8c58d;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #fff0a8 0%, #f7bf38 48%, #c98614 100%);
    border: 1px solid rgba(255, 232, 160, 0.56);
    border-radius: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1203;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    box-shadow:
        0 8px 22px rgba(255, 181, 43, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    position: relative;
    z-index: 1;
}

.pro-btn .patreon-icon {
    width: 15px;
    height: 15px;
}

.pro-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.03);
    box-shadow:
        0 12px 26px rgba(255, 181, 43, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.pro-btn:active {
    transform: translateY(0);
}

.icon-ue {
    fill: var(--ue-orange);
}

.icon-bl {
    fill: var(--bl-orange);
}

.icon-ps {
    fill: var(--ps-blue);
}

.icon-sb {
    fill: var(--sb-orange);
}

.icon-tp {
    fill: var(--tp-purple);
}

.icon-item {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- RESPONSIVE MOBILE ACCORDION SIDE NAV DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #050a15;
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

.drawer-menu {
    list-style: none;
    margin-bottom: 24px;
}

.drawer-item {
    margin-bottom: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

button.drawer-link {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.drawer-link.active {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--color-ue);
    padding-left: 13px;
}

.drawer-link div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-link i.main-icon {
    width: 20px;
    text-align: center;
}

.drawer-category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.drawer-link .chevron {
    font-size: 12px;
    color: var(--text-dim);
}

.drawer-sub-menu {
    list-style: none;
    padding-left: 44px;
    margin-top: 4px;
    display: none;
}

.drawer-item.expanded .drawer-sub-menu {
    display: block;
}

.drawer-sub-menu li a,
.drawer-sub-menu button.category-filter {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.community-card {
    background: linear-gradient(135deg, #0d1b3e 0%, #050a17 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
    margin-bottom: 24px;
}

.community-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.community-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.discord-btn {
    background: var(--color-discord);
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.discord-btn i {
    font-size: 17px;
}

.drawer-socials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}

.drawer-socials a,
.drawer-socials span {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
}

.drawer-socials a:hover {
    color: #fff;
}

.drawer-socials img {
    width: 19px;
    height: 19px;
    display: block;
    object-fit: contain;
}

/* --- MAIN PANELS CONTENT --- */
main {
    flex: 1;
    padding: 10px 0 0;
    width: 100%;
    overflow-x: hidden;
}

/* Hero membership and resource banner */
.hero-banner {
    display: grid;
    grid-template-columns: minmax(360px, 1.45fr) minmax(190px, 0.48fr) minmax(190px, 0.48fr);
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-left: 2px solid #0b73bf;
    border-radius: 8px;
    background: radial-gradient(circle at 16% 0%, rgba(55, 182, 255, 0.14), transparent 34%), linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(5, 10, 18, 0.98));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


.hero-resource-panel,
.hero-patreon-card {
    min-width: 0;
    border-radius: 8px;
}

.hero-resource-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(55, 182, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(11, 22, 39, 0.92), rgba(8, 17, 31, 0.88)),
        radial-gradient(circle at 100% 0%, rgba(255, 138, 42, 0.18), transparent 32%);
}

.hero-resource-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(55, 182, 255, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(162, 89, 255, 0.12), transparent 42%);
    pointer-events: none;
}

.hero-resource-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-logo-frame {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
}

.hero-logo-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-resource-copy h1 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 24px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-resource-copy p {
    max-width: 560px;
    margin: 0;
    color: #b8d2ec;
    font-size: 13px;
    line-height: 1.45;
}

.hero-resource-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.hero-resource-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid rgba(55, 182, 255, 0.22);
    border-radius: 8px;
    background: rgba(8, 17, 31, 0.72);
    color: #d6e7f8;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-resource-actions a:hover,
.hero-resource-actions a:focus-visible {
    background: rgba(55, 182, 255, 0.12);
    border-color: rgba(55, 182, 255, 0.42);
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-resource-actions i {
    color: var(--color-cyan);
    font-size: 15px;
}

.hero-patreon-card {
    display: grid;
    align-content: space-between;
    gap: 8px;
    padding: 18px;
    min-height: 100%;
}

.hero-patreon-card__label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-patreon-card h2 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-patreon-card p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.35;
}

.hero-patreon-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: start;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-patreon-card--free {
    border: 1px solid rgba(190, 225, 255, 0.26);
    background:
        radial-gradient(circle at 18% 0%, rgba(244, 248, 255, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(21, 35, 52, 0.96), rgba(8, 17, 31, 0.96));
    color: #f4f8ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 28px rgba(0, 0, 0, 0.16);
}

.hero-patreon-card--free .hero-patreon-card__label,
.hero-patreon-card--free p {
    color: #b8d2ec;
}

.hero-patreon-card--free a {
    border: 1px solid rgba(244, 248, 255, 0.24);
    background: rgba(244, 248, 255, 0.1);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(55, 182, 255, 0.08);
}

.hero-patreon-card--gold {
    border: 1px solid rgba(255, 214, 114, 0.38);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 229, 142, 0.24), transparent 36%),
        linear-gradient(135deg, rgba(63, 42, 10, 0.92), rgba(10, 16, 28, 0.94));
    color: #fff3bf;
}

.hero-patreon-card--gold .hero-patreon-card__label,
.hero-patreon-card--gold p {
    color: #d8c58d;
}

.hero-patreon-card--gold a {
    border: 1px solid rgba(255, 232, 160, 0.55);
    background: linear-gradient(135deg, #fff0a8 0%, #f7bf38 52%, #c98614 100%);
    color: #1a1203;
    box-shadow: 0 10px 22px rgba(255, 181, 43, 0.18);
}

.hero-patreon-card .patreon-icon {
    width: 17px;
    height: 17px;
}

/* Sorting Utility Strip Controls */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}

.filter-left {
    display: block;
}

.filter-left p {
    margin: 0;
}

#postsFilterTitle {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.filter-title-text {
    background: linear-gradient(90deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#postsFilterSummary {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
}

.search-input {
    background: rgba(8, 17, 31, 0.86);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px 14px 10px 42px;
    color: #fff;
    font-size: 13px;
    width: 260px;
    outline: none;
    transition: border 0.2s;
}

.search-input:focus {
    border-color: var(--color-blueprint);
}

/* Custom Dropdown Styling Replacement Component */
.custom-dropdown-container {
    position: relative;
    width: 160px;
    user-select: none;
}

.custom-dropdown-trigger {
    background: rgba(8, 17, 31, 0.86);
    border: 1px solid var(--border-soft);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.custom-dropdown-container.open .custom-dropdown-trigger,
.custom-dropdown-trigger:hover {
    border-color: var(--color-blueprint);
}

.custom-dropdown-trigger i {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.custom-dropdown-container.open .custom-dropdown-trigger i {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 100%;
    background-color: #0a1424;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
    z-index: 90;
    display: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.custom-dropdown-container.open .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-dropdown-item:hover {
    background-color: var(--bg-card-hover);
    color: #fff;
}

.custom-dropdown-item.active {
    color: var(--color-blueprint);
    background-color: rgba(55, 182, 255, 0.08);
    font-weight: 600;
}

.view-toggle-container {
    display: flex;
    gap: 6px;
    border: 1px solid var(--border-soft);
    padding: 4px;
    border-radius: 8px;
    background: rgba(8, 17, 31, 0.86);
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn.active {
    color: var(--color-cyan);
    background: rgba(0, 217, 255, 0.12);
}

/* --- POSTS GRID ARCHITECTURE --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.posts-grid.list-view {
    grid-template-columns: 1fr;
}

.card {
    background:
        linear-gradient(180deg, rgba(12, 22, 39, 0.98), rgba(8, 14, 26, 0.98));
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.card[hidden] {
    display: none;
}

.card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(55, 182, 255, 0.34);
    background-color: var(--bg-card-hover);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.post-card:hover {
    border-color: var(--post-accent, rgba(55, 182, 255, 0.34));
}

.posts-grid.list-view .card-link {
    display: grid;
    grid-template-columns: minmax(220px, 30%) 1fr;
}

.posts-grid.list-view .card-thumb-area {
    padding-top: 0;
    min-height: 190px;
    border-right: 1px solid rgba(118, 170, 220, 0.12);
    border-bottom: 0;
}

.card-thumb-area {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #050a12;
    border-bottom: 1px solid rgba(118, 170, 220, 0.12);
}

.card-thumb-area img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--post-accent, var(--color-blueprint));
    font-size: 34px;
    background: linear-gradient(135deg, rgba(9, 18, 32, 0.98), rgba(4, 9, 16, 0.98));
}

.badge-container {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.badge.tutorial {
    background: #087ac0;
    color: #fff;
}

.badge.showcase {
    background: #475569;
    color: #fff;
}

.badge.blueprints {
    background: #1d8ed8;
    color: #fff;
}

.badge.environment {
    background: #0f8d6f;
    color: #fff;
}

.badge.news {
    background: #b93636;
    color: #fff;
}

.badge.engine {
    background: #ff8a2a;
    color: #fff;
}

.badge.materials {
    background: #2563eb;
    color: #fff;
}

.badge.performance {
    background: #16a34a;
    color: #fff;
}

.badge.ui {
    background: #db2777;
    color: #fff;
}

.brand-watermark {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    background: rgba(3, 8, 15, 0.86);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(55, 182, 255, 0.24);
    z-index: 2;
}

.brand-watermark img {
    width: 18px;
    height: 18px;
    position: static;
    object-fit: contain;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #fff;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(118, 170, 220, 0.1);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.meta-group.category-meta {
    color: var(--text-main);
    font-weight: 700;
}

.meta-category-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.posts-empty-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(8, 17, 31, 0.86);
    color: var(--text-muted);
    text-align: center;
    font-weight: 700;
}

/* Footer Center Load More Container Block */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.load-more-btn {
    background: rgba(8, 17, 31, 0.9);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(55, 182, 255, 0.34);
}

/* --- SINGLE POST TEMPLATE --- */
.single-post-shell {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 46px 34px 82px;
}

.single-post {
    display: grid;
    gap: 30px;
}

.single-post-hero,
.single-post-aside-card,
.single-post-content,
.single-post-taxonomy,
.single-post-navigation a,
.single-related-posts {
    background:
        linear-gradient(180deg, rgba(12, 22, 39, 0.96), rgba(7, 13, 25, 0.98));
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

.single-post-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: 30px;
    min-height: 520px;
    padding: 12px;
    isolation: isolate;
}

.single-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--single-accent) 34%, transparent), transparent 35%),
        radial-gradient(circle at 82% 20%, rgba(55, 182, 255, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(55, 182, 255, 0.08), rgba(255, 138, 42, 0.05) 44%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.single-post-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 38px;
}

.single-post-back,
.single-post-category,
.single-post-meta span,
.single-post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-post-back,
.single-post-category,
.single-post-tax-group a,
.single-post-navigation a,
.single-related-card {
    color: var(--text-main);
    text-decoration: none;
}

.single-post-back {
    width: fit-content;
    margin-bottom: auto;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: rgba(4, 9, 16, 0.42);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-post-back:hover,
.single-post-tax-group a:hover,
.single-post-navigation a:hover,
.single-related-card:hover strong {
    color: var(--single-accent);
}

.single-post-category {
    width: fit-content;
    margin: 34px 0 18px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--single-accent) 52%, transparent);
    border-radius: 5px;
    background: color-mix(in srgb, var(--single-accent) 14%, transparent);
    color: var(--single-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-post-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #fff;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: clamp(42px, 5.8vw, 88px);
    line-height: 0.92;
    letter-spacing: 0;
}

.single-post-excerpt {
    max-width: 760px;
    margin: 20px 0 0;
    color: #c7d8ec;
    font-size: 18px;
    line-height: 1.7;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.single-post-meta span {
    padding: 9px 11px;
    border: 1px solid rgba(118, 170, 220, 0.14);
    border-radius: 6px;
    background: rgba(3, 8, 15, 0.46);
}

.single-post-meta i {
    color: var(--single-accent);
}

.single-post-hero-media {
    position: relative;
    overflow: hidden;
    min-height: 496px;
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--single-accent) 22%, transparent), transparent 36%),
        #050a12;
    border: 1px solid rgba(118, 170, 220, 0.14);
}

.single-post-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(3, 8, 15, 0.58));
    pointer-events: none;
}

.single-post-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-media-placeholder {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: var(--single-accent);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.single-post-media-placeholder i {
    font-size: 70px;
}

.single-post-main {
    display: grid;
    grid-template-columns: 220px minmax(0, 880px);
    gap: 28px;
    align-items: start;
    justify-content: center;
}

.single-post-aside {
    display: grid;
    gap: 12px;
}

.single-post-aside-card {
    padding: 16px;
}

.single-post-aside-card span,
.single-section-heading span {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.single-post-aside-card strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.single-post-content {
    padding: 42px 48px;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.86;
}

.single-post-content>*+* {
    margin-top: 1.18em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #fff;
    line-height: 1.18;
    margin-top: 1.7em;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0;
}

.single-post-content h2 {
    font-size: 40px;
}

.single-post-content h3 {
    font-size: 30px;
}

.single-post-content p,
.single-post-content li {
    color: #b8c9dd;
}

.single-post-content a {
    color: var(--single-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.single-post-content img,
.single-post-content iframe,
.single-post-content video {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(118, 170, 220, 0.14);
}

.single-post-content blockquote {
    margin-left: 0;
    padding: 24px 26px;
    border: 1px solid rgba(118, 170, 220, 0.14);
    border-left: 4px solid var(--single-accent);
    border-radius: 8px;
    background: rgba(55, 182, 255, 0.07);
    color: var(--text-main);
    font-size: 19px;
}

.single-post-content pre,
.single-post-content code {
    border-radius: 6px;
    background: rgba(3, 8, 15, 0.9);
    color: #d8ecff;
}

.single-post-content pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid rgba(118, 170, 220, 0.14);
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 24px;
}

.single-post-taxonomy {
    display: grid;
    gap: 18px;
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.single-post-tax-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.single-post-tax-group>span {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-post-tax-group a {
    padding: 8px 11px;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    background: rgba(8, 17, 31, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(880px, 100%);
    margin: 0 auto;
}

.single-post-navigation a {
    min-height: 86px;
    padding: 18px 20px;
    color: var(--text-muted);
    font-weight: 800;
    line-height: 1.25;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.single-post-navigation a:hover {
    border-color: color-mix(in srgb, var(--single-accent) 52%, transparent);
    transform: translateY(-2px);
}

.single-post-nav-item--next a {
    justify-content: flex-end;
    text-align: right;
}

.single-section-heading {
    margin-bottom: 18px;
}

.single-section-heading h2 {
    margin: 4px 0 0;
    color: #fff;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 34px;
    letter-spacing: 0;
}

.single-related-posts {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 26px;
}

.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.single-related-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 150px 1fr;
    border: 1px solid rgba(118, 170, 220, 0.14);
    border-radius: 8px;
    background: rgba(6, 11, 20, 0.72);
    transition: transform 180ms ease, border-color 180ms ease;
}

.single-related-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--single-accent) 54%, transparent);
}

.single-related-thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050a12;
    color: var(--single-accent);
    font-size: 28px;
}

.single-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-related-copy {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.single-related-copy strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.single-related-copy small {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
}

/* --- RESPONSIVE STRUCTURAL MEDIA QUERIES --- */
@media (max-width: 1400px) {
    .posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* --- 720p & MEDIUM LAPTOP RESPONSIVE FIX --- */
@media (max-width: 1366px) {
    .dashboard-layout {
        gap: 28px;
    }

    main {
        flex: 1;
        /* Calculate padding-top to align with "Browse Categories" text:
       .sidebar (aside) margin-top: 10px
       .sidebar-header padding-top: 16px
       Total offset from aside.top: 10px + 16px = 26px */
        padding: 5px 0 0;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-banner {
        grid-template-columns: minmax(0, 1.62fr) minmax(138px, 0.4fr) minmax(138px, 0.4fr);
        gap: 6px;
        padding: 6px;
        margin-bottom: 20px;
    }

    .hero-resource-panel {
        gap: 8px;
        padding: 12px 14px;
    }

    .hero-resource-main {
        gap: 12px;
    }

    .hero-logo-frame {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .hero-resource-copy h1 {
        font-size: 18px;
        line-height: 1.04;
        margin-bottom: 3px;
    }

    .hero-resource-copy p {
        max-width: 480px;
        font-size: 10.5px;
        line-height: 1.25;
    }

    .hero-resource-actions {
        gap: 4px;
    }

    .hero-resource-actions a {
        min-height: 28px;
        gap: 5px;
        padding: 0 6px;
        font-size: 8.8px;
        line-height: 1;
    }

    .hero-resource-actions i {
        font-size: 12px;
    }

    .hero-patreon-card {
        gap: 5px;
        padding: 10px;
        align-content: center;
    }

    .hero-patreon-card__label {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .hero-patreon-card h2 {
        font-size: 13.5px;
        line-height: 1;
    }

    .hero-patreon-card p {
        display: none;
    }

    .hero-patreon-card a {
        min-height: 28px;
        padding: 0 9px;
        font-size: 9px;
    }
}

@media (max-width: 1200px) {
    .hero-banner {
        grid-template-columns: minmax(0, 1.35fr) minmax(132px, 0.42fr) minmax(132px, 0.42fr);
    }

    .hero-resource-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-patreon-card {
        min-height: 0;
    }

    .hero-patreon-card p {
        display: none;
    }

    .hero-patreon-card a {
        justify-self: start;
    }
}

@media (max-width: 1100px) {
    .single-post-hero {
        grid-template-columns: 1fr;
    }

    .single-post-hero-media {
        min-height: 390px;
        order: -1;
    }

    .single-post-main {
        grid-template-columns: 1fr;
    }

    .single-post-aside {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-resource-panel {
        grid-column: auto;
    }

    .hero-patreon-card {
        min-height: 82px;
    }

    .hero-patreon-card p {
        display: block;
        font-size: 10.5px;
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        padding: 0 24px 40px;
    }

    aside {
        display: none;
    }

    .mobile-header {
        display: flex;
        padding: 16px 24px;
    }

    main {
        padding: 24px 0 0;
    }

    .hero-banner {
        grid-template-columns: 1fr;
    }

}

/* --- MODERN MOBILE ADJUSTMENTS FIXES --- */
@media (max-width: 680px) {
    .single-post-shell {
        padding: 22px 14px 48px;
    }

    .single-post {
        gap: 18px;
    }

    .single-post-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
        padding: 8px;
    }

    .single-post-hero-copy {
        padding: 20px;
    }

    .single-post-back {
        margin-bottom: 26px;
    }

    .single-post-category {
        margin-top: 0;
    }

    .single-post-hero h1 {
        font-size: 38px;
        line-height: 0.98;
    }

    .single-post-excerpt {
        font-size: 15px;
        line-height: 1.62;
    }

    .single-post-hero-media {
        min-height: 260px;
        order: -1;
    }

    .single-post-meta {
        display: grid;
        gap: 10px;
    }

    .single-post-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .single-post-aside {
        position: static;
        grid-template-columns: 1fr;
    }

    .single-post-content {
        padding: 24px 20px;
        font-size: 16px;
        line-height: 1.72;
    }

    .single-post-content h2 {
        font-size: 25px;
    }

    .single-post-content h3 {
        font-size: 21px;
    }

    .single-post-content ul,
    .single-post-content ol {
        padding-left: 20px;
    }

    .single-post-taxonomy {
        padding: 18px;
    }

    .single-post-navigation {
        grid-template-columns: 1fr;
    }

    .single-post-nav-item--next a {
        justify-content: flex-start;
        text-align: left;
    }

    .single-related-posts {
        padding: 20px;
    }

    .single-related-grid {
        grid-template-columns: 1fr;
    }

    .single-related-card {
        grid-template-rows: 170px 1fr;
    }

    .hero-resource-panel {
        display: none;
    }

    .posts-grid.list-view .card-link {
        display: flex;
    }

    .posts-grid.list-view .card-thumb-area {
        padding-top: 56.25%;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(118, 170, 220, 0.12);
    }

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

    .hero-banner {
        padding: 10px;
        gap: 10px;
    }

    .hero-resource-panel {
        padding: 18px;
    }

    .hero-resource-main {
        align-items: flex-start;
        gap: 14px;
    }

    .hero-logo-frame {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .hero-resource-copy h1 {
        font-size: 21px;
    }

    .hero-resource-copy p {
        font-size: 13px;
    }

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

    .hero-resource-actions a {
        justify-content: flex-start;
        min-height: 40px;
        font-size: 11px;
    }

    .hero-patreon-card {
        padding: 18px;
    }

    /* Filter Area Overhauls */
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 24px;
        border-bottom: none;
    }

    .view-toggle-container {
        display: none !important;
        /* Hides post grid-list switcher widget */
    }

    .filter-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .search-wrapper,
    .custom-dropdown-container {
        flex: none;
        width: 100%;
    }

    .search-input,
    .custom-dropdown-trigger,
    .dashboard-mobile-filter-btn {
        width: 100% !important;
        height: 50px;
        /* Increased height for better visibility and touch targets */
        box-sizing: border-box;
        font-size: 14px;
        border-radius: 10px;
    }

    .search-input,
    .custom-dropdown-trigger {
        background: rgba(18, 31, 54, 0.98);
        /* Solid dark background */
        backdrop-filter: blur(12px);
        border: 1px solid rgba(55, 182, 255, 0.3);
        border-left: 5px solid var(--color-blueprint);
        /* Strong accent border */
        color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Pronounced shadow for depth */
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .search-input:focus {
        border-color: var(--color-blueprint);
        background: rgba(26, 44, 76, 1);
        animation: mobile-focus-glow 2s infinite;
    }

    .search-input {
        padding: 0 14px 0 42px;
        /* Center text safely with standard line height */
    }

    .custom-dropdown-menu {
        transform: translateY(10px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: block !important;
        pointer-events: none;
    }

    .custom-dropdown-container.open .custom-dropdown-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}