/* ==========================================================
   PathSeed Protocol v8.0 — Terminal Interface
   
   Design: MMBN/Solo Leveling system HUD + Big Tech polish
   Rule: NEVER override #psca-* dimensions.
   ========================================================== */

/* ── Tokens ────────────────────────────────────────────── */
:root {
    --ps-cyan:        #1ac8db;
    --ps-cyan-muted:  #0e9aab;
    --ps-cyan-dim:    rgba(26, 200, 219, 0.12);
    --ps-cyan-glow:   rgba(26, 200, 219, 0.30);
    --ps-purple:      #8b6cef;
    --ps-purple-dim:  rgba(139, 108, 239, 0.10);
    --ps-purple-glow: rgba(139, 108, 239, 0.25);
    --ps-green:       #34d399;
    --ps-green-glow:  rgba(52, 211, 153, 0.35);
    --ps-amber:       #f59e0b;
    --ps-red:         #f43f5e;

    --ps-bg-0:        #020408;
    --ps-bg-1:        #060c18;
    --ps-bg-2:        rgba(8, 16, 32, 0.92);
    --ps-bg-panel:    rgba(6, 12, 24, 0.65);

    --ps-border:      rgba(26, 200, 219, 0.10);
    --ps-border-hi:   rgba(26, 200, 219, 0.25);

    --ps-text:        #c8d8e8;
    --ps-text-dim:    rgba(180, 200, 220, 0.40);
    --ps-text-xdim:   rgba(160, 180, 200, 0.22);

    --ps-font-hud:    'Orbitron', sans-serif;
    --ps-font-mono:   'Share Tech Mono', monospace;
    --ps-font-body:   'Inter', 'Rajdhani', -apple-system, sans-serif;

    --ps-radius:      8px;
    --ps-ease:        cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Global Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ps-body {
    font-family: var(--ps-font-mono);
    background: var(--ps-bg-0);
    color: var(--ps-text);
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* Admin bar kill */
.ps-body #wpadminbar { display: none !important; }
.ps-body.admin-bar { margin-top: 0 !important; }

/* Ad containment — hide rogue divs injected into body */
.ps-body > div:not(.ps-atmo):not(.ps-hud):not(script):not(style):not(#wpadminbar) {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}


/* ==========================================================
   ATMOSPHERE
   ========================================================== */

.ps-atmo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#ps-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ps-grid {
    position: absolute;
    bottom: -35%;
    left: -25%;
    width: 150%;
    height: 110%;
    background-image:
        linear-gradient(rgba(26, 200, 219, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 200, 219, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(58deg);
    animation: gridDrift 35s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

@keyframes gridDrift {
    from { transform: perspective(600px) rotateX(58deg) translateY(0); }
    to   { transform: perspective(600px) rotateX(58deg) translateY(48px); }
}

.ps-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0, 0, 0, 0.06) 2px, rgba(0, 0, 0, 0.06) 4px
    );
    opacity: 0.35;
}

.ps-vig {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 4, 8, 0.7) 100%);
}


/* ==========================================================
   HUD SHELL
   ========================================================== */

.ps-hud {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    height: 100vh;
}


/* ==========================================================
   TOP BAR
   ========================================================== */

.ps-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 42px;
    padding: 0 16px;
    background: var(--ps-bg-2);
    border-bottom: 1px solid var(--ps-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ps-topbar__left,
.ps-topbar__center,
.ps-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-topbar__left  { flex: 1; }
.ps-topbar__center { flex: 0 0 auto; }
.ps-topbar__right { flex: 1; justify-content: flex-end; }

/* Status dot */
.ps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ps-green);
    box-shadow: 0 0 6px var(--ps-green-glow);
    animation: dotPulse 3s ease-in-out infinite;
}

