/* ==========================================================================
   Playverse Theme — Neon Dark (adapted from AbyssHub)
   ========================================================================== */

/* ==========================================================================
   Playverse Theme — Dark / Light (data-theme switch)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    /* Background */
    --bg-base: #0A0A0B;
    --bg-surface: #131316;
    --bg-elevated: #1C1C21;
    --bg-hover: #232329;

    /* Text */
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-muted: #71717A;

    /* Accent */
    --accent: #00D4FF;
    --accent-hover: #0099CC;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-gradient: linear-gradient(135deg, #00D4FF, #0099CC);

    /* Semantic */
    --success: #00E676;
    --warning: #FFD600;
    --error: #FF5252;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 212, 255, 0.3);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.15), 0 0 40px rgba(0, 212, 255, 0.05);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --line-height: 1.7;

    /* Layout */
    --container-max: 1200px;
    --header-height: 64px;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
    --bg-base: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F0F1F3;
    --bg-hover: #E4E5E8;

    --text-primary: #1A1A1E;
    --text-secondary: #5A5A66;
    --text-muted: #8A8A96;

    --accent: #0088CC;
    --accent-hover: #006699;
    --accent-glow: rgba(0, 136, 204, 0.12);
    --accent-gradient: linear-gradient(135deg, #00AADD, #006699);

    --border: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 136, 204, 0.3);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-neon: 0 4px 20px rgba(0, 136, 204, 0.12), 0 0 40px rgba(0, 136, 204, 0.04);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: clip;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

[data-theme="light"] .site-header {
    background: rgba(248, 249, 250, 0.88);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.site-logo {
    display: flex;
    align-items: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.site-logo img {
    height: 28px;
    width: auto;
    margin-right: var(--space-sm);
}

html:not([data-theme="light"]) .site-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

[data-theme="light"] .site-logo img {
    filter: none;
    opacity: 0.65;
}

.site-title {
    color: var(--text-secondary) !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
}

/* Header badge */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-dropdown-menu--games {
    min-width: 420px;
    padding: var(--space-sm);
}

.nav-dropdown-menu--games li {
    display: inline-block;
    width: calc(50% - var(--space-xs));
    vertical-align: top;
}

.nav-dropdown-menu--games li a {
    border-radius: var(--radius-sm);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-sm) 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-gradient);
    color: var(--bg-base) !important;
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
}

/* Nav actions (theme toggle + mobile burger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle-icon {
    display: none;
}

/* Dark theme: show sun (to switch to light) */
html:not([data-theme="light"]) .theme-toggle-sun {
    display: block;
}

/* Light theme: show moon (to switch to dark) */
html[data-theme="light"] .theme-toggle-moon {
    display: block;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 300;
}

.pv-messenger-trigger {
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    body.mobile-menu-open .pv-messenger-trigger {
        opacity: 0;
        pointer-events: none;
    }
    /* Raise header above backdrop so mobile menu links are clickable */
    body.mobile-menu-open .site-header {
        z-index: 10000;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .header-badge {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        background: var(--bg-surface);
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-backdrop {
        display: none;
    }
    .mobile-menu-backdrop.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding-left: var(--space-md);
    }

    .nav-dropdown-menu--games {
        min-width: auto;
    }

    .nav-dropdown-menu--games li {
        display: block;
        width: 100%;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-xl);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-games {
    max-width: 720px;
    margin: 0 auto;
}

.hero-games-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.hero-games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.hero-game-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-game-tag:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ---------- Content Sections ---------- */
.content-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
}

.section-link:hover {
    color: var(--accent-hover);
}

/* Accent section (highlight) */
.content-section--accent {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---------- JTBD Section ---------- */
.jtbd {
    padding: var(--space-3xl) 0;
}

.jtbd-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.jtbd-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: var(--space-2xl);
}

.jtbd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .jtbd-grid {
        grid-template-columns: 1fr;
    }
}

.jtbd-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jtbd-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.jtbd-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.jtbd-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.jtbd-card-problem {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.jtbd-card-solution {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* ---------- Post Grid ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

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

/* ---------- Post Card ---------- */
.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-accent);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    padding: var(--space-lg);
}

