@charset "UTF-8";

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {
    --primary: #81a17a;
    --primary-dark: #5e7352;
    --bg-header-start: #81a17a;
    --bg-header-end: #5b6f56;
    --bg-sidebar: #e3e8e3;
    --bg-content: #f2f0eb;
    --text-main: #2c3e2d;
    --text-on-primary: #ffffff;
    --text-muted: #6b7c6b;
    --radius-outer: 12px;
    --radius-inner: 8px;
    --shadow-depth: 0 10px 30px rgba(44, 62, 45, 0.15);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow: hidden !important;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    overflow: hidden;
    cursor: url('../images/cursor-normal.png') 10 10, auto !important;
}

a, button, input[type="submit"], .read-more-btn, .modal-close, .faq-card {
    cursor: url('../images/cursor.png') 10 10, pointer;
}

.controls .dot {
    cursor: url('../images/cursor.png') 10 10, pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #dce3dc;
    background-image: radial-gradient(at 10% 10%, rgba(129, 161, 122, 0.45) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(91, 111, 86, 0.35) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(255, 255, 255, 0.6) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(140, 176, 138, 0.3) 0px, transparent 50%);
    background-size: 120% 120%;
    animation: auroraMove 20s ease infinite alternate;
}

@keyframes auroraMove {

    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }

}

.sims-window {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    max-height: 900px;
    border: 1px solid rgba(129, 161, 122, 0.3);
    border-radius: var(--radius-outer);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s, height 0.3s;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

#modal-body {
    white-space: normal;
    line-height: 1.8;
    color: var(--text);
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modal-content {
    background: #fff;
    width: 900px;
    max-width: 95%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-header-bar {
    background: #667e61;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d5dcd5;
    text-shadow: 0px 1px 2px rgba(142, 75, 87, 0.3);
    flex-shrink: 0;
}

.modal-header-bar h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    padding-right: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#dynamic-modal-img, #modal-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    border: 3px solid #fff;
}

.img-small {
    width: 50%;
    max-height: 250px;
    object-fit: contain;
}

.img-medium {
    width: 80%;
    max-height: 400px;
    object-fit: contain;
}

.img-large {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

#post-modal #dynamic-modal-img,
#post-modal #modal-img {
    display: block !important;
    width: auto;
    max-width: 100%;
    max-height: 450px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    border: 1.5px solid var(--pink);
    box-shadow: 0 8px 25px #ffb6c1;
    animation: imageReveal 0.5s ease-out forwards;
    margin: 0 auto 20px auto !important;
}

#post-modal .img-small {
    max-width: 250px !important;
}

#post-modal .img-medium {
    max-width: 500px !important;
}

#post-modal .modal-inner-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 40px 20px !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    background-color: #FFF5EE;
}

@keyframes fadeIn {

    to {
        opacity: 1;
    }

}

@keyframes popIn {

    to {
        transform: scale(1);
    }

}