.ps-maintenance-active .ps-dot {
    background: var(--ps-amber);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

.ps-topbar-text {
    font-family: var(--ps-font-hud);
    font-size: 0.5rem;
    letter-spacing: 1.8px;
    color: var(--ps-text-dim);
    text-transform: uppercase;
}

/* Brand / Logo */
.ps-brand {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ps-brand-text {
    font-family: var(--ps-font-hud);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    color: var(--ps-cyan);
    text-shadow: 0 0 12px var(--ps-cyan-glow);
}

.ps-brand-sep {
    font-family: var(--ps-font-hud);
    color: var(--ps-purple);
    opacity: 0.5;
    font-size: 0.6rem;
    margin: 0 1px;
}

.ps-brand-bracket {
    font-family: var(--ps-font-mono);
    color: var(--ps-purple);
    opacity: 0.2;
    font-size: 0.75rem;
}

.ps-clock {
    font-family: var(--ps-font-mono);
    font-size: 0.55rem;
    color: rgba(180, 200, 220, 0.45);
    letter-spacing: 0.5px;
}


/* ==========================================================
   STAGE (3-column)
   ========================================================== */

.ps-stage {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    overflow: hidden;
}


/* ==========================================================
   SIDE RAILS — Dormant by default, alive on hover
   ========================================================== */

.ps-rail {
    flex: 0 0 170px;
    display: none;
    flex-direction: column;
    padding: 12px 8px;
    gap: 8px;
    overflow: hidden;
}

.ps-rail--l { border-right: 1px solid var(--ps-border); }
.ps-rail--r { border-left: 1px solid var(--ps-border); }

/* Panel */
.ps-rail-panel {
    background: var(--ps-bg-panel);
    border: 1px solid rgba(26, 200, 219, 0.04);
    border-radius: var(--ps-radius);
    overflow: hidden;
    flex: 1 1 auto;
    opacity: 0.45;
    transition: all 0.5s var(--ps-ease);
}

.ps-rail:hover .ps-rail-panel {
    opacity: 1;
    border-color: var(--ps-border-hi);
    box-shadow:
        0 0 24px rgba(26, 200, 219, 0.06),
        inset 0 0 20px rgba(26, 200, 219, 0.02);
}

.ps-rp-head {
    font-family: var(--ps-font-hud);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--ps-cyan-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--ps-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ps-rp-icon {
    color: var(--ps-purple);
    font-size: 0.45rem;
    opacity: 0.7;
}

.ps-rp-body {
    padding: 10px 12px;
}

.ps-rp-divider {
    height: 1px;
    background: var(--ps-border);
    margin: 0;
}

/* Key-value rows */
.ps-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.ps-k {
    font-family: var(--ps-font-hud);
    font-size: 0.42rem;
    letter-spacing: 1.5px;
    color: var(--ps-text-dim);
}

.ps-v {
    font-family: var(--ps-font-mono);
    font-size: 0.62rem;
    color: var(--ps-text);
}

.ps-v--ok {
    color: var(--ps-green);
    text-shadow: 0 0 4px var(--ps-green-glow);
}

/* Signal visualization (left rail) */
.ps-signal {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    padding-top: 4px;
}

.ps-signal-bar {
    flex: 1;
    background: linear-gradient(to top, var(--ps-cyan-muted), var(--ps-purple));
    border-radius: 1px 1px 0 0;
    opacity: 0.15;
    height: 30%;
    animation: signalWave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
    transition: opacity 0.3s;
}

.ps-rail:hover .ps-signal-bar {
    opacity: 0.6;
}

@keyframes signalWave {
    0%, 100% { height: 20%; }
    50%      { height: 85%; }
}

/* Bar meters (right rail) */
.ps-bar-meter {
    margin-top: 8px;
}

.ps-bm-label {
    display: block;
    font-family: var(--ps-font-hud);
    font-size: 0.4rem;
    letter-spacing: 1.5px;
    color: var(--ps-text-dim);
    margin-bottom: 3px;
}

.ps-bm-track {
    height: 2px;
    background: rgba(26, 200, 219, 0.06);
    border-radius: 1px;
    overflow: hidden;
}

.ps-bm-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--ps-cyan-muted), var(--ps-green));
    border-radius: 1px;
    transition: width 2s var(--ps-ease);
}

.ps-bm-fill--alt {
    background: linear-gradient(90deg, var(--ps-purple), var(--ps-cyan-muted));
}

/* Rail accent stripe */
.ps-rail-stripe {
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, transparent, var(--ps-cyan-dim), var(--ps-purple-dim), transparent);
    opacity: 0.4;
    animation: stripeFade 8s ease-in-out infinite;
}

@keyframes stripeFade {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 0.6; }
}


/* ==========================================================
   VIEWPORT — Career Assistant lives here
   ========================================================== */

.ps-viewport {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    scroll-behavior: smooth;
}

.ps-viewport::-webkit-scrollbar { width: 3px; }
.ps-viewport::-webkit-scrollbar-track { background: transparent; }
.ps-viewport::-webkit-scrollbar-thumb { background: var(--ps-border-hi); border-radius: 2px; }

/* Frame with corner brackets */
.ps-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    padding: 8px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Corner brackets */
.ps-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 2;
    pointer-events: none;
}

