/* ══════════════════════════════════════════════════════════════════════
   poni.social — LIGHT EDITORIAL theme (#F3F3F3 canvas)
   Estructura y jerarquía de /space pero sobre fondo claro:
   ink text, white glass panels, coral/rose/lavender accents,
   Space Grotesk + Fraunces italic.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --ink:    #2d1b3d;
    --ink-2:  #5a3f6b;
    --ink-3:  #8a6b99;

    /* semantic slots — "night" naming preserved for compat, valores claros */
    --night:        #F3F3F3;
    --night-2:      #ececec;
    --panel-night:  rgba(255, 255, 255, 0.72);
    --panel-night-2:rgba(255, 255, 255, 0.88);
    --border-night: rgba(45, 27, 61, 0.14);
    --border-dim:   rgba(45, 27, 61, 0.08);

    /* "paper" ahora = texto primario oscuro; "paper-dim" = texto secundario */
    --paper:        #1a0f28;
    --paper-dim:    #4a3560;

    --coral:    #ff7a6b;
    --coral-d:  #e04a3d;
    --peach:    #ffb380;
    --butter:   #ffd966;
    --mint:     #7ed6a0;
    --seafoam:  #6dc9cf;
    --sky:      #7fb3e8;
    --lavender: #b5a4e8;
    --rose:     #ff9ec3;
    --plum:     #a86ba8;

    /* accent para labels/kickers pequeños (mejor contraste que --rose en claro) */
    --accent-kicker: #c43c6b;

    --text:   var(--paper);
    --text-2: var(--paper-dim);
    --text-3: var(--ink-3);
    --accent:   var(--coral);
    --accent-2: var(--rose);
    --accent-3: var(--lavender);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background: var(--night);
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(45,27,61,0.18); }
::-webkit-scrollbar-track { background: transparent; }

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--night);
    color: var(--paper);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    font-feature-settings: 'ss01','ss02','tnum';
}

/* Fondo luminoso con nebulosas pastel muy suaves */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(620px 440px at 14% 18%, rgba(255,158,195,0.10) 0%, transparent 70%),
        radial-gradient(680px 480px at 82% 72%, rgba(181,164,232,0.10) 0%, transparent 70%),
        radial-gradient(500px 360px at 64% 8%, rgba(255,217,102,0.07) 0%, transparent 68%),
        radial-gradient(480px 340px at 22% 90%, rgba(109,201,207,0.07) 0%, transparent 68%),
        radial-gradient(ellipse at center, #fafafa 0%, #F3F3F3 100%);
    background-attachment: fixed;
}

/* Grano fino para textura */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.04; mix-blend-mode: multiply;
    pointer-events: none;
}

/* Page transition */
.app-container, .page-content { opacity: 1; transition: opacity 0.15s ease-out; }
.app-container.fade-out, .page-content.fade-out { opacity: 0 !important; transition: opacity 0.1s ease-in; }

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* ══ NAV (TOP BAR) — glass panel claro ══ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 10px 10px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 26px;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s;
}
.logo:hover { opacity: 0.78; }
.logo::before {
    content: 'P';
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--coral), var(--rose) 50%, var(--lavender));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    border: 2px solid #2d1b3d;
    box-shadow: 2px 2px 0 #2d1b3d;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    margin-right: 12px;
}
.logo span {
    background: linear-gradient(135deg, var(--coral-d), var(--plum));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-tagline {
    font-size: 9px;
    color: var(--accent-kicker);
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1.5px solid var(--border-night);
    background: rgba(181,164,232,0.10);
}

/* ══ CTA BUTTON (pxbtn) — coral gradient con ink border ══ */
.pxbtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border: 2px solid #2d1b3d;
    background: linear-gradient(135deg, var(--coral), var(--rose));
    color: #fff;
    font-family: 'Space Grotesk'; font-weight: 700;
    font-size: 11px; letter-spacing: 1.8px;
    cursor: pointer;
    box-shadow: 2px 2px 0 #2d1b3d, 0 0 18px rgba(255,122,107,0.25);
    transition: transform 100ms ease, box-shadow 100ms ease;
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    text-transform: uppercase;
    position: relative;
}
.pxbtn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #2d1b3d, 0 0 24px rgba(255,122,107,0.40);
}
.pxbtn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #2d1b3d; }
.pxbtn.ghost {
    background: rgba(181,164,232,0.14);
    color: var(--paper);
    border-color: var(--border-night);
    box-shadow: none;
    text-shadow: none;
}
.pxbtn.ghost:hover {
    background: rgba(181,164,232,0.24);
    border-color: var(--coral);
    box-shadow: 2px 2px 0 rgba(255,122,107,0.35);
}