.modal-close {
    cursor: url('../images/cursor.png') 10 10, pointer;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.modal-inner-content {
    padding: 30px 45px;
    margin: 0;
    max-height: 50vh;
    align-items: center;
    text-align: center;
    background: #fdfdfd;
    overflow-y: auto;
    display: block;
    flex-direction: column;
    gap: 10px;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.modal-badge {
    background: var(--pink-light);
    color: var(--pink-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-date-text {
    color: #aaa;
    font-weight: 600;
}

.window-header {
    background: linear-gradient(135deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.brand {
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand h1 {
    color: var(--text-on-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 1.45rem;
    text-transform: none;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.plumbob-icon {
    width: 15px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(76, 209, 55, 0.4));
    animation: floatBob 3s ease-in-out infinite;
}

@keyframes floatBob {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }

}

.controls {
    display: flex;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.window-body {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar ul {
    flex: 1;
    list-style: none;
    padding: 0 !important;
    margin-top: 10px !important;
}

.sidebar ul li a {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-inner);
    transition: all 0.2s ease;
}

.nav-link {
    color: var(--text-main);
    font-weight: 700;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.nav-link.active {
    opacity: 1;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--primary-dark);
    border-radius: var(--radius-inner);
}

.sidebar-footer {
    margin-top: auto;
    padding: 25px;
    color: #ddd;
    font-size: 0.85rem;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(129, 161, 122, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-area {
    flex: 1;
    background-color: var(--bg-content) !important;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-shrink: 0;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.status-badge {
    font-size: 0.9rem;
    font-weight: 700;
    background: #e6fffa;
    color: #00b894;
    padding: 8px 16px;
    border-radius: 20px;
}

#faq-container,
#posts-container,
.posts-grid {
    flex: 1;
    overflow-y: auto !important;
    min-height: 0;
    padding-right: 10px;
    scrollbar-gutter: stable;
}

#news-scroll-wrapper {
    flex: 1;
    overflow-y: auto !important;
    min-height: 0;
    scrollbar-gutter: auto;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- NEW --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 20px;
    align-items: stretch;
}

.news-card.pinned {
    grid-column: 1 / -1; 
    padding: 18px 25px;
}

.news-card.pinned .news-img-small {
    height: 120px;
}

.news-card.pinned .news-body p.post-text {
    margin-bottom: 12px !important;
    font-size: 0.9rem !important;
}

.news-card.pinned .news-header-row {
    margin-bottom: 10px !important;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    border-radius: 20px;
    transition: 0.2s ease;
}

.news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-img-small {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

#downloads-content.content-area {
    overflow: hidden !important;
    padding-right: 0 !important;
}

#hubdeck-content.content-area,
#hubflix-content.content-area {
    padding: 0 !important;
    overflow: hidden !important;
}

#downloads-container {
    overflow: visible !important;
    height: auto !important;
    transition: opacity 0.2s ease-in-out;
}

.searching {
    opacity: 0.5;
    pointer-events: none;
}

#downloads-scroll-wrapper {
    flex: 1;
    overflow-y: auto !important;
    min-height: 0;
    margin-right: 25px;
    padding-right: 15px;
}

#downloads-scroll-wrapper::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

#downloads-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--pink) !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    background-clip: content-box !important;
    min-height: 80px !important;
    background-color: var(--pink) !important;
}

#news-scroll-wrapper .posts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 40px;
    overflow: visible !important;
    flex: none !important;
    min-height: auto;
}

#news-scroll-wrapper,
.posts-grid,
#faq-container,
.modal-inner-content {
    overflow-y: auto !important;
    scrollbar-gutter: stable;
    min-height: 0;
    flex: 1;
    padding-right: 10px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e6e2;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(44, 62, 45, 0.04);
    padding: 24px 30px;
    display: flex;
    gap: 20px;
    transition: all 0.2s ease-out;
    align-items: flex-start;
    flex-shrink: 0;
    animation: fadeInPost 0.4s ease-out;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(44, 62, 45, 0.08);
}

.news-card.pinned {
    background: #fdfbf7;
    border: 1px solid #e8dec3;
}

.news-card.pinned::after {
    content: '📌';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
    filter: grayscale(0.2);
    opacity: 0.8;
}

.news-card.pinned h3 {
    color: #8a732b;
}

.news-card.pinned .news-icon {
    color: #a3850a;
    border-color: rgba(212, 175, 55, 0.4);
}

.news-card.urgent {
    background: #fffcfc;
    border: 1px solid #f0d5d5;
}

.news-card.urgent h3 {
    color: #b03024;
}

.news-card.urgent .news-icon {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.4);
}

.news-card.urgent .tag {
    color: #c0392b;
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.news-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(129, 161, 122, 0.4);
    margin-top: 2px;
}

.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f4f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date {
    color: #889988;
    font-weight: 600;
}

.tag {
    color: var(--primary-dark);
    background: transparent;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(129, 161, 122, 0.4);
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.3;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.search-wrapper {
    position: relative;
    max-width: 650px;
    width: 95%;
    margin: 30px auto;
    height: 52px;
    background: rgba(180, 191, 178, 0.15);
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(120, 149, 113, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.search-wrapper:focus-within {
    background: #ffffff;
    border: 2px solid #789571;
    box-shadow: 0 0 0 4px rgba(180, 191, 178, 0.2),
        0 15px 35px rgba(120, 149, 113, 0.25);
    transform: translateY(-3px) scale(1.01);
}

.search-wrapper:focus-within::after {
    color: #789571;
    opacity: 1;
}

.search-wrapper::after {
    content: '🔍';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #b4bfb2;
    pointer-events: none;
    opacity: 0.8;
}

#faq-search {
    flex: 1;
    height: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 60px 0 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text);
}

#faq-search::placeholder {
    color: #b4bfb2;
    opacity: 0.8;
}

#faq-search:focus {
    border-color: #789571; 
    background: #fff;
    box-shadow: 0 4px 15px rgba(180, 191, 178, 0.3); 
}

.faq-card {
    transition: 0.2s;
}

.faq-card:hover {
    border-color: #789571; 
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s;
}

.faq-card.active .faq-answer {
    opacity: 1;
    margin-top: 10px;
}

.faq-card.active .news-icon {
    background: #789571; 
    color: white;
    transform: rotate(180deg);
    transition: 0.3s;
}

.faq-text {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 65px;
    white-space: normal;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    flex-grow: 1;
    min-height: 500px;
    grid-auto-rows: max-content;
    align-content: start;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
}

.post-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-inner);
    overflow: hidden;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: url('../images/cursor.png') 10 10, pointer;
    opacity: 0;
    animation: slideUpFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.post-card:nth-child(1) {
    animation-delay: 0.05s;
}

.post-card:nth-child(2) {
    animation-delay: 0.10s;
}

.post-card:nth-child(3) {
    animation-delay: 0.15s;
}

.post-card:nth-child(4) {
    animation-delay: 0.20s;
}

.post-card:nth-child(5) {
    animation-delay: 0.25s;
}

.post-card:nth-child(6) {
    animation-delay: 0.30s;
}

@keyframes slideUpFade {

    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--pink);
}

.post-thumb {
    height: 170px;
    aspect-ratio: 16 / 9;
    background: #f9f9f9;
    position: relative;
    object-fit: cover;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--pink-dark);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    padding-left: 3px;
}