.ps-bracket--tl {
    top: 0; left: 0;
    border-top: 1.5px solid var(--ps-cyan);
    border-left: 1.5px solid var(--ps-cyan);
    box-shadow: -1px -1px 6px var(--ps-cyan-glow);
}

.ps-bracket--tr {
    top: 0; right: 0;
    border-top: 1.5px solid var(--ps-purple);
    border-right: 1.5px solid var(--ps-purple);
    box-shadow: 1px -1px 6px var(--ps-purple-glow);
}

.ps-bracket--bl {
    bottom: 0; left: 0;
    border-bottom: 1.5px solid var(--ps-purple);
    border-left: 1.5px solid var(--ps-purple);
    box-shadow: -1px 1px 6px var(--ps-purple-glow);
}

.ps-bracket--br {
    bottom: 0; right: 0;
    border-bottom: 1.5px solid var(--ps-cyan);
    border-right: 1.5px solid var(--ps-cyan);
    box-shadow: 1px 1px 6px var(--ps-cyan-glow);
}

/* Content area */
.ps-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    flex: 1 0 auto;
}

/*
 * CRITICAL: Do NOT set width/max-width/height/flex on #psca-chat-container.
 * The Career Assistant CSS owns max-width: 650px and margin: auto.
 */

/* Content below chat */
.ps-content > p,
.ps-content > .wp-block-paragraph {
    color: var(--ps-text-dim);
    font-family: var(--ps-font-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    text-align: center;
    max-width: 580px;
    margin: 14px auto 6px;
    padding: 0 12px;
}

.ps-content > .wp-block-social-links,
.ps-content > .sharedaddy {
    filter: grayscale(100%) brightness(1.1) sepia(100%) hue-rotate(145deg) saturate(150%);
    opacity: 0.35;
    transition: all 0.3s var(--ps-ease);
    margin: 6px auto 14px;
}

.ps-content > .wp-block-social-links:hover,
.ps-content > .sharedaddy:hover {
    filter: none;
    opacity: 1;
}

.ps-content .sd-title,
.ps-content .sd-like h3,
.ps-content h3.sd-title {
    color: var(--ps-text-xdim) !important;
    font-family: var(--ps-font-hud) !important;
    font-size: 0.45rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.ps-content .sd-social-icon .sd-content ul li a,
.ps-content .sd-sharing-enabled .sd-content ul li a {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.ps-content .sd-social-icon .sd-content ul li a:hover,
.ps-content .sd-sharing-enabled .sd-content ul li a:hover {
    opacity: 1;
}

.ps-content a:not([class]) {
    color: var(--ps-cyan);
    text-decoration: none;
}

.ps-content a:not([class]):hover {
    color: var(--ps-cyan-muted);
    text-decoration: underline;
}

.ps-content .customize-partial-edit-shortcut,
.ps-content #jp-relatedposts {
    display: none;
}


/* ==========================================================
   BOTTOM BAR
   ========================================================== */

.ps-botbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    background: var(--ps-bg-2);
    border-top: 1px solid var(--ps-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ps-botbar__left,
.ps-botbar__center,
.ps-botbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-botbar__left  { flex: 1; }
.ps-botbar__center { flex: 0 0 auto; }
.ps-botbar__right { flex: 1; justify-content: flex-end; }

.ps-bot-meta {
    font-family: var(--ps-font-hud);
    font-size: 0.42rem;
    letter-spacing: 2px;
    color: var(--ps-text-xdim);
    text-transform: uppercase;
}

/* Navigation mode */
.ps-botbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4px;
    flex-wrap: wrap;
}

.ps-nav-link {
    font-family: var(--ps-font-hud);
    font-size: 0.48rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ps-text-dim);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s var(--ps-ease);
}

.ps-nav-link:hover {
    color: var(--ps-cyan);
    background: var(--ps-cyan-dim);
}

.ps-nav-link--active {
    color: var(--ps-cyan);
    background: var(--ps-cyan-dim);
    text-shadow: 0 0 6px var(--ps-cyan-glow);
}

.ps-nav-sep {
    color: var(--ps-text-xdim);
    font-size: 0.5rem;
    user-select: none;
}


/* ==========================================================
   MAINTENANCE / OFFLINE SCREEN
   ========================================================== */

.ps-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    height: 100%;
    padding: 40px 20px;
    gap: 12px;
}

.ps-offline__icon {
    color: var(--ps-red);
    filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.4));
    animation: offlineIconPulse 3s ease-in-out infinite;
}