/* ══ HERO (sala page) — editorial glass panel ══ */
.hero-section {
    display: block;
    padding: 36px 36px 32px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content:''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--rose) 50%, var(--lavender));
}
.hero-section::after {
    content:''; position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,158,195,0.18) 0 40%, transparent 60%);
    pointer-events: none;
}
.hero-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4.8vw, 48px);
    font-weight: 700;
    letter-spacing: -1.6px;
    line-height: 1.06;
    margin-bottom: 14px;
    color: var(--paper);
    text-wrap: pretty;
    position: relative;
}
.hero-section h1 em {
    font-style: italic;
    font-family: 'Fraunces', serif;
    background: linear-gradient(135deg, var(--coral-d), var(--plum));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}
.hero-section p {
    font-size: 15px;
    color: var(--paper-dim);
    line-height: 1.62;
    margin-bottom: 18px;
    max-width: 720px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    position: relative;
}
#hero-action { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* Kicker-style badges (sala date/sim/news) */
.sala-date-badge,
.sala-sim-badge,
.sala-news-badge {
    font-size: 9px; font-weight: 700;
    padding: 4px 10px;
    border: 1.5px solid var(--border-night);
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}
.sala-date-badge {
    color: var(--paper);
    background: rgba(181,164,232,0.12);
}
.sala-sim-badge {
    background: linear-gradient(135deg, var(--lavender), var(--plum));
    border-color: var(--lavender);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.sala-news-badge {
    background: linear-gradient(135deg, var(--mint), var(--seafoam));
    border-color: var(--mint);
    color: #1a0f28;
}

/* ══ SALA ══ */
.sala-section { margin-bottom: 24px; }
.opening-card {
    font-size: 16px; line-height: 1.72;
    padding: 24px 28px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 26px;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--paper-dim);
    position: relative;
}
.opening-card::before {
    content:''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--butter), var(--peach));
}