.post-card:hover .play-icon {
    background: var(--pink);
}

.post-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-category-badge {
    background: var(--pink-light);
    color: var(--pink-dark);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-tag-badge {
    background: #c3e6cb;
    color: #1a7e3d;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: italic;
    position: relative;
    padding-left: 15px;
}

.post-tag-badge::before {
    content: '#';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-style: normal;
    color: #1a7e3d;
}

.post-meta-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.post-meta-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.filter-bar-primary {
    display: flex;
    gap: 15px;
    border-bottom: none !important;
    padding-bottom: 15px !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.filter-bar-secondary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 5px;
    padding-right: 15px;
}

.filter-bar-secondary .filter-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}

.filter-bar-secondary .filter-btn:hover {
    color: var(--pink-dark);
}

.filter-bar-secondary .filter-btn.active {
    color: var(--pink-dark);
    border-bottom: 2px solid var(--pink-dark);
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
}

.filter-btn:hover {
    color: var(--pink-dark);
}

.filter-btn.active {
    color: var(--pink-dark);
    border-bottom: 3px solid var(--pink);
}

.filter-separator {
    color: #ccc;
    margin: 0 5px;
    font-size: 1rem;
    font-weight: 300;
}

#posts-filter-tags,
#dl-secondary-filter {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: -15px !important;
    height: 60px !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    padding: 0 10px !important;
    box-sizing: border-box;
    margin-bottom: 25px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--pink-dark) 0%, transparent 90%) 1;
}

.filter-label-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 15px;
    text-transform: uppercase;
    flex-shrink: 0;
}

#posts-filter-tags .filter-btn,
#dl-secondary-filter .filter-btn {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
    margin: 0 10px 0 0 !important;
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    border-radius: 0 !important;
}

#posts-filter-tags .filter-btn:last-child {
    margin-right: 0 !important;
}

#posts-filter-tags .filter-btn:hover,
#dl-secondary-filter .filter-btn:hover {
    color: var(--pink-dark);
    background: transparent !important;
}

#posts-filter-tags .filter-btn.active,
#dl-secondary-filter .filter-btn.active {
    color: var(--pink-dark);
    border-bottom: 3px solid var(--pink-dark);
    box-shadow: none !important;
    background: transparent !important;
}

.tags-scroll-wrapper {
    flex: 1;
    min-width: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 60px !important;
    padding-top: 60px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.tag-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pink);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-bottom: 3px;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.tag-scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.tag-scroll-btn:hover {
    background: var(--pink-dark);
    transform: translateY(-50%) scale(1.1);
}

.tag-scroll-btn.right {
    right: 5px;
}

.tag-scroll-btn.right:hover {
    background: var(--pink-dark);
    transform: translateY(-50%) scale(1.1);
}

.tag-scroll-btn.left {
    left: 5px;
    right: auto;
}