.post-card-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.post-card-tag:hover {
    color: var(--accent-hover);
}

.post-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.post-card-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.post-card-author {
    color: var(--text-secondary);
    text-decoration: none;
}

.post-card-author:hover {
    color: var(--accent);
}

/* ---------- Post Full (Article) ---------- */
.post-full {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.post-header {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.post-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.post-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.post-excerpt {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

.post-author:hover {
    color: var(--accent);
}

.post-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.post-feature-image {
    max-width: 960px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-feature-image figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-top: var(--space-sm);
}

/* ---------- Post Content (Prose) ---------- */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: var(--space-2xl) 0 var(--space-md);
    color: var(--text-primary);
}

.post-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--text-primary);
}

.post-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: var(--space-lg);
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
    text-decoration-color: var(--accent);
}

.post-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content em {
    font-style: italic;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: var(--space-sm);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.post-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: var(--text-sm);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-2xl) 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.post-content th,
.post-content td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    text-align: left;
}

.post-content th {
    background: var(--bg-surface);
    font-weight: 600;
}

/* ---------- Post Tags ---------- */
.post-tags {
    max-width: 720px;
    margin: var(--space-xl) auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.post-tag-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.post-tag-link:hover {
    border-color: var(--border-accent);
    color: var(--accent);
}

/* ---------- Post Share ---------- */
.post-share {
    max-width: 720px;
    margin: var(--space-lg) auto 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.post-share a {
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.post-share a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Post Navigation ---------- */
.post-navigation {
    max-width: 720px;
    margin: var(--space-2xl) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-nav-next {
    text-align: right;
}

.post-nav-prev:hover,
.post-nav-next:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.post-nav-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.post-nav-title {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ---------- Archive / Tag / Author ---------- */
.archive-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.archive-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.archive-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-md);
    white-space: pre-line;
}

.archive-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Empty rubric state */
.empty-rubric {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-rubric-icon {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.4;
}

.empty-rubric-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.empty-rubric-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* Tag slug → display name mapping */
.archive-title[data-tag-slug^="hash-"],
.post-card-tag[data-tag-slug^="hash-"],
.post-tag[data-tag-slug^="hash-"],
.post-tag-link[data-tag-slug^="hash-"] {
    font-size: 0;
}
.archive-title[data-tag-slug^="hash-"]::after { font-size: var(--text-3xl); }
.post-card-tag[data-tag-slug^="hash-"]::after  { font-size: var(--text-sm); }
.post-tag[data-tag-slug^="hash-"]::after      { font-size: var(--text-sm); text-transform: none; }
.post-tag-link[data-tag-slug^="hash-"]::after  { font-size: var(--text-sm); }
[data-tag-slug="hash-news"]::after         { content: "Новости"; }
[data-tag-slug="hash-stories"]::after       { content: "Истории"; }
[data-tag-slug="hash-people"]::after        { content: "Люди"; }
[data-tag-slug="hash-guides"]::after        { content: "Гайды"; }
[data-tag-slug="hash-opinions"]::after      { content: "Мнения редакции"; }
[data-tag-slug="hash-picks"]::after         { content: "Подборки"; }

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 2px solid var(--border-accent);
}

.author-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.author-links a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
}

.author-links a:hover {
    color: var(--accent);
}

.author-socials {
    margin-top: var(--space-xl);
    text-align: center;
}

.author-socials-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---------- Author Card (post bottom) ---------- */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
}

.author-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-accent);
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.author-card-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.author-card-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.author-card-name:hover {
    color: var(--accent);
}

.author-card-bio {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.author-card-cta {
    display: inline-block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.author-card-cta:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }
}