/* Explainer banner inside hero-section */
.sala-explainer {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(45, 27, 61, 0.04);
    border: 1.5px solid var(--border-dim);
    font-size: 13px;
    line-height: 1.55;
    color: var(--paper-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 720px;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
}
.sala-explainer:empty { display: none; }
.sala-explainer-main { color: var(--paper); font-size: 14px; }
.sala-explainer-main strong { color: var(--paper); font-weight: 700; }
.sala-explainer-sub {
    color: var(--ink-3);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Character tiles strip */
.sala-chars-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; margin-top: 4px; }
.sala-chars-strip:empty { display: none; }
.char-tile {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 8px 8px;
    border: 1.5px solid var(--border-night);
    background: var(--panel-night);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 90px;
    text-align: center;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    text-decoration: none;
}
.char-tile:hover {
    transform: translateY(-2px);
    border-color: var(--coral);
    box-shadow: 0 8px 18px rgba(255,122,107,0.18);
}
.char-tile-face {
    image-rendering: pixelated;
    width: 38px; height: 44px;
    border: 1.5px solid var(--border-night);
    background: rgba(45,27,61,0.05);
    padding: 2px;
}
.char-tile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: -0.2px;
    margin-top: 6px;
    color: var(--paper);
    line-height: 1.2;
}
.char-tile-meta {
    font-size: 9px;
    color: var(--ink-3);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Legacy char-tag */
.char-tag {
    font-size: 10px; font-weight: 700; padding: 4px 12px;
    border: 1.5px solid var(--border-night);
    color: var(--paper);
    background: rgba(181,164,232,0.10);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.char-tag:hover { border-color: var(--coral); background: rgba(255,122,107,0.14); }

/* ══ TIMELINE ══ */
.timeline { position: relative; padding: 0 0 20px 0; margin-bottom: 20px; }

.tl-round { margin-bottom: 10px; }
.tl-round-title {
    font-size: 10px; font-weight: 700; letter-spacing: 2.8px; text-transform: uppercase;
    color: var(--accent-kicker);
    padding: 26px 0 14px;
    border-bottom: 1.5px solid var(--border-night);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tl-round-title::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--coral);
    box-shadow: 0 0 10px var(--coral);
    flex-shrink: 0;
}
.tl-round-marker { display: none; }

/* Feed — masonry 3 columns */
.tl-feed { column-count: 3; column-gap: 16px; }
.tl-feed > .tl-thread {
    break-inside: avoid;
    margin-bottom: 16px;
    display: inline-block;
    width: 100%;
}
@media (max-width: 1024px) { .tl-feed { column-count: 2; } }
@media (max-width: 640px) { .tl-feed { column-count: 1; } }

/* Thread — glass panel */
.tl-thread {
    border: 1.5px solid var(--border-night);
    overflow: hidden;
    background: var(--panel-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    position: relative;
}
.tl-thread::before {
    content:''; position:absolute; top: 0; left: 0;
    width: 55%; height: 3px;
    background: linear-gradient(90deg, var(--tlc, var(--coral)), var(--tlc2, var(--rose)));
}
.tl-thread:hover {
    transform: translateY(-2px);
    border-color: var(--coral);
    box-shadow: 0 12px 28px rgba(255,122,107,0.14);
}

/* Post */
.tl-post { padding: 18px 20px 20px; }
.tl-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tl-post-header canvas {
    image-rendering: pixelated; width: 38px; height: 44px; flex-shrink: 0;
    border: 1.5px solid var(--border-night);
    background: rgba(45,27,61,0.05);
    padding: 2px;
}
.tl-post-author {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px; font-weight: 700; letter-spacing: -0.3px;
    color: var(--paper);
}
.tl-post-meta {
    font-size: 9px; color: var(--coral-d);
    letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
}
.tl-post-badge { display: none; }
.tl-post-content {
    font-size: 14.5px; line-height: 1.65;
    color: var(--paper-dim);
    font-family: 'Space Grotesk', sans-serif;
}

/* Thread count (collapsible) */
.tl-thread-count {
    font-size: 10px; font-weight: 700;
    padding: 10px 20px;
    border-top: 1.5px solid var(--border-night);
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
    background: rgba(45,27,61,0.03);
    color: var(--accent-kicker);
    text-transform: uppercase;
}
.tl-thread-count:hover { background: rgba(181,164,232,0.14); }
.tl-thread-count::after { content: ' \25BC'; font-size: 9px; }
.tl-thread-count.open::after { content: ' \25B2'; }

.tl-replies { display: none; }
.tl-replies.open { display: block; }

/* Reply */
.tl-reply {
    padding: 14px 20px 14px 34px;
    border-top: 1px dashed var(--border-dim);
    position: relative;
    background: rgba(45,27,61,0.02);
}
.tl-reply::before {
    content: ''; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--tlc, var(--coral)), var(--tlc2, var(--rose)));
}
.tl-reply-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tl-reply-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: var(--paper); }
.tl-reply-meta { font-size: 9px; color: var(--accent-kicker); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.tl-reply-content {
    font-size: 13.5px; line-height: 1.6;
    color: var(--paper-dim);
    font-family: 'Space Grotesk', sans-serif;
}

/* ══ SECTIONS ══ */
.section-divider {
    height: 1.5px;
    background: var(--border-night);
    margin: 44px 0 26px;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.8px; margin-bottom: 8px;
    color: var(--paper);
}
.section-title em {
    font-style: italic;
    font-family: 'Fraunces', serif;
    background: linear-gradient(135deg, var(--coral-d), var(--plum));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.section-sub {
    font-size: 14px; color: var(--paper-dim);
    margin-bottom: 24px; max-width: 640px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}
.section-label-geo {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    font-weight: 700;
    color: var(--accent-kicker);
    margin-bottom: 14px;
}

/* ══ REPORT ══ */
.sala-report-section { margin: 24px 0; }
.report-text {
    font-size: 15.5px; line-height: 1.78;
    color: var(--paper-dim);
    padding: 24px 28px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 18px;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
}
.report-text::before {
    content:''; position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lavender), var(--sky));
}
.highlight-card {
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: transform 120ms ease, border-color 120ms ease;
}
.highlight-card:hover {
    transform: translateY(-1px);
    border-color: var(--coral);
}
.highlight-quote {
    font-size: 15px; line-height: 1.6;
    font-family: 'Fraunces', serif;
    font-style: italic;
    margin-bottom: 8px;
    border-left: 3px solid var(--coral);
    padding-left: 14px;
    color: var(--paper);
}
.highlight-meta {
    font-size: 11px;
    color: var(--ink-3);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.3px;
}
.highlight-meta strong { color: var(--accent-kicker); font-weight: 700; }
.empty-text {
    color: var(--ink-3);
    font-size: 13px;
    padding: 40px 0;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ══ EMPTY STATE ══ */
.empty-state { text-align: center; padding: 120px 0; }
.empty-state h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px; font-weight: 700;
    letter-spacing: -1.6px; margin-bottom: 12px;
    color: var(--paper);
}
.empty-state p {
    font-size: 16px;
    color: var(--paper-dim);
    margin-bottom: 32px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}