.tag-scroll-btn.left:hover {
    background: var(--pink-dark);
    transform: translateY(-50%) scale(1.1);
}

#posts-content[style*="display: none"] .tag-scroll-btn {
    opacity: 0 !important;
    pointer-events: none !important;
}

#global-app-footer {
    padding: 20px 0;
    text-align: center;
    background: #e9f0e9;
    color: var(--text-light) !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(129, 161, 122, 0.2);
    margin-top: auto;
}

#global-app-footer strong {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.modal-disclaimer {
    font-size: 0.8rem;
    color: #62785d;
    margin: 25px auto 30px auto;
    padding: 15px 20px;
    background: #b7c2b6;
    border: 1.5px dashed var(--pink);
    border-radius: 12px;
    line-height: 1.5;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 10px rgba(255, 209, 220, 0.2);
    width: 90%;
    max-width: 600px;
    align-self: center;
}

.modal-disclaimer::before {
    content: '⚠️';
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.journal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.journal-img-single {
    width: auto;
    max-width: 80%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.img-caption {
    display: block;
    max-width: 80%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
}

.journal-img-single:hover {
    transform: scale(1.02);
}

.tutorial-image-container {
    margin: 30px auto;
    max-width: 100%;
    text-align: center;
}

.tutorial-image-container img {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-inner);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-image-container.size-small img {
    max-width: 300px;
}

.tutorial-image-container.size-medium img {
    max-width: 450px;
}

.tutorial-image-container.size-large img {
    max-width: 650px;
}

.indent-text {
    margin-left: 40px;
    padding-left: 30px;
    border-left: 3px solid #789571;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.indent-text strong {
    color: var(--pink-dark);
}

.journal-note {
    background-color: var(--pink-light);
    border-left: 4px solid var(--pink-dark);
    padding: 15px;
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.chapter-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pink-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    display: block;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100%;
    text-align: left;
    font-weight: 700;
    line-height: 1.4;
}

.tutorial-step .step-num {
    color: var(--pink);
    margin-right: 5px;
}

.tutorial-image-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tutorial-image-row img {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.tutorial-image-row img:hover {
    transform: scale(1.02);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

@keyframes fadeInPost {

    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes spin {

    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }

}

#theme-toggle,
.theme-btn,
button {
    cursor: url('../images/cursor.png') 10 10, pointer !important;
}

@keyframes screen-shake {

    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }

}

::selection {
    background-color: var(--pink);
    color: var(--text);
}

::-moz-selection {
    background-color: var(--pink);
    color: var(--text);
}

.chaos-mode {
    animation: screen-shake 0.1s infinite !important;
    filter: contrast(1.2) saturate(1.5);
}

.plyr {
    border: none !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

body.dark-mode .plyr {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.plyr video {
    border-radius: inherit;
    object-fit: cover;
}

.plyr--video {
    background: transparent !important;
    border-radius: 15px;
    overflow: hidden;
}

.plyr__video-wrapper {
    border-radius: 15px;
    overflow: hidden;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

body.dark-mode #posts-filter-tags,
body.dark-mode #dl-secondary-filter {
    border-image: linear-gradient(to right, var(--pink) 0%, transparent 90%) 1;
}

.journal-mode .modal-inner-content {
    max-height: 85vh !important;
    display: block !important;
}

.journal-mode #modal-body {
    line-height: 1.6 !important;
    margin-top: 0 !important;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
}

.journal-mode .indent-text,
.journal-mode .tutorial-step,
.journal-mode .chapter-title,
.journal-mode p {
    width: 100%;
    text-align: left;
}

.journal-mode .modal-content {
    height: auto !important;
    max-height: 90vh !important;
}

.journal-mode .video-container {
    width: 95%;
    max-width: 650px;
    margin: 30px auto !important;
    background: transparent !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

.journal-mode .plyr--video {
    background: transparent !important;
    height: auto !important;
    width: 100%;
}

.journal-mode .plyr__video-wrapper {
    background: transparent !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

.journal-mode .plyr video {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.journal-mode .plyr__video-embed iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.inline-arrow {
    display: inline-flex;
    align-items: center;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.inline-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--pink-dark);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#nav-user-zone {
    position: relative;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    margin-bottom: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    cursor: url('../images/cursor.png') 10 10, pointer !important;
    box-shadow: 0 4px 12px rgba(129, 161, 122, 0.3);
}

.nav-user-badge:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(129, 161, 122, 0.4);
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.nav-user-name {
    max-width: 140px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5e4b50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.nav-pfp-tiny {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-notif-dot {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
    z-index: 20;
    pointer-events: auto;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.8);
    animation: pulse-dot 2s infinite;
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: help;
}

.nav-notif-dot::after {
    content: "New notification";
    position: absolute;
    bottom: 150%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-notif-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-dot {

    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }

}

.btn-logout-small {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(129, 161, 122, 0.4);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    cursor: url('../images/cursor.png') 10 10, pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-logout-small:hover {
    background: #fff;
    border-color: #dcb4b4;
    color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.15);
}

#about-content {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
    max-width: 2003px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 60px;
    padding-bottom: 80px;
}

.about-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
}

.about-card {
    background: rgba(var(--card-bg-rgb), 0.5);
    border: 1px solid var(--pink);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.about-card h3 {
    color: var(--pink);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-card p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.about-footer-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 182, 193, 0.1);
    text-align: center;
}

.version-badge {
    background: var(--pink);
    color: #000;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 10px;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    cursor: url('../images/cursor.png') 10 10, auto !important;
}

::-webkit-scrollbar-thumb {
    background: var(--pink-dark) !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    background-clip: content-box !important;
    cursor: url('../images/cursor.png') 10 10, pointer !important;
    transition: all 0.3s ease !important;
    min-height: 40px !important;
}

#downloads-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: var(--pink-dark) !important;
    border: 4px solid transparent !important;
}

#post-modal #modal-body {
    font-weight: 900;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#post-modal #modal-body p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#posts-content .post-card {
    height: 320px;
    display: flex;
    flex-direction: column;
}

#posts-content .post-thumb {
    height: 140px;
    min-height: 140px;
}

#posts-content .post-info {
    padding: 12px 15px;
    overflow: hidden;
}

#posts-content .post-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#posts-content .post-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lab-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 15px !important;
}