@keyframes offlineIconPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.ps-offline__title {
    font-family: var(--ps-font-hud);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--ps-red);
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.ps-offline__msg {
    font-family: var(--ps-font-body);
    font-size: 0.95rem;
    color: var(--ps-text);
    max-width: 420px;
    line-height: 1.6;
}

.ps-offline__status {
    font-family: var(--ps-font-mono);
    font-size: 0.75rem;
    color: var(--ps-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.ps-offline__blink {
    color: var(--ps-amber);
    animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

.ps-hide-xs { display: none; }
.ps-rail { display: none; }

/* Tablet (≥768px) */
@media (min-width: 768px) {
    .ps-topbar {
        height: 44px;
        padding: 0 24px;
    }

    .ps-botbar {
        height: 38px;
        padding: 0 24px;
    }

    .ps-viewport {
        padding: 16px 20px;
    }

    .ps-hide-xs { display: flex; }
}

/* Desktop — show rails (≥1100px) */
@media (min-width: 1100px) {
    .ps-rail { display: flex; }

    .ps-topbar {
        height: 46px;
        padding: 0 28px;
    }

    .ps-botbar {
        height: 40px;
        padding: 0 28px;
    }

    .ps-viewport {
        padding: 18px 24px;
    }
}

/* Wide desktop (≥1400px) */
@media (min-width: 1400px) {
    .ps-rail { flex: 0 0 200px; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .ps-topbar {
        height: 36px;
        padding: 0 10px;
    }

    .ps-brand-text {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .ps-topbar__left .ps-topbar-text { display: none; }

    .ps-botbar {
        height: 32px;
        padding: 0 10px;
    }

    .ps-nav-link {
        font-size: 0.42rem;
        padding: 3px 6px;
        letter-spacing: 1px;
    }

    .ps-viewport { padding: 6px; }
    .ps-bracket { width: 8px; height: 8px; }

    .ps-scan { opacity: 0.15; }
    .ps-grid { opacity: 0.5; }
}

/* Tiny phones (≤375px) */
@media (max-width: 375px) {
    .ps-topbar { height: 32px; padding: 0 8px; }
    .ps-botbar { height: 28px; padding: 0 8px; }
    .ps-viewport { padding: 4px; }
    .ps-frame { padding: 3px; }
    .ps-brand-bracket { display: none; }
}


/* ── Safe Areas ────────────────────────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
    .ps-topbar { padding-top: env(safe-area-inset-top); }
    .ps-botbar { padding-bottom: env(safe-area-inset-bottom); }
    .ps-viewport {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}


/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ps-grid, .ps-signal-bar, .ps-rail-stripe { animation: none; }
    .ps-dot { animation: none; opacity: 1; }
    #ps-particles { display: none; }
    .ps-bm-fill { transition: none; }
    .ps-offline__icon { animation: none; }
}


/* ── Print ─────────────────────────────────────────────── */
@media print {
    .ps-atmo, .ps-rail, .ps-topbar, .ps-botbar,
    .ps-bracket, .ps-scan, .ps-vig, .ps-grid,
    #ps-particles { display: none; }

    .ps-body {
        background: #fff; color: #111;
        height: auto; overflow: visible;
    }

    .ps-hud, .ps-stage, .ps-viewport {
        position: static; height: auto;
        display: block; overflow: visible;
    }
}


/* ==========================================================
   MINIMAL MODE — v8
   Clean framed viewport for content pages (About, Privacy,
   Navi, etc.). No rails, no brackets, no telemetry.
   ========================================================== */

/* In minimal mode the body can scroll naturally */
.ps-mode-minimal.ps-body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
}

.ps-mode-minimal .ps-hud {
    position: relative;
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Keep topbar fixed at top */
.ps-mode-minimal .ps-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Stage in minimal mode: no rails, full width */
.ps-mode-minimal .ps-stage {
    flex: 1 0 auto;
    overflow: visible;
}

/* Viewport in minimal mode: scrolls with page */
.ps-mode-minimal .ps-viewport {
    overflow: visible;
    padding: 0;
    align-items: stretch;
}

/* Minimal wrapper: centered column with generous padding */
.ps-minimal-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Sticky bottom bar in minimal mode */
.ps-mode-minimal .ps-botbar {
    position: sticky;
    bottom: 0;
}

/* Grid atmosphere: much subtler in minimal mode */
.ps-mode-minimal .ps-grid {
    opacity: 0.4;
}

/* Particles canvas not rendered in minimal mode (not in HTML) */

/* ── Minimal Content Typography ──────────────────────── */

/*
 * Content pages use Inter for body text. These rules only apply
 * inside .ps-mode-minimal so they never touch the Career Assistant.
 */

.ps-mode-minimal .ps-content {
    font-family: var(--ps-font-body);
    color: var(--ps-text);
    align-items: flex-start;
}

/* Page title (h1) */
.ps-mode-minimal .ps-content h1,
.ps-mode-minimal .ps-content .entry-title {
    font-family: var(--ps-font-hud);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ps-cyan);
    text-shadow: 0 0 20px var(--ps-cyan-glow);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ps-border-hi);
    text-transform: uppercase;
}

/* Section headings */
.ps-mode-minimal .ps-content h2 {
    font-family: var(--ps-font-hud);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ps-cyan-muted);
    margin: 36px 0 12px;
}

.ps-mode-minimal .ps-content h3 {
    font-family: var(--ps-font-hud);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ps-purple);
    margin: 24px 0 8px;
}

/* Body paragraphs — readable size, comfortable leading */
.ps-mode-minimal .ps-content p {
    font-family: var(--ps-font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(200, 216, 232, 0.85);
    margin-bottom: 16px;
    max-width: 100%;
}

/* Lists */
.ps-mode-minimal .ps-content ul,
.ps-mode-minimal .ps-content ol {
    padding-left: 1.5rem;
    margin-bottom: 16px;
}

.ps-mode-minimal .ps-content li {
    font-family: var(--ps-font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(200, 216, 232, 0.82);
    margin-bottom: 6px;
}

/* Links */
.ps-mode-minimal .ps-content a {
    color: var(--ps-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 200, 219, 0.25);
    transition: border-color 0.2s var(--ps-ease), color 0.2s;
}

.ps-mode-minimal .ps-content a:hover {
    color: #fff;
    border-bottom-color: var(--ps-cyan);
}

/* Inline code / code blocks */
.ps-mode-minimal .ps-content code {
    font-family: var(--ps-font-mono);
    font-size: 0.82rem;
    background: var(--ps-cyan-dim);
    color: var(--ps-cyan);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Horizontal rules → styled dividers */
.ps-mode-minimal .ps-content hr {
    border: none;
    border-top: 1px solid var(--ps-border-hi);
    margin: 36px 0;
    opacity: 0.5;
}

/* Blockquotes */
.ps-mode-minimal .ps-content blockquote {
    border-left: 3px solid var(--ps-purple);
    padding: 8px 0 8px 20px;
    margin: 20px 0;
    color: var(--ps-text-dim);
    font-style: italic;
}

/* "Last Updated" / metadata lines (Privacy page) */
.ps-mode-minimal .ps-content p:first-of-type:has(+ h2),
.ps-mode-minimal .ps-content .wp-block-group > p:first-child {
    font-family: var(--ps-font-mono);
    font-size: 0.72rem;
    color: var(--ps-text-dim);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

/* Jetpack share / social widgets in minimal mode */
.ps-mode-minimal .ps-content .sd-sharing-enabled,
.ps-mode-minimal .ps-content .sharedaddy,
.ps-mode-minimal .ps-content .wp-block-social-links {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--ps-border);
    filter: grayscale(100%) brightness(1.1) sepia(100%) hue-rotate(145deg) saturate(150%);
    opacity: 0.3;
    transition: all 0.3s var(--ps-ease);
}

.ps-mode-minimal .ps-content .sd-sharing-enabled:hover,
.ps-mode-minimal .ps-content .sharedaddy:hover,
.ps-mode-minimal .ps-content .wp-block-social-links:hover {
    filter: none;
    opacity: 1;
}

/* Hide Jetpack junk in minimal mode */
.ps-mode-minimal .ps-content #jp-relatedposts,
.ps-mode-minimal .ps-content .customize-partial-edit-shortcut {
    display: none;
}

/* ── Responsive tweaks for minimal ──────────────────── */
@media (min-width: 768px) {
    .ps-minimal-wrap {
        padding: 52px 40px 72px;
    }
}

@media (min-width: 1100px) {
    .ps-minimal-wrap {
        padding: 60px 48px 80px;
    }
}

@media (max-width: 480px) {
    .ps-minimal-wrap {
        padding: 24px 16px 48px;
    }
}



/* ==========================================================
   HERO MODE — v8
   Full-viewport home page override. Organic seed-growth system
   meets Solo Leveling / MMBN / SAO HUD aesthetic.
   ========================================================== */

/* ── Body & shell ──────────────────────────────────────── */

.ps-mode-hero.ps-body {
    background: var(--ps-bg-0);
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
}

.ps-mode-hero .ps-hud {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

/* Top & bottom bars: same height as other modes */
.ps-mode-hero .ps-topbar {
    background: rgba(2, 4, 8, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(26, 200, 219, 0.12);
    flex-shrink: 0;
}

.ps-mode-hero .ps-botbar {
    background: rgba(2, 4, 8, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top-color: rgba(26, 200, 219, 0.12);
    flex-shrink: 0;
}

/* ── Hero stage: fills the gap between bars ─────────────── */

.ps-hero-stage {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Atmosphere layers (hero-specific) ──────────────────── */

/* Perspective grid — more visible than in full mode */
.ps-mode-hero .ps-atmo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ps-mode-hero .ps-grid {
    opacity: 0.7;
    background-size: 56px 56px;
}

.ps-mode-hero .ps-scan {
    opacity: 0.2;
}

.ps-mode-hero .ps-vig {
    background: radial-gradient(ellipse at center, transparent 30%, rgba(2, 4, 8, 0.85) 100%);
}

/* ── Organic root canvas ────────────────────────────────── */

#ps-hero-roots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── Leaf silhouettes ───────────────────────────────────── */

.ps-hero-foliage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ps-hero-leaf {
    position: absolute;
    color: #8ab4cc;
    opacity: 0;
    animation: leafDrift 20s ease-in-out infinite;
}

@keyframes leafDrift {
    0%   { opacity: 0;    transform: var(--leaf-from); }
    15%  { opacity: var(--leaf-op); }
    85%  { opacity: var(--leaf-op); }
    100% { opacity: 0;    transform: var(--leaf-to); }
}

/* Individual leaf placements */
.ps-hero-leaf:nth-child(1)  { top: 12%; left: 4%;  width: 80px;  --leaf-op: 0.07; animation-delay: 0s;    --leaf-from: rotate(20deg)  translateY(0);   --leaf-to: rotate(22deg)  translateY(-12px); }
.ps-hero-leaf:nth-child(2)  { top: 8%;  left: 18%; width: 110px; --leaf-op: 0.05; animation-delay: 3s;    --leaf-from: rotate(-15deg) translateY(0);   --leaf-to: rotate(-17deg) translateY(-8px);  }
.ps-hero-leaf:nth-child(3)  { top: 22%; left: 2%;  width: 55px;  --leaf-op: 0.09; animation-delay: 6s;    --leaf-from: rotate(45deg)  translateX(0);   --leaf-to: rotate(47deg)  translateX(6px);   }
.ps-hero-leaf:nth-child(4)  { top: 60%; left: 6%;  width: 90px;  --leaf-op: 0.06; animation-delay: 1.5s;  --leaf-from: rotate(-30deg) translateY(0);   --leaf-to: rotate(-32deg) translateY(10px);  }
.ps-hero-leaf:nth-child(5)  { top: 75%; left: 14%; width: 65px;  --leaf-op: 0.08; animation-delay: 8s;    --leaf-from: rotate(10deg)  translateX(0);   --leaf-to: rotate(8deg)   translateX(-5px);  }
.ps-hero-leaf:nth-child(6)  { top: 10%; right: 5%; width: 95px;  --leaf-op: 0.06; animation-delay: 2s;    --leaf-from: rotate(-20deg) translateY(0);   --leaf-to: rotate(-22deg) translateY(-10px); }
.ps-hero-leaf:nth-child(7)  { top: 30%; right: 3%; width: 70px;  --leaf-op: 0.08; animation-delay: 5s;    --leaf-from: rotate(35deg)  translateX(0);   --leaf-to: rotate(37deg)  translateX(8px);   }
.ps-hero-leaf:nth-child(8)  { top: 55%; right: 7%; width: 115px; --leaf-op: 0.05; animation-delay: 9s;    --leaf-from: rotate(-10deg) translateY(0);   --leaf-to: rotate(-8deg)  translateY(12px);  }
.ps-hero-leaf:nth-child(9)  { top: 78%; right: 12%;width: 60px;  --leaf-op: 0.09; animation-delay: 4s;    --leaf-from: rotate(55deg)  translateX(0);   --leaf-to: rotate(57deg)  translateX(-6px);  }
.ps-hero-leaf:nth-child(10) { top: 42%; left: 1%;  width: 48px;  --leaf-op: 0.07; animation-delay: 11s;   --leaf-from: rotate(-50deg) translateY(0);   --leaf-to: rotate(-48deg) translateY(-8px);  }
.ps-hero-leaf:nth-child(11) { top: 18%; right: 18%;width: 85px;  --leaf-op: 0.04; animation-delay: 7s;    --leaf-from: rotate(5deg)   translateY(0);   --leaf-to: rotate(7deg)   translateY(-14px); }
.ps-hero-leaf:nth-child(12) { top: 68%; right: 2%; width: 52px;  --leaf-op: 0.08; animation-delay: 13s;   --leaf-from: rotate(-40deg) translateX(0);   --leaf-to: rotate(-42deg) translateX(6px);   }

/* ── Hero center layout ─────────────────────────────────── */

.ps-hero-center {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    padding: 0 20px;
}

/* ── Side status panels (hero) ──────────────────────────── */

.ps-hero-aside {
    display: none; /* shown at desktop width */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ps-hero-vline {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--ps-cyan-dim), transparent);
}

.ps-hero-status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ps-hero-status-row span:first-child {
    font-family: var(--ps-font-hud);
    font-size: 0.38rem;
    letter-spacing: 2px;
    color: var(--ps-text-xdim);
    text-transform: uppercase;
}

.ps-hero-status-row span:last-child {
    font-family: var(--ps-font-mono);
    font-size: 0.55rem;
    color: var(--ps-text-dim);
}

.ps-hero-status-row span.ps-v--ok {
    color: var(--ps-green);
    text-shadow: 0 0 4px var(--ps-green-glow);
}

/* ── Hero frame (the center panel) ─────────────────────── */

.ps-hero-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 36px 40px 40px;
    max-width: 560px;
    width: 100%;
    background: rgba(6, 12, 24, 0.60);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 200, 219, 0.06);
    border-radius: 4px;
}

/* Larger corner brackets for the hero frame */
.ps-hero-frame .ps-bracket {
    width: 18px;
    height: 18px;
}

.ps-hero-frame .ps-bracket--tl {
    border-top-width: 2px;
    border-left-width: 2px;
    box-shadow: -2px -2px 10px var(--ps-cyan-glow);
}

.ps-hero-frame .ps-bracket--tr {
    border-top-width: 2px;
    border-right-width: 2px;
    box-shadow: 2px -2px 10px var(--ps-purple-glow);
}

.ps-hero-frame .ps-bracket--bl {
    border-bottom-width: 2px;
    border-left-width: 2px;
    box-shadow: -2px 2px 10px var(--ps-purple-glow);
}

.ps-hero-frame .ps-bracket--br {
    border-bottom-width: 2px;
    border-right-width: 2px;
    box-shadow: 2px 2px 10px var(--ps-cyan-glow);
}

/* ── Seed orb ───────────────────────────────────────────── */

.ps-hero-seed {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ps-seed-core {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #fff 0%, var(--ps-cyan) 40%, var(--ps-purple) 100%);
    box-shadow:
        0 0 8px var(--ps-cyan),
        0 0 20px var(--ps-cyan-glow),
        0 0 40px rgba(26, 200, 219, 0.15);
    animation: seedPulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes seedPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 8px var(--ps-cyan), 0 0 20px var(--ps-cyan-glow), 0 0 40px rgba(26,200,219,0.15); }
    50%       { transform: scale(1.12); box-shadow: 0 0 12px var(--ps-cyan), 0 0 28px var(--ps-cyan-glow), 0 0 55px rgba(26,200,219,0.25); }
}

.ps-seed-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(26, 200, 219, 0.20);
    animation: seedRingExpand 4s ease-out infinite;
}

.ps-seed-ring--2 {
    animation-delay: 2s;
    border-color: rgba(139, 108, 239, 0.15);
}

@keyframes seedRingExpand {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0;   }
}

/* Small branching lines emanating from seed */
.ps-seed-lines {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.ps-seed-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, rgba(26,200,219,0.5), transparent);
    transform-origin: left center;
    opacity: 0;
    animation: seedLineFlash 6s ease-in-out infinite;
}

.ps-seed-line:nth-child(1)  { transform: rotate(-80deg);  animation-delay: 0.0s; }
.ps-seed-line:nth-child(2)  { transform: rotate(-50deg);  animation-delay: 0.4s; }
.ps-seed-line:nth-child(3)  { transform: rotate(-20deg);  animation-delay: 0.8s; }
.ps-seed-line:nth-child(4)  { transform: rotate(20deg);   animation-delay: 1.2s; }
.ps-seed-line:nth-child(5)  { transform: rotate(50deg);   animation-delay: 1.6s; }
.ps-seed-line:nth-child(6)  { transform: rotate(80deg);   animation-delay: 2.0s; }
.ps-seed-line:nth-child(7)  { transform: rotate(110deg);  animation-delay: 2.4s; }
.ps-seed-line:nth-child(8)  { transform: rotate(140deg);  animation-delay: 2.8s; }

@keyframes seedLineFlash {
    0%, 100% { opacity: 0;   width: 14px; }
    30%       { opacity: 0.6; width: 22px; }
    60%       { opacity: 0;   width: 22px; }
}

/* ── Hero title ─────────────────────────────────────────── */

.ps-hero-title {
    font-family: var(--ps-font-hud);
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: #e8f4ff;
    text-shadow:
        0 0 30px rgba(26, 200, 219, 0.20),
        0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
    margin: 0 0 16px;
    text-transform: uppercase;
}

/* Cyan highlight on key words via <em> in WP title */
.ps-hero-title em {
    font-style: normal;
    color: var(--ps-cyan);
    text-shadow: 0 0 16px var(--ps-cyan-glow);
}

/* ── Hero subtitle / body content ───────────────────────── */

.ps-hero-body {
    text-align: center;
    width: 100%;
}

.ps-hero-body p {
    font-family: var(--ps-font-body);
    font-size: clamp(0.82rem, 1.8vw, 0.95rem);
    line-height: 1.7;
    color: rgba(200, 216, 232, 0.72);
    margin: 0 0 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Hero CTA button ────────────────────────────────────── */
/* Targets WP button blocks and standard <a> links in content */

.ps-hero-body .wp-block-button__link,
.ps-hero-body .wp-element-button,
.ps-hero-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--ps-font-hud) !important;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--ps-purple), var(--ps-cyan-muted)) !important;
    border: 1px solid rgba(26, 200, 219, 0.30) !important;
    border-radius: 3px !important;
    padding: 13px 32px !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ps-ease);
    box-shadow:
        0 0 20px rgba(139, 108, 239, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.ps-hero-body .wp-block-button__link::before,
.ps-hero-cta::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255,255,255,0.06) 50%,
        transparent 65%
    );
    transition: top 0.5s var(--ps-ease), left 0.5s var(--ps-ease);
}