/* ══ ARCHIVE ══ */
.archive-section { padding-bottom: 40px; }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.archive-card {
    display: block; text-decoration: none;
    color: var(--paper);
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 22px;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    position: relative;
}
.archive-card::before {
    content:''; position:absolute; top: 0; left: 0;
    width: 55%; height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--rose));
}
.archive-card:hover {
    transform: translateY(-2px);
    border-color: var(--coral);
    box-shadow: 0 10px 26px rgba(255,122,107,0.14);
}
.archive-card-date {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: var(--accent-kicker);
    font-weight: 700;
    margin-bottom: 10px;
}
.archive-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--paper);
}
.archive-card-status {
    font-size: 9px; font-weight: 700;
    padding: 3px 10px;
    border: 1.5px solid var(--border-night);
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.status-completed, .status-terminada {
    background: linear-gradient(135deg, var(--mint), var(--seafoam));
    border-color: var(--mint);
    color: #1a0f28;
}
.status-running {
    background: linear-gradient(135deg, var(--lavender), var(--plum));
    border-color: var(--lavender);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}
.status-failed {
    background: linear-gradient(135deg, var(--coral), var(--coral-d));
    border-color: var(--coral);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}
.status-pending {
    background: rgba(45,27,61,0.05);
    color: var(--paper-dim);
}
.archive-card-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.archive-card-scope {
    font-size: 9px; font-weight: 700;
    padding: 3px 10px;
    border: 1.5px solid var(--border-night);
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(181,164,232,0.10);
}
.scope-donostia { color: #2e6fb2; border-color: rgba(127,179,232,0.6); background: rgba(127,179,232,0.15); }
.scope-españa,
.scope-espana   { color: #9a7100; border-color: rgba(255,217,102,0.75); background: rgba(255,217,102,0.18); }

/* ══ CHARACTERS ══ */
.characters-section { padding-bottom: 20px; }
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    padding-bottom: 60px;
}
.char-card {
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    display: flex; gap: 14px; align-items: flex-start;
    transition: transform 120ms ease, border-color 120ms ease;
}
.char-card:hover {
    transform: translateY(-1px);
    border-color: var(--coral);
}
.char-face {
    image-rendering: pixelated;
    width: 48px; height: 56px;
    flex-shrink: 0;
    border: 1.5px solid var(--border-night);
    background: rgba(45,27,61,0.05);
    padding: 2px;
}
.char-info { flex: 1; min-width: 0; }
.char-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--paper);
}
.char-meta {
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
}
.char-profession {
    font-size: 10px;
    color: var(--accent-kicker);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.char-bio {
    font-size: 13px;
    color: var(--paper-dim);
    line-height: 1.65;
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-dim);
    font-family: 'Space Grotesk', sans-serif;
}
.char-bio.open { display: block; }
.char-toggle {
    font-size: 10px;
    color: var(--accent-kicker);
    cursor: pointer;
    margin-top: 6px;
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    padding: 0;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.char-toggle:hover { color: var(--coral); }
.char-toggle::after { content: ' \25BC'; font-size: 9px; }
.char-toggle.open::after { content: ' \25B2'; }

/* ══ CHAT ══ */
.chat-panel {
    display: none;
    margin-top: 12px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}
.chat-panel.open { display: block; }
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 80%;
    border: 1.5px solid var(--border-night);
    font-family: 'Space Grotesk', sans-serif;
}
.chat-msg.user {
    background: linear-gradient(135deg, var(--coral), var(--rose));
    color: #fff;
    border-color: var(--coral);
    align-self: flex-end;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}