.lab-wrapper .modal-content {
    background: var(--white);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

#lab-grid-view {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#lab-grid-view::-webkit-scrollbar {
    width: 10px !important;
}

#lab-grid-view::-webkit-scrollbar-thumb {
    background: var(--pink-dark) !important;
    border-radius: 10px !important;
}

.lab-banner {
    background: #FFF5EE;
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.1);
    flex-shrink: 0;
}

.lab-banner i {
    font-size: 1.2rem;
    color: var(--pink-dark);
}

.lab-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 20px;
}

.lab-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 25px;
    border-radius: var(--radius-inner);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.lab-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink);
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.25);
}

.lab-card-icon {
    width: 50px;
    height: 50px;
    background: var(--pink-light);
    color: var(--pink-dark);
    border-radius: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lab-card:hover .lab-card-icon {
    background: var(--pink);
    color: white;
    transform: rotate(-10deg);
}

.lab-card-info h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 800;
    color: var(--text);
}

.lab-card-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.lab-btn {
    margin-top: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    background: var(--pink-light);
    color: var(--pink-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lab-btn:hover {
    background: var(--pink);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.lab-card.hidden {
    display: none;
}

#lab-active-tool-container {
    background: var(--white);
    border-radius: var(--radius-inner);
    box-shadow: var(--shadow-soft);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.tool-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF5EE;
    margin: -1px -1px 0 -1px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-clip: padding-box;
    position: relative;
    z-index: 2;
}

.lab-wrapper,
.modal-inner-content {
    background: transparent !important;
}

.tool-header h3 {
    margin: 0;
    color: var(--pink-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-tool-back {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: 0.2s;
}

.btn-tool-back:hover {
    border-color: #789571;
    color: #789571;
}

.tool-workspace {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-clip: padding-box;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: relative;
    isolation: isolate;
}

.tool-workspace::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 0 15px 0;
}

.tool-workspace::-webkit-scrollbar {
    width: 8px;
}

.tool-workspace::-webkit-scrollbar-thumb {
    background: var(--pink-dark);
    border-radius: 10px;
}

.lab-wrapper .tool-workspace {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-clip: padding-box;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    mask-image: radial-gradient(circle at center, white 100%, white 100%);
    overflow-x: hidden;
}

.upload-zone {
    width: 100%;
    max-width: 500px;
    border: 2px dashed #e0e0e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: 0.3s;
    background: #fafafa;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--pink);
    background: var(--pink-light);
}

.upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.upload-zone:hover .upload-icon {
    color: var(--pink);
}

.console-output {
    background: #1e1e1e;
    color: #00ff88;
    font-family: 'Consolas', monospace;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    font-size: 0.85rem;
    height: 150px;
    overflow-y: auto;
    display: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.lab-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.lab-filter-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 20px;
    transition: 0.2s;
}

.lab-filter-btn:hover, .lab-filter-btn.active {
    background: var(--pink-light);
    color: var(--pink-dark);
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.offspring-result-wrapper {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border: 2px solid var(--pink);
    border-radius: var(--radius-outer);
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.4);
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out;
    text-align: center;
}

.os-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background: radial-gradient(circle, #5dade2 0%, #2874a6 100%);
}

.dna-slots-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-outer);
    border: 1px solid var(--pink-soft);
    margin: 20px 0;
}

.dna-slot {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-inner);
    border: 2px dashed var(--pink-soft);
    transition: all 0.3s ease;
    max-width: 250px;
}