/* ---------- Page Content ---------- */
.page-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.page-header {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.page-excerpt {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.page-feature-image {
    max-width: 960px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ---------- Search ---------- */
.search-page {
    padding: var(--space-3xl) 0;
}

.search-form {
    display: flex;
    gap: var(--space-md);
    max-width: 600px;
    margin: var(--space-xl) auto;
}

.search-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    outline: none;
    transition: border-color 0.2s ease;
}

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

.search-results {
    max-width: 720px;
    margin: 0 auto;
}

.search-hint,
.search-loading,
.search-empty,
.search-error {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl) 0;
}

/* ---------- Error 404 ---------- */
.error-page {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-message {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.error-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-base);
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
    color: var(--bg-base);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-glow);
    box-shadow: var(--shadow-neon);
}

/* ---------- Pagination ---------- */
.pagination {
    padding: var(--space-2xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.pagination-prev,
.pagination-next {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-logo {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: var(--space-xs);
}

.footer-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    max-width: 360px;
}

.footer-nav h4,
.footer-legal h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: var(--space-sm);
}

.footer-nav ul a,
.footer-legal ul a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer-nav ul a:hover,
.footer-legal ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ---------- Ghost-specific overrides ---------- */
.gh-card-image {
    border-radius: var(--radius-md);
}

.kg-card {
    margin: var(--space-lg) 0;
}

.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    max-width: 1400px;
    margin: auto calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 768px) {
    .kg-width-wide {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: var(--space-lg) 0;
    }
}

.kg-image-card img {
    border-radius: var(--radius-md);
}

.kg-code-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kg-code-card pre {
    margin: 0;
    border: none;
}

.kg-callout-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.kg-bookmark-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ---------- Utilities ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Focus visible ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ======== Messenger Widget ======== */

/* Trigger button in header */
.pv-messenger-trigger {
    position: relative;
}

.pv-messenger-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pv-messenger-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.pv-messenger-btn:hover {
    color: var(--accent);
}

.pv-messenger-btn:hover::after {
    opacity: 1;
    width: 22px;
}

.pv-messenger-btn svg {
    width: 18px;
    height: 18px;
}

.pv-messenger-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--accent);
    color: var(--bg-base);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Panel */
#pv-messenger-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 100px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 90;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#pv-messenger-panel.pv-msg-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 480px) {
    #pv-messenger-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* Panel header */
.pv-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.pv-msg-header-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.pv-msg-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pv-msg-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Sidebar: chat list */
.pv-msg-sidebar {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pv-msg-sidebar::-webkit-scrollbar {
    width: 4px;
}

.pv-msg-sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 2px;
}

.pv-msg-chat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.pv-msg-chat-item:hover {
    background: var(--bg-hover);
}

.pv-msg-chat-item.pv-msg-chat-active {
    background: rgba(0, 212, 255, 0.06);
    border-left: 3px solid var(--accent);
}

.pv-msg-chat-item.pv-msg-chat-unread {
    border-left: 3px solid var(--accent);
}

.pv-msg-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.pv-msg-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.pv-msg-chat-info {
    flex: 1;
    min-width: 0;
}

.pv-msg-chat-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-msg-chat-name.pv-msg-bold {
    font-weight: 700;
}

.pv-msg-chat-preview {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.pv-msg-chat-preview.pv-msg-bold {
    color: var(--text-secondary);
    font-weight: 500;
}

.pv-msg-chat-unread-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--bg-base);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

/* Chat view */
.pv-msg-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pv-msg-view.pv-msg-view-active {
    display: flex;
}

.pv-msg-view-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.pv-msg-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pv-msg-back:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.pv-msg-view-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Messages area */
.pv-msg-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pv-msg-messages::-webkit-scrollbar {
    width: 4px;
}

.pv-msg-messages::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 2px;
}

.pv-msg-bubble {
    max-width: 80%;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: 1.5;
    word-wrap: break-word;
}

.pv-msg-bubble-own {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-base);
    border-bottom-right-radius: var(--radius-sm);
}

.pv-msg-bubble-other {
    align-self: flex-start;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
}

.pv-msg-sender {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.pv-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 2px;
    text-align: right;
}

.pv-msg-bubble-other .pv-msg-time {
    color: var(--text-muted);
}

.pv-msg-date-sep {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: var(--space-sm) 0;
}

.pv-msg-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Input area */
.pv-msg-input-area {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.pv-msg-input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 36px;
    max-height: 100px;
    transition: border-color 0.2s;
}