.chat-msg.assistant {
    background: rgba(181,164,232,0.12);
    color: var(--paper);
    align-self: flex-start;
}
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1.5px solid var(--border-night);
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(45,27,61,0.04);
    border: 1.5px solid var(--border-night);
    color: var(--paper);
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--coral); }
.chat-input::placeholder { color: var(--ink-3); }
.chat-send {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--coral), var(--rose));
    color: #fff;
    border: 2px solid #2d1b3d;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 #2d1b3d;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.chat-send:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #2d1b3d; }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* ══ BACK TO HOME ══ */
.back-home {
    padding: 30px 0 10px;
    text-align: center;
    border-top: 1px dashed var(--border-dim);
    margin-top: 20px;
}
.back-home-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--ink-3);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.back-home-link:hover { color: var(--coral); }

/* ══ DEMO THREAD ══ */
.demo-thread {
    break-inside: avoid;
    margin-bottom: 16px;
    padding: 22px;
    border: 1.5px solid var(--border-night);
    background: var(--panel-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}
.demo-thread::before {
    content:''; position:absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lavender), var(--sky));
}
.demo-thread-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-thread-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px; font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    display: inline-block;
    padding: 4px 10px;
    border: 1.5px solid var(--lavender);
    background: linear-gradient(135deg, var(--lavender), var(--plum));
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.demo-thread-count {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.demo-thread-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.demo-thread.open .demo-thread-body { max-height: 3000px; margin-top: 16px; }
.demo-thread-post {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-dim);
}
.demo-thread-post:last-child { border-bottom: none; }
.demo-thread-author {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--paper);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}
.demo-thread-author span {
    color: var(--ink-3);
    font-weight: 500;
    font-size: 10px;
    margin-left: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.demo-thread-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--paper-dim);
    font-family: 'Space Grotesk', sans-serif;
}
.demo-thread-replies {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid var(--lavender);
}
.demo-thread-reply {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-dim);
}
.demo-thread-reply:last-child { border-bottom: none; }
.demo-thread-reply .demo-thread-content { font-size: 13.5px; color: var(--paper-dim); }

