/* Header (Dark Glass) */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 11, 25, 0.7); /* Ethereal space glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--psyguild-border-dark);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Site Logo (Branding) */
.psyguild-site-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 0; /* Không bo góc — giữ tính năng transparent */
    image-rendering: -webkit-optimize-contrast;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.psyguild-site-logo:hover {
    opacity: 0.85;
    filter: brightness(1.05);
}

/* Header Navigation (WordPress Menu) */
.main-navigation ul,
.main-navigation div > ul,
.site-header nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}
.main-navigation li {
    position: relative;
}
.main-navigation a {
    color: var(--psyguild-text-light-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}
.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--psyguild-primary-cyan);
    text-shadow: 0 0 8px rgba(61, 224, 255, 0.4);
}

/* Sub-menu (Dropdowns) */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--psyguild-dark-elevated);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--psyguild-border-dark);
    border-radius: var(--psyguild-radius-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--psyguild-shadow-dark-card);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}
.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation .sub-menu li {
    width: 100%;
}
.main-navigation .sub-menu a {
    padding: 10px 20px;
    color: var(--psyguild-text-light);
}
.main-navigation .sub-menu a:hover {
    background: rgba(61, 224, 255, 0.08);
    color: var(--psyguild-primary-cyan);
}

/* Glass Card V2 — Archive, Footer, Search sử dụng */
.glass-card-v2 {
    background: rgba(7, 11, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--psyguild-radius-xl, 24px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.glass-card-v2:hover {
    border-color: rgba(110, 239, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(61, 224, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glass Input — inside glass cards */
.glass-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    transition: border-color 0.25s ease, background 0.25s ease !important;
}
.glass-input:focus {
    outline: none !important;
    border-color: rgba(0, 242, 254, 0.4) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Global Card (Ultra Premium Dark Glass) */
.psyguild-card, .psyguild-card-dark {
    background: var(--psyguild-dark-elevated);
    border: 1px solid var(--psyguild-border-dark);
    border-radius: var(--psyguild-radius-md);
    padding: var(--space-card);
    backdrop-filter: blur(24px); /* Heavy blur for ethereal feel */
    color: var(--psyguild-text-light);
    box-shadow: var(--psyguild-shadow-dark-card);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, background 0.4s ease;
}
.psyguild-card:hover, .psyguild-card-dark:hover {
    transform: translateY(-6px); /* Stronger lift */
    background: rgba(16, 26, 48, 0.5); /* Lighly brush up background on hover */
    box-shadow: var(--psyguild-shadow-dark-card-hover);
    border-color: rgba(61, 224, 255, 0.25);
}

/* Buttons */
.psyguild-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--psyguild-radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.psyguild-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(61, 224, 255, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Primary Button (Gradient) */
.psyguild-btn-primary {
    background: var(--psyguild-gradient-brand);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--psyguild-shadow-btn);
}
.psyguild-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--psyguild-shadow-btn-hover);
    border-color: rgba(255,255,255,0.2);
}

/* Outline/Secondary Button */
.psyguild-btn-outline, .psyguild-btn-outline-dark {
    background: transparent;
    color: var(--psyguild-text-light);
    border: 1px solid rgba(61, 224, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.psyguild-btn-outline:hover, .psyguild-btn-outline-dark:hover {
    background: rgba(61, 224, 255, 0.08);
    border-color: var(--psyguild-primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 224, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Post Card (V2.1 - Editorial & Premium) */
.psyguild-post-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(16, 26, 48, 0.25);
    border: 1px solid rgba(110, 239, 255, 0.1);
    border-radius: var(--psyguild-radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.psyguild-post-card:hover {
    transform: translateY(-4px);
    background: rgba(16, 26, 48, 0.45);
    border-color: rgba(110, 239, 255, 0.25);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 16px rgba(61,224,255,0.04);
}
.psyguild-post-card .post-thumbnail {
    margin: 16px 16px 0 16px;
    height: 220px;
    background: linear-gradient(135deg, rgba(61, 224, 255, 0.05) 0%, rgba(100, 74, 252, 0.05) 100%);
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--psyguild-primary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.psyguild-post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}
.psyguild-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}
.psyguild-post-card .post-content {
    padding: var(--space-card);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.psyguild-post-card .post-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--psyguild-primary-cyan);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0.8;
}
.psyguild-post-card .post-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
}
.psyguild-post-card .post-title a {
    color: #fff;
    transition: color 0.3s ease;
}
.psyguild-post-card:hover .post-title a {
    color: var(--psyguild-primary-cyan);
}
.psyguild-post-card .post-excerpt {
    color: var(--psyguild-text-light-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Responsive Layout */
.psyguild-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-element);
    align-items: stretch;
}
@media (max-width: 991px) {
    .psyguild-hero-layout {
        grid-template-columns: 1fr;
    }
}



/* Category Component with Ticker */
.psy-area-card {
    text-align: left;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.psy-post-strip {
    width: 100%;
    overflow: hidden;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--psyguild-border-dark);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.psy-post-strip-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: psyTicker 28s linear infinite;
}
.psy-area-card:hover .psy-post-strip-track {
    animation-play-state: paused;
}
.psy-post-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 260px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.psy-post-mini:hover {
    background: rgba(61, 224, 255, 0.05);
    border-color: rgba(61, 224, 255, 0.2);
    transform: translateY(-2px);
}
.psy-post-mini-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(61, 224, 255, 0.1);
    flex-shrink: 0;
    overflow: hidden;
}
.psy-post-mini-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.psy-post-mini-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--psyguild-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.psy-post-mini-meta {
    font-size: 0.75rem;
    color: var(--psyguild-text-light-muted);
}

@keyframes psyTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- The Threshold (Sect Door Page Transition) --- */
.psyguild-threshold-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    overflow: hidden;
}

/* 2 Panels that open to the sides */
.threshold-panel {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: rgba(6, 16, 31, 0.95);
    background-image: var(--psyguild-space-grid);
    background-size: var(--psyguild-grid-size);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}
.threshold-panel.panel-left {
    left: 0;
    border-right: 1px solid rgba(61, 224, 255, 0.15);
    transform-origin: left center;
}
.threshold-panel.panel-right {
    right: 0;
    border-left: 1px solid rgba(61, 224, 255, 0.15);
    transform-origin: right center;
}

/* The vertical crack/beam of light */
.threshold-crack {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--psyguild-primary-cyan), var(--psyguild-secondary-violet), transparent);
    box-shadow: 0 0 20px 2px rgba(61, 224, 255, 0.8), 0 0 60px 10px rgba(100, 74, 252, 0.5);
    z-index: 2;
    opacity: 0.8;
    transition: width 0.8s ease, opacity 0.8s ease;
    animation: crackPulse 2s infinite alternate ease-in-out;
}

/* The mist coming from the crack */
.threshold-mist {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(61, 224, 255, 0.15) 0%, transparent 60%);
    z-index: 3;
    animation: rotateMist 15s linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Brand Text */
.psyguild-threshold-loader .loader-brand {
    font-size: var(--font-h1);
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(61, 224, 255, 0.8);
    position: relative;
    z-index: 4;
    letter-spacing: 4px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* State: Preparing to open (Mist glowing) */
.psyguild-threshold-loader.glowing .threshold-mist {
    opacity: 1;
}
.psyguild-threshold-loader.glowing .loader-brand {
    opacity: 1;
    transform: scale(1.05);
}

/* State: Door is opening */
.psyguild-threshold-loader.fade-out .threshold-panel.panel-left {
    transform: translateX(-100%);
}
.psyguild-threshold-loader.fade-out .threshold-panel.panel-right {
    transform: translateX(100%);
}
.psyguild-threshold-loader.fade-out .threshold-crack {
    width: 100vw;
    opacity: 0;
    filter: blur(20px);
}
.psyguild-threshold-loader.fade-out .threshold-mist,
.psyguild-threshold-loader.fade-out .loader-brand {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.2);
}
.psyguild-threshold-loader.fade-out {
    pointer-events: none;
    transition: visibility 0s linear 0.8s;
    visibility: hidden;
}

/* State: Page entering (Depth scale effect on main content) */
body.page-entering #primary {
    animation: thresholdEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes thresholdEnter {
    0% { transform: scale(0.95) translateY(20px); filter: blur(5px); opacity: 0; }
    100% { transform: scale(1) translateY(0); filter: blur(0); opacity: 1; }
}

@keyframes crackPulse {
    0% { opacity: 0.5; filter: drop-shadow(0 0 10px rgba(61, 224, 255, 0.3)); }
    100% { opacity: 1; filter: drop-shadow(0 0 30px rgba(61, 224, 255, 0.8)); }
}

@keyframes rotateMist {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* ── Single Post: Outer Shell ─────────────────────────────── */
.psyguild-single-shell {
    background: var(--psyguild-dark-base);
    min-height: 100vh;
}
.psyguild-single-article {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

/* ── CTA Section at End of Article ───────────────────────── */
.psyguild-cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 48px 32px;
    background: rgba(11, 24, 48, 0.6);
    border: 1px solid rgba(61, 224, 255, 0.1);
    border-radius: var(--psyguild-radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.psyguild-cta-section .cta-title {
    font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    color: var(--psyguild-text-light);
    margin-bottom: 12px;
    font-weight: 600;
}
.psyguild-cta-section .cta-desc {
    color: var(--psyguild-text-light-muted);
    margin-bottom: 28px;
    font-size: 1rem;
}
.psyguild-cta-section .psyguild-btn-primary {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Dynamic Form */
.psy-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--psyguild-radius-sm);
    border: 1px solid var(--psyguild-border-dark);
    background: rgba(255, 255, 255, 0.05);
    color: var(--psyguild-text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.psy-input:focus {
    outline: none;
    border-color: var(--psyguild-primary-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(61, 224, 255, 0.1);
}
.psy-input::placeholder {
    color: var(--psyguild-text-light-muted);
}
select.psy-input option {
    background: var(--psyguild-dark-base);
    color: var(--psyguild-text-light);
}
.psy-form-message.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}
.psy-form-message.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

/* ── Single Blog: Dark Shell + Cool Paper Reading Surface ─── */

/* Container */
.psyguild-single-container {
    max-width: 1000px;
}

/* Article Shell — wraps cover + reading zone */
.psyguild-article-shell {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 80px;
}


/* Cover Zone */
.psyguild-cover-zone {
    position: relative;
    background: var(--psyguild-dark-surface);
    padding-top: clamp(40px, 6vw, 80px);
}
.psyguild-cover-inner {
    text-align: center;
    padding: 0 clamp(24px, 6vw, 60px) clamp(32px, 4vw, 56px);
}
.psyguild-post-badge {
    margin-bottom: 20px;
}
.psyguild-post-badge a {
    display: inline-block;
    background: rgba(61, 224, 255, 0.08);
    color: var(--psyguild-primary-cyan);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(61, 224, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}
.psyguild-post-badge a:hover {
    background: rgba(61, 224, 255, 0.18);
    text-shadow: none;
}
.psyguild-cover-zone .entry-title {
    font-size: var(--font-h1);
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    font-weight: 700;
    text-align: center;
}
.psyguild-cover-zone .entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--psyguild-text-light-muted);
    font-size: 0.9rem;
}
.psyguild-cover-zone .entry-meta svg {
    opacity: 0.6;
    flex-shrink: 0;
}
.psyguild-cover-zone .sep {
    margin: 0 4px;
    opacity: 0.3;
}
/* Cover image — full bleed */
.psyguild-cover-image {
    width: 100%;
    line-height: 0;
    margin-top: 0;
}
.psyguild-cover-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

/* Reading Zone (Cool Paper) */
.psyguild-reading-zone {
    background: #f4f8fc;
    position: relative;
    z-index: 2;
    margin-top: clamp(-48px, -5vw, -24px); /* overlap nhẹ lên cover */
    border-radius: var(--psyguild-radius-lg) var(--psyguild-radius-lg) 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.85);
    padding: clamp(36px, 5vw, 80px) clamp(24px, 7vw, 100px);
}

/* Typography in Reading Zone */
.psyguild-reading-zone .entry-content {
    max-width: 840px;
    margin: 0 auto;
    color: #162132;
    font-size: 1.15rem;
    line-height: 1.95;
    font-family: 'Inter', system-ui, sans-serif;
}

.psyguild-reading-zone .entry-content p,
.psyguild-reading-zone .entry-content li {
    margin-bottom: 1.75em;
    color: #202938;
}

.psyguild-reading-zone .entry-content h1,
.psyguild-reading-zone .entry-content h2,
.psyguild-reading-zone .entry-content h3,
.psyguild-reading-zone .entry-content h4,
.psyguild-reading-zone .entry-content h5,
.psyguild-reading-zone .entry-content h6 {
    color: #0b111e;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2em;
    margin-bottom: 1em;
}

.psyguild-reading-zone .entry-content h2 {
    font-size: var(--font-h2);
    margin-top: 2.2em;
    margin-bottom: 1.2em;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    padding-bottom: 12px;
}

.psyguild-reading-zone .entry-content h3 {
    font-size: var(--font-h3);
}

/* Links */
.psyguild-reading-zone .entry-content a {
    color: var(--psyguild-primary-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 123, 250, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}
.psyguild-reading-zone .entry-content a:hover {
    color: var(--psyguild-primary-cyan);
    border-bottom-color: var(--psyguild-primary-cyan);
}

/* Blockquote */
.psyguild-reading-zone .entry-content blockquote {
    margin: 48px auto;
    padding: 32px 40px;
    max-width: 90%;
    text-align: center;
    color: #1b2430;
    border: none;
    border-radius: 20px;
    background: #eef4fa;
    border: 1px solid rgba(62, 123, 250, 0.1);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.5);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.7;
    position: relative;
}
.psyguild-reading-zone .entry-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(62, 123, 250, 0.15);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

/* Code blocks và Pre */
.psyguild-reading-zone .entry-content pre {
    background: #1a2333;
    color: #e2f0ff;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 32px 0;
    border: 1px solid rgba(61, 224, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.psyguild-reading-zone .entry-content code {
    background: rgba(61, 224, 255, 0.08);
    color: var(--psyguild-primary-cyan);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: 'Roboto Mono', 'Courier New', monospace;
}
.psyguild-reading-zone .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Table */
.psyguild-reading-zone .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.psyguild-reading-zone .entry-content th {
    background: #1a2d4a;
    color: var(--psyguild-primary-cyan);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(61, 224, 255, 0.2);
}
.psyguild-reading-zone .entry-content td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-reading);
    background: #fff;
}
.psyguild-reading-zone .entry-content tr:nth-child(even) td {
    background: #f8fbff;
}
.psyguild-reading-zone .entry-content tr:last-child td {
    border-bottom: none;
}

/* Images inside content */
.psyguild-reading-zone .entry-content img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 40px 0;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.psyguild-reading-zone .entry-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.psyguild-reading-zone .tags-links {
    color: #617085;
    font-size: 0.95rem;
}
.psyguild-reading-zone .tags-links a {
    color: #3e7bfa;
    text-decoration: none;
    margin-right: 8px;
}

/* Responsive — Single Post */
@media (max-width: 768px) {
    .psyguild-reading-zone {
        padding: 40px 20px;
        margin-top: -24px;
    }
    .psyguild-cover-inner {
        padding: 0 20px 28px;
    }
    .psyguild-cover-zone .entry-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    .psyguild-reading-zone .entry-content blockquote {
        max-width: 100%;
        padding: 24px 20px;
        font-size: 1.1rem;
    }
    .psyguild-cover-image img {
        max-height: 280px;
    }
}

/* ── Related Posts Section ─────────────────────────────────────────────── */
.psyguild-related-posts {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid rgba(110, 239, 255, 0.08);
}
.psyguild-related-title {
    font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
    color: var(--psyguild-text-light);
    text-align: center;
    margin-bottom: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
/* Auto-fill: 3 cột desktop lớn, 2 cột tablet, 1 cột mobile */
.psyguild-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 640px) {
    .psyguild-related-grid { grid-template-columns: 1fr; }
}


/* Paper Card — dùng trong Archive/Blog/Search */
.psyguild-paper-card {
    /* Dark glass style đồng bộ với archive card */
    background: rgba(16, 26, 48, 0.5);
    border: 1px solid rgba(110, 239, 255, 0.1);
    border-radius: var(--psyguild-radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.psyguild-paper-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(61, 224, 255, 0.08);
    border-color: rgba(61, 224, 255, 0.25);
    background: rgba(16, 26, 48, 0.65);
}

.psyguild-paper-card .post-thumbnail {
    margin: 16px 16px 0 16px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
.psyguild-paper-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.psyguild-paper-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.psyguild-paper-card .post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.psyguild-paper-card .post-meta {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--psyguild-primary-cyan);
    margin-bottom: 12px;
    opacity: 0.8;
}

.psyguild-paper-card .post-title {
    margin: 0 0 12px 0;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    line-height: 1.45;
}
.psyguild-paper-card .post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.psyguild-paper-card:hover .post-title a {
    color: var(--psyguild-primary-cyan);
}

.psyguild-paper-card .post-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Stagger for Paper Cards */
@media (min-width: 768px) {
    .psyguild-container .psyguild-paper-card:nth-child(even) {
        transform: translateY(24px);
    }
    .psyguild-container .psyguild-paper-card:nth-child(even):hover {
        transform: translateY(16px);
    }
}

/* ── Hamburger Button ──────────────────────────────────────────────── */
.psyguild-hamburger {
    display: none; /* Desktop: ẩn */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(110, 239, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.psyguild-hamburger:hover {
    background: rgba(61, 224, 255, 0.08);
    border-color: rgba(110, 239, 255, 0.4);
}
.psyguild-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--psyguild-text-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.psyguild-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.psyguild-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.psyguild-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav Overlay ─────────────────────────────────────────────── */
.psy-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 31, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.psy-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav styles moved to mobile.css */

/* ── Archive Page ───────────────────────────────────────────────────── */
.psyguild-archive-shell {
    background: rgba(10, 16, 30, 0.6);
    border-bottom: 1px solid rgba(110, 239, 255, 0.08);
    padding: clamp(40px, 6vw, 80px) 0;
    margin-bottom: clamp(40px, 5vw, 64px);
    text-align: center;
}
.psyguild-archive-shell .archive-title {
    font-size: var(--font-h1);
    color: #fff;
    margin-bottom: 12px;
}
.psyguild-archive-shell .archive-description {
    color: var(--psyguild-text-light-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Archive Grid: 2 cột desktop, 1 cột mobile */
.psyguild-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-card);
}
@media (max-width: 640px) {
    .psyguild-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.psyguild-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.psyguild-pagination .page-numbers a,
.psyguild-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(110, 239, 255, 0.1);
    color: var(--psyguild-text-light-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.psyguild-pagination .page-numbers a:hover {
    background: rgba(61, 224, 255, 0.1);
    border-color: rgba(61, 224, 255, 0.3);
    color: var(--psyguild-primary-cyan);
}
.psyguild-pagination .page-numbers.current {
    background: var(--psyguild-gradient-brand);
    border-color: transparent;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   PSY DESIGN SYSTEM — Class Standards (replacing inline styles)
   ══════════════════════════════════════════════════════════════════ */

/* ── Section Layout ──────────────────────────────────────────────── */
.psy-section {
    position: relative;
    overflow: hidden;
}
.psy-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.psy-section-header-left { flex: 1; min-width: 0; }
.psy-section-eyebrow {
    display: inline-block;
    color: var(--psyguild-primary-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.psy-section-title {
    font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.psy-section-desc {
    color: var(--psyguild-text-light-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}
.psy-section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Badge ───────────────────────────────────────────────────────── */
.psy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(61, 224, 255, 0.08);
    color: var(--psyguild-primary-cyan);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(61, 224, 255, 0.2);
    margin-bottom: 12px;
    white-space: nowrap;
}
.psy-badge-violet {
    background: rgba(100, 74, 252, 0.1);
    color: var(--psyguild-secondary-violet);
    border-color: rgba(100, 74, 252, 0.25);
}

/* ── Chips / Route Chips ─────────────────────────────────────────── */
.psy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--psyguild-text-light);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}
.psy-chip:hover {
    background: rgba(61, 224, 255, 0.08);
    border-color: rgba(61, 224, 255, 0.3);
    color: var(--psyguild-primary-cyan);
    transform: translateY(-2px);
}
.psy-route-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--psyguild-text-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.psy-route-chip:hover {
    background: rgba(61, 224, 255, 0.08);
    border-color: rgba(61, 224, 255, 0.25);
    color: var(--psyguild-primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.psy-route-chip .chip-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(61, 224, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--psyguild-primary-cyan);
    flex-shrink: 0;
}

/* ── Grid System ─────────────────────────────────────────────────── */
.psy-grid {
    display: grid;
    gap: var(--space-card);
}
.psy-grid-2 { grid-template-columns: repeat(2, 1fr); }
.psy-grid-3 { grid-template-columns: repeat(3, 1fr); }
.psy-grid-4 { grid-template-columns: repeat(4, 1fr); }
.psy-grid-split { grid-template-columns: 1.2fr 0.8fr; }
.psy-grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.psy-flex-wrap { display: flex; flex-wrap: wrap; gap: var(--space-card); }

@media (max-width: 991px) {
    .psy-grid-3, .psy-grid-4, .psy-grid-split { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .psy-grid-2, .psy-grid-3, .psy-grid-4, .psy-grid-split { grid-template-columns: 1fr; }
}

/* ── Card Variants ───────────────────────────────────────────────── */
.psy-card-3d {
    position: relative;
    background: var(--psyguild-dark-elevated);
    border: 1px solid var(--psyguild-border-dark);
    border-radius: var(--psyguild-radius-md);
    overflow: hidden;
    transition:
        transform   0.45s cubic-bezier(0.22,1,0.36,1),
        box-shadow  0.45s cubic-bezier(0.22,1,0.36,1),
        border-color 0.3s ease;
}
.psy-card-3d:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(61,224,255,0.06);
    border-color: rgba(61,224,255,0.2);
}
.psy-card-glass {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--psyguild-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.psy-card-gradient {
    background: linear-gradient(135deg, rgba(61,224,255,0.06) 0%, rgba(100,74,252,0.06) 100%);
    border: 1px solid rgba(110,239,255,0.12);
    border-radius: var(--psyguild-radius-md);
}

/* ── Style Modifiers ─────────────────────────────────────────────── */
.is-style-glass {
    background: rgba(255,255,255,0.04) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}
.is-style-glass-3d {
    background: rgba(16,26,48,0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(110,239,255,0.12) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.is-style-gradient-border {
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
    background-image: linear-gradient(var(--psyguild-dark-elevated), var(--psyguild-dark-elevated)),
                      var(--psyguild-gradient-brand) !important;
    background-origin: border-box !important;
}
.is-style-minimal {
    background: transparent !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: none !important;
}
.is-style-dark-card {
    background: rgba(6,11,25,0.6) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

/* ── Block Wrapper Classes ───────────────────────────────────────── */
.psy-block { position: relative; }
.psy-block-hero { }
.psy-block-services { }
.psy-block-community { }
.psy-block-404 { }

/* ── Hero Block Classes ───────────────────────────────────────── */
.psyguild-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3.5vw, 44px);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.psyguild-hero-title {
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3.2rem);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}
.psyguild-hero-desc {
    font-size: clamp(1rem, 1.5vw + 0.2rem, 1.15rem);
    color: var(--psyguild-text-light-muted);
    margin-bottom: 32px;
    max-width: 90%;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}
.psyguild-hero-badge {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* ── Services Block Classes ──────────────────────────────────────── */
.psyguild-services-inner {
    border-radius: var(--psyguild-radius-lg);
    padding: clamp(24px, 3.5vw, 44px);
}
.psyguild-services-layout {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}
.psyguild-services-content { flex: 1; min-width: 260px; }
.psyguild-services-features { flex: 1; min-width: 220px; }
.psy-bullet-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.psy-bullet-grid li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.psy-bullet-check {
    color: var(--psyguild-primary-cyan);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}
@media (max-width: 640px) {
    .psy-bullet-grid { grid-template-columns: 1fr; }
}

/* ── Community Block Classes ─────────────────────────────────────── */
.psyguild-community-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 52px);
    text-align: center;
    border-radius: var(--psyguild-radius-lg);
}
.psyguild-community-inner .psy-community-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}
.psyguild-community-inner .psy-community-desc {
    color: var(--psyguild-text-light-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.psy-community-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.psy-community-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .psy-community-ctas { flex-direction: column; align-items: center; }
    .psy-community-ctas .psyguild-btn { width: 100%; justify-content: center; }
}

/* ── Mission Icon Box ────────────────────────────────────────────── */
.psy-icon-box {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
    flex-shrink: 0;
}
.psy-icon-box-cyan {
    background: rgba(61, 224, 255, 0.12);
    color: var(--psyguild-primary-cyan);
}
.psy-icon-box-violet {
    background: rgba(100, 74, 252, 0.12);
    color: var(--psyguild-secondary-violet);
}
.psyguild-card:hover .psy-icon-box,
.psyguild-card-dark:hover .psy-icon-box {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 224, 255, 0.2);
}

/* ── Social Float Block (dời từ PHP template) ────────────────────── */
.psyguild-social-float {
    position: fixed;
    right: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.psyguild-social-float.is-position-left {
    right: auto;
    left: 20px;
}
.psyguild-social-float.is-position-bottom {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    flex-direction: row;
    padding: 10px 20px;
    background: rgba(10,18,34,0.95);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--psyguild-border-dark);
    border-bottom: none;
}
.psy-social-item {
    display: flex;
    align-items: center;
    background: rgba(6, 11, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.psy-social-item:hover {
    background: rgba(61, 224, 255, 0.1);
    border-color: rgba(61, 224, 255, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.is-position-bottom .psy-social-item:hover {
    transform: translateY(-3px);
}
.psy-social-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--psyguild-primary-cyan);
    flex-shrink: 0;
}
.psy-social-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    font-size: 0.88rem;
    font-weight: 500;
}
.psy-social-item:hover .psy-social-text {
    max-width: 100px;
    opacity: 1;
    padding: 0 10px 0 4px;
}
@media (max-width: 768px) {
    .psyguild-social-float.hide-on-mobile { display: none !important; }
}

/* ── Sidebar Post Card (casual-posts) ────────────────────────────── */
.psy-sidebar-post {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--psyguild-radius-sm);
    background: var(--psyguild-dark-elevated);
    border: 1px solid var(--psyguild-border-dark);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.psy-sidebar-post:hover {
    border-color: rgba(61,224,255,0.2);
    background: rgba(16,26,48,0.5);
    transform: translateX(4px);
}
.psy-sidebar-thumb {
    width: 88px; height: 88px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(61,224,255,0.05);
}
.psy-sidebar-thumb img { width:100%; height:100%; object-fit:cover; }
.psy-sidebar-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.psy-sidebar-date { font-size: 0.75rem; color: var(--psyguild-text-light-muted); }
.psy-sidebar-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--psyguild-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.psy-sidebar-post:hover .psy-sidebar-title { color: var(--psyguild-primary-cyan); }

/* ── Section Visibility ──────────────────────────────────────────── */
.psy-hide-desktop  { display: none !important; }
.psy-hide-tablet   { }
.psy-hide-mobile   { }
@media (max-width: 991px) {
    .psy-hide-tablet { display: none !important; }
}
@media (max-width: 640px) {
    .psy-hide-mobile { display: none !important; }
    .psy-show-mobile-only { display: block !important; }
}
@media (min-width: 641px) {
    .psy-show-mobile-only { display: none !important; }
}

/* ── Lazy Loading System ─────────────────────────────────────────── */
.psy-lazy {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}
.psy-lazy.is-lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}
.psy-lazy-placeholder {
    border-radius: var(--psyguild-radius-md);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 100%
    );
    background-size: 200% 100%;
    animation: psySkeleton 1.6s ease-in-out infinite;
    min-height: 180px;
}
@keyframes psySkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .psy-lazy,
    .psy-lazy-placeholder {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── 404 Page Classes ────────────────────────────────────────────── */
.psyguild-404 {
    padding: clamp(48px, 7vw, 96px) 0;
}
/* Ambient glow decorative element trong hero 404 */
.psyguild-404-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 90vw);
    height: min(500px, 90vw);
    background: radial-gradient(circle,
        rgba(61,224,255,0.1)  0%,
        rgba(100,74,252,0.1) 40%,
        transparent          70%
    );
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}
.psyguild-404-hero {
    text-align: center;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
    position: relative;
    overflow: hidden;
    border-radius: var(--psyguild-radius-xl);
    margin-bottom: clamp(40px, 5vw, 64px);
}
.psyguild-404-code {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(61,224,255,0.7) 0%, #fff 40%, rgba(100,74,252,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 2;
}
.psyguild-404-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.psyguild-404-desc {
    color: var(--psyguild-text-light-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 2;
}
.psyguild-404-search {
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 2;
}
.psyguild-404-search .search-form { display: flex; gap: 10px; }
.psyguild-404-search .search-field {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--psyguild-radius-sm);
    color: #fff;
    padding: 12px 18px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.psyguild-404-search .search-field:focus {
    border-color: rgba(61,224,255,0.4);
    background: rgba(255,255,255,0.09);
}
.psyguild-404-search .search-field::placeholder { color: var(--psyguild-text-light-muted); }
.psyguild-404-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.psyguild-404-routes {
    margin-bottom: clamp(36px, 5vw, 56px);
}
.psyguild-404-routes-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.psyguild-404-routes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.psyguild-404-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}
.psyguild-404-latest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}
.psyguild-404-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.psy-cat-chip {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--psyguild-text-light);
    text-decoration: none;
    transition: all 0.25s ease;
}
.psy-cat-chip:hover {
    background: rgba(61,224,255,0.08);
    border-color: rgba(61,224,255,0.25);
    color: var(--psyguild-primary-cyan);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .psyguild-404-content-grid { grid-template-columns: 1fr; }
    .psyguild-404-routes-grid { gap: 8px; }
}
@media (max-width: 480px) {
    .psyguild-404-ctas { flex-direction: column; align-items: center; }
    .psyguild-404-ctas .psyguild-btn { width: 100%; }
}

/* Category count badge trong 404 */
.psy-cat-count {
    margin-left: auto;
    color: var(--psyguild-text-light-muted);
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    padding: 1px 7px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Post thumbnail trong 404 latest grid */
.psyguild-404-latest .post-thumbnail {
    height: 140px;
    margin: 12px 12px 0;
    border-radius: 10px;
    overflow: hidden;
}
.psyguild-404-latest .post-content {
    padding: 12px 14px 14px;
}
.psyguild-404-latest .post-meta {
    font-size: 0.72rem;
    justify-content: center;
    margin-bottom: 6px;
}
.psyguild-404-latest .post-title {
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.4;
}