.pv-msg-input:focus {
    border-color: var(--accent);
}

.pv-msg-input::placeholder {
    color: var(--text-muted);
}

.pv-msg-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-base);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pv-msg-send:hover {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.pv-msg-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading spinner */
.pv-msg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.pv-msg-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: pv-msg-spin 0.6s linear infinite;
    margin-right: var(--space-xs);
}

@keyframes pv-msg-spin {
    to { transform: rotate(360deg); }
}

/* Overlay for mobile */
#pv-messenger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 89;
}

@media (max-width: 480px) {
    #pv-messenger-overlay.pv-msg-overlay-show {
        display: block;
    }
}

/* ==========================================================================
   Messenger — Search, Requests, Groups, Emoji
   ========================================================================== */

.pv-msg-search-wrap {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.pv-msg-search {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.2s;
}

.pv-msg-search:focus {
    border-color: var(--accent);
}

.pv-msg-search::placeholder {
    color: var(--text-muted);
}

.pv-msg-section-title {
    padding: var(--space-sm) var(--space-md) var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.pv-msg-write-btn {
    padding: 4px 12px;
    margin-left: auto;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--accent);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pv-msg-write-btn:hover {
    background: var(--accent);
    color: var(--bg-base);
}

.pv-msg-request-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.pv-msg-accept-btn,
.pv-msg-reject-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pv-msg-accept-btn {
    background: #22c55e;
    color: #fff;
}

.pv-msg-accept-btn:hover {
    background: #16a34a;
}

.pv-msg-reject-btn {
    background: #ef4444;
    color: #fff;
}

.pv-msg-reject-btn:hover {
    background: #dc2626;
}

.pv-msg-chat-pending {
    opacity: 0.85;
}

.pv-msg-pending-label {
    color: var(--accent) !important;
    font-style: italic;
}

.pv-msg-create-group-btn {
    display: block;
    width: calc(100% - 2 * var(--space-md));
    margin: var(--space-sm) var(--space-md);
    padding: var(--space-xs) 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pv-msg-create-group-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pv-msg-emoji-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    flex-shrink: 0;
}

.pv-msg-emoji-btn:hover {
    background: var(--bg-surface);
}

.pv-emoji-picker-wrap {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-bottom: 4px;
}

.pv-emoji-picker-wrap em-emoji-picker {
    --border-radius: var(--radius-md);
    width: 100%;
}

/* Group create UI */
.pv-msg-group-create {
    padding: var(--space-sm) 0;
}

.pv-msg-group-contacts {
    max-height: 200px;
    overflow-y: auto;
    padding: var(--space-xs) var(--space-md);
}

.pv-msg-group-contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.pv-msg-group-contact input[type=checkbox] {
    accent-color: var(--accent);
}

.pv-msg-group-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
}

.pv-msg-btn-primary {
    flex: 1;
    padding: var(--space-xs) var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pv-msg-btn-primary:hover {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.pv-msg-btn-secondary {
    flex: 1;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pv-msg-btn-secondary:hover {
    border-color: var(--text-muted);
}

.pv-msg-request-actions-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.pv-msg-request-label {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   Vacancies Page
   ========================================================================== */

.vacancy-page .page-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-3xl);
}

.vacancy-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.vacancy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
}

.vacancy-card h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.vacancy-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.vacancy-intro {
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--space-md);
}

.vacancy-card ul {
    list-style: disc;
    padding-left: var(--space-lg);
    color: var(--text-secondary);
}

.vacancy-card li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height);
}

.vacancy-contact {
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-neon);
}

.vacancy-contact h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.vacancy-contact p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.vacancy-email {
    display: inline-block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin: var(--space-md) 0;
}

.vacancy-email:hover {
    text-decoration: underline;
}

.vacancy-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

@media (max-width: 640px) {
    .vacancy-card {
        padding: var(--space-lg);
    }

    .vacancy-contact {
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   Contacts Page
   ========================================================================== */

.contacts-page .page-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-3xl);
}

.contacts-grid {
    max-width: 720px;
    margin: 0 auto;
}