/* ══ EXECUTIVE SUMMARY ══ */
.exec-summary { margin-top: 44px; }
.exec-summary-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--accent-kicker);
    margin-bottom: 20px;
}
.exec-block { margin-bottom: 16px; }
.exec-block h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px; font-weight: 700;
    margin-bottom: 14px;
    color: var(--paper);
}
.exec-block ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.exec-block li {
    font-size: 14.5px; line-height: 1.58;
    color: var(--paper-dim);
    padding: 16px 22px 16px 40px;
    position: relative;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Space Grotesk', sans-serif;
}
.exec-block li::before {
    content: '▶';
    position: absolute;
    left: 16px;
    color: var(--coral);
    font-size: 11px;
    top: 50%; transform: translateY(-50%);
}
@media (min-width: 1200px) {
    .exec-block ul { display: grid; grid-template-columns: 1fr 1fr; }
}
.exec-quote {
    margin-top: 28px;
    padding: 22px 26px;
    border-left: 4px solid var(--coral);
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    border-left: 6px solid var(--coral);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-style: italic;
    color: var(--paper);
    line-height: 1.55;
}
.exec-quote-author {
    font-style: normal;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-kicker);
    margin-top: 12px;
}

/* ══ CASE STUDY FOOTER ══ */
.case-study-footer {
    margin-top: 44px;
    padding: 34px;
    background: var(--panel-night);
    border: 1.5px solid var(--border-night);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.case-study-footer::before {
    content:''; position:absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--rose) 50%, var(--lavender));
}
.case-study-footer::after {
    content:''; position:absolute;
    top: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,158,195,0.14) 0 40%, transparent 60%);
    pointer-events:none;
}
.case-study-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--accent-kicker);
    margin-bottom: 14px;
    position: relative;
}
.case-study-footer p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: var(--paper);
    line-height: 1.4;
    max-width: 560px;
    margin: 0 auto 16px;
    font-weight: 500;
    position: relative;
}
.case-study-cta { font-size: 13px !important; color: var(--paper-dim) !important; position: relative; }
.case-study-email {
    font-size: 18px !important;
    margin-top: 4px !important;
    font-weight: 700 !important;
    color: var(--paper) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--coral) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    position: relative;
    transition: color 0.2s;
}
.case-study-email:hover { color: var(--coral) !important; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) { .tl-feed { column-count: 2; } }
@media (max-width: 640px) {
    .app-container { padding: 16px 16px 30px; }
    nav { padding: 8px 12px 8px 8px; margin-bottom: 20px; }
    .logo { font-size: 14px; }
    .logo::before { width: 28px; height: 28px; font-size: 16px; margin-right: 10px; }
    .nav-tagline { display: none; }
    .hero-section { padding: 24px 22px; }
    .hero-section h1 { font-size: 26px; letter-spacing: -1px; }
    .hero-section p { font-size: 14px; }
    .tl-feed { column-count: 1; }
    .section-title { font-size: 22px; }
    .empty-state h1 { font-size: 28px; }

    .tl-post-content { font-size: 15px; line-height: 1.65; }
    .tl-post-author { font-size: 15px; }
    .tl-post-meta { font-size: 10px; }
    .tl-reply-content { font-size: 14px; line-height: 1.6; }
    .tl-reply-name { font-size: 13.5px; }

    .char-tile { width: calc(33.333% - 7px); padding: 8px 4px 6px; }
    .char-tile-face { width: 36px; height: 42px; }
    .char-tile-name { font-size: 11px; }

    .report-text { font-size: 14.5px; }
    .highlight-quote { font-size: 14px; }

    .archive-card-title { font-size: 15px; }
    .archive-card-date { font-size: 10px; }

    .section-sub { font-size: 13px; }
    .tl-round-title { font-size: 10px; padding: 18px 0 10px; }
    .tl-thread-count { font-size: 10px; }

    .characters-section { display: none; }

    .section-divider { margin: 30px 0 20px; }
    .sala-chars-strip { display: none; }
    .archive-section { padding-bottom: 20px; }

    .exec-block h3 { font-size: 16px; }
    .exec-block li { font-size: 14px; padding: 14px 18px 14px 34px; }

    .char-card { align-items: center; padding: 16px; }
    .char-face { width: 42px; height: 50px; }

    .case-study-footer { padding: 24px 20px; }
    .case-study-footer p { font-size: 16px; }
    .case-study-email { font-size: 16px !important; }
}