.dna-slot:hover {
    border-color: var(--pink);
    transform: translateY(-5px);
}

.guide-text {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--pink-light);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--pink);
}

.folder-path {
    font-family: monospace;
    background: #eee;
    padding: 2px 5px;
    font-size: 0.75rem;
}

.footer-motto {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.footer-version {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

@media (max-width: 850px) {
    html, body { height: 100dvh; overflow: hidden; }
    .sims-window { width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: none; }
    .window-header { padding: 0 15px; height: 60px; flex-shrink: 0; }
    .brand h1 { font-size: 1.2rem; }
    .window-body { flex-direction: column; }

    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(129, 161, 122, 0.3); padding: 5px 0; z-index: 10; flex-shrink: 0; }
    .sidebar ul { display: flex; flex-direction: row; margin-top: 0 !important; padding: 0 10px !important; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .sidebar ul li a { padding: 8px 12px; font-size: 0.85rem; white-space: nowrap; }
    .sidebar-footer { display: none; }

    .content-area { padding: 15px; }
    .content-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
    .content-header h2 { font-size: 1.5rem; }

    .modal-content { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; transform: scale(1); animation: none; }
    .modal-inner-content { padding: 15px; max-height: calc(100dvh - 60px); }
    .modal-header-bar { border-radius: 0; }
    #dynamic-modal-img, #modal-img { max-height: 250px; width: 100%; object-fit: contain; }

    .news-grid, .posts-grid, .lab-grid { grid-template-columns: 1fr; gap: 15px; }
    
    #press-reader-grid { grid-template-columns: 1fr !important; }

    .news-card { flex-direction: column; padding: 15px; gap: 10px; }
    .news-card.pinned .news-img-small { height: auto; aspect-ratio: 16/9; }
    .news-header-row { align-items: flex-start !important; }
    .news-icon { width: 35px; height: 35px; font-size: 1.2rem; }

    .search-wrapper { margin: 10px auto; height: 45px; }
    .filter-bar, .filter-bar-primary, .filter-bar-secondary { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

    #posts-content > div > div[style*="display: flex"]:not(.reader-article-container *) { flex-direction: column !important; gap: 15px !important; }
    #posts-content > div > div > div[style*="width: 250px"] { width: 100% !important; }
    #portal-main-area { padding: 15px !important; min-height: auto !important; }
    
    .reader-article-title { font-size: 1.8rem !important; }
    .ql-editor { padding: 0 !important; font-size: 1rem !important; }
    
    .publisher-setup-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .publisher-modal-content { padding: 15px !important; }

    .settings-card { flex-direction: column !important; }
    .settings-tabs { flex-direction: row !important; overflow-x: auto !important; width: 100% !important; border-right: none !important; border-bottom: 1px solid #eee !important; padding: 10px !important; }
    .settings-body { padding: 15px !important; }
    .admin-header-flex { flex-direction: column !important; align-items: stretch !important; gap: 10px; }
    .auth-card { padding: 15px !important; }

    #modal-body, .news-content p, .post-excerpt { font-size: 0.95rem; line-height: 1.5; }
    .dna-slots-container { flex-direction: column; align-items: center; gap: 15px; }
    .dna-slot { width: 100%; max-width: 100%; }
    .tool-workspace { padding: 15px; }
    .upload-zone { padding: 20px; }
    .admin-table-wrapper { overflow-x: auto; }
}