.ps-hero-body .wp-block-button__link:hover,
.ps-hero-cta:hover {
    background: linear-gradient(135deg, var(--ps-cyan-muted), var(--ps-purple)) !important;
    box-shadow:
        0 0 32px rgba(26, 200, 219, 0.35),
        0 0 8px rgba(26, 200, 219, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.10) !important;
    transform: translateY(-1px);
    letter-spacing: 4px !important;
}

.ps-hero-body .wp-block-button__link:hover::before,
.ps-hero-cta:hover::before {
    top: -50%;
    left: -50%;
}

/* WP block button wrapper */
.ps-hero-body .wp-block-button {
    margin: 0;
}

/* ── Scan line that sweeps the whole hero stage ─────────── */

.ps-hero-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.ps-hero-sweep::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(26, 200, 219, 0.06) 30%,
        rgba(26, 200, 219, 0.12) 50%,
        rgba(26, 200, 219, 0.06) 70%,
        transparent
    );
    animation: heroSweep 8s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(26, 200, 219, 0.08);
}

@keyframes heroSweep {
    0%   { top: -2px;    opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 0.6; }
    100% { top: 100%;    opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (min-width: 900px) {
    .ps-hero-aside { display: flex; }
    .ps-hero-frame { padding: 44px 52px 48px; }
}

@media (max-width: 480px) {
    .ps-hero-frame {
        padding: 28px 22px 32px;
        margin: 0 4px;
    }
    .ps-hero-title { letter-spacing: 1px; }
    .ps-hero-seed { width: 52px; height: 52px; margin-bottom: 16px; }
    .ps-seed-core { width: 16px; height: 16px; }
}

/* Ad containment override for hero mode (same as before) */
.ps-mode-hero.ps-body > div:not(.ps-atmo):not(.ps-hud):not(script):not(style):not(#wpadminbar) {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ps-hero-leaf,
    .ps-seed-ring,
    .ps-seed-line,
    .ps-hero-sweep::after { animation: none; }
    .ps-seed-core { animation: none; }
    #ps-hero-roots { display: none; }
}