.contacts-grid h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.contacts-grid h2:first-child {
    margin-top: 0;
}

.contacts-grid p {
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--space-md);
}

.contacts-grid ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.contacts-grid li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    line-height: var(--line-height);
}

.contacts-grid li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contacts-grid a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contacts-grid a:hover {
    text-decoration: underline;
}

.contacts-grid hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-2xl) 0;
}

.contacts-grid em {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   Legal / Static Pages (Offer, Privacy, Editorial, Rules)
   ========================================================================== */

.offer-content,
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.offer-content h2,
.legal-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.offer-content h2:first-child,
.legal-content h2:first-child {
    margin-top: 0;
}

.offer-content p,
.legal-content p {
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--space-md);
}

.offer-content ul,
.legal-content ul,
.offer-content ol,
.legal-content ol {
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.offer-content li,
.legal-content li {
    margin-bottom: var(--space-sm);
}

.offer-content strong,
.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.offer-content a,
.legal-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.offer-content a:hover,
.legal-content a:hover {
    text-decoration: underline;
}

.offer-content em,
.legal-content em {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   Page Wrapper & Main
   ========================================================================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* ==========================================================================
   Hero extras (logo, stars canvas, rubrics)
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: var(--space-xl);
}

.hero-logo-img {
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

html:not([data-theme="light"]) .hero-logo-img {
    filter: invert(1);
    opacity: 0.95;
}

[data-theme="light"] .hero-logo-img {
    filter: none;
    opacity: 0.7;
}

.hero-rubrics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.hero-rubric-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-rubric-tag:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ==========================================================================
   Buttons extras
   ========================================================================== */

.btn-accent {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    opacity: 0.9;
    color: #fff;
}

/* ==========================================================================
   Icon helpers (inline SVG in headings)
   ========================================================================== */

.icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.15em;
    display: inline-block;
    stroke-width: 2;
}

.icon--accent {
    color: var(--accent);
}

.icon--accent-fill {
    color: var(--warning);
    fill: var(--warning);
    fill-opacity: 0.2;
}

/* ==========================================================================
   Content Section — featured variant
   ========================================================================== */

.content-section--featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.post-grid--useful {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ==========================================================================
   Pain Points
   ========================================================================== */

.pain-points {
    padding: var(--space-3xl) 0;
    background: var(--bg-surface);
}

.pain-points-title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.pain-points-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.pain-point-card {
    padding: var(--space-xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pain-point-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.pain-point-emoji {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.pain-point-emoji svg {
    width: 100%;
    height: 100%;
}

.pain-point-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.pain-point-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--line-height);
}

/* ==========================================================================
   Matchmaking Promo
   ========================================================================== */

.matchmaking-promo {
    padding: var(--space-3xl) 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 60%), var(--bg-base);
}

.matchmaking-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.matchmaking-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.matchmaking-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.matchmaking-title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.matchmaking-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.matchmaking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.matchmaking-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.matchmaking-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.matchmaking-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.matchmaking-card-icon svg {
    width: 100%;
    height: 100%;
}

.matchmaking-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.matchmaking-card-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--line-height);
}

/* Matchmaking features */
.matchmaking-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.matchmaking-feature {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.matchmaking-feature-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.matchmaking-feature-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.matchmaking-feature-icon svg {
    width: 100%;
    height: 100%;
}

.matchmaking-feature-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.matchmaking-feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--line-height);
}

/* Matchmaking steps */
.matchmaking-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    max-width: 960px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-lg) 0;
}

.matchmaking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 var(--space-md);
}

.matchmaking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    opacity: 0.3;
}

.matchmaking-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--bg-base);
    margin-bottom: var(--space-md);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.matchmaking-step-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    margin-bottom: var(--space-xs);
}

.matchmaking-step-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: 180px;
    line-height: 1.4;
}

/* Matchmaking CTA */
.matchmaking-cta {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.matchmaking-cta-note {
    display: block;
    width: 100%;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* ==========================================================================
   SEO FAQ
   ========================================================================== */

.seo-faq {
    padding: var(--space-3xl) 0;
    background: var(--bg-surface);
}

.seo-faq-title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.seo-faq-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.seo-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.seo-faq-item {
    border-bottom: 1px solid var(--border);
}

.seo-faq-item:first-child {
    border-top: 1px solid var(--border);
}

.seo-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
}

.seo-faq-question:hover {
    color: var(--accent);
}

.seo-faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.seo-faq-item.open .seo-faq-chevron {
    transform: rotate(180deg);
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.seo-faq-item.open .seo-faq-answer {
    max-height: 500px;
}

.seo-faq-answer-inner {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: var(--line-height);
}

.seo-faq-answer-inner a {
    color: var(--accent);
    font-weight: 500;
}

/* ==========================================================================
   Responsive: Pain Points, Matchmaking, FAQ
   ========================================================================== */

@media (max-width: 768px) {
    .pain-points-grid {
        grid-template-columns: 1fr;
    }

    .matchmaking-grid {
        grid-template-columns: 1fr;
    }

    .matchmaking-features {
        grid-template-columns: 1fr;
    }

    .matchmaking-steps {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
        max-width: 400px;
    }

    .matchmaking-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }

    .matchmaking-step:not(:last-child)::after {
        display: none;
    }

    .matchmaking-step-num {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }

    .matchmaking-step-title {
        font-size: var(--text-base);
        white-space: normal;
    }

    .matchmaking-step-desc {
        max-width: none;
        font-size: var(--text-sm);
    }

    .hero-logo-img {
        max-width: 280px;
    }

    html:not([data-theme="light"]) .hero-logo-img {
        filter: invert(1);
        opacity: 0.95;
    }
}

/* === Tablet (768px - 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .hero-logo-img {
        max-width: 340px;
    }

    html:not([data-theme="light"]) .hero-logo-img {
        filter: invert(1);
        opacity: 0.95;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-actions {
        gap: var(--space-sm);
    }

    .hero-actions .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }

    .hero-rubrics {
        gap: var(--space-xs);
    }

    .hero-rubric-tag {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .content-section {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .jtbd-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .jtbd-card {
        padding: var(--space-lg);
    }

    .jtbd-card-title {
        font-size: var(--text-lg);
    }

    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .matchmaking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .matchmaking-card {
        padding: var(--space-lg);
    }

    .matchmaking-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .matchmaking-steps {
        gap: var(--space-md);
    }

    .matchmaking-step {
        padding: 0 var(--space-sm);
    }

    .matchmaking-step-num {
        width: 44px;
        height: 44px;
        font-size: var(--text-sm);
    }

    .matchmaking-step-title {
        font-size: var(--text-base);
        white-space: normal;
    }

    .matchmaking-step-desc {
        font-size: var(--text-sm);
        max-width: 140px;
    }

    .matchmaking-step:not(:last-child)::after {
        top: 22px;
        left: calc(50% + 24px);
        width: calc(100% - 48px);
    }

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

    .footer-grid {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-xl);
    }

    .seo-faq-title {
        font-size: var(--text-2xl);
    }

    .jtbd-title {
        font-size: var(--text-2xl);
    }

    .matchmaking-title {
        font-size: var(--text-2xl);
    }

    /* Messenger button: hide on tablet if it causes layout issues */
    .pv-messenger-btn {
        width: 34px;
        height: 34px;
    }
}

/* === Small tablet / large phone (481px - 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
    .matchmaking-steps {
        max-width: 360px;
    }

    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .jtbd-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-rubrics {
        gap: var(--space-xs);
    }

    .matchmaking-steps {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }

    .matchmaking-step {
        padding: var(--space-md);
    }

    .matchmaking-step-title {
        font-size: var(--text-sm);
    }

    .matchmaking-step-desc {
        font-size: var(--text-xs);
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Ghost Comments Widget (outer container only)
   Inner styles are injected via comments-style.js into the iframe.
   ========================================================================== */

.post-comments {
    padding: var(--space-2xl) 0 var(--space-3xl);
    border-top: 1px solid var(--border);
    margin-top: var(--space-2xl);
}

.post-comments .container {
    max-width: 720px;
}

