:root {
    --bg-color: #0a0a0f;
    --card-bg: #14141d;
    --card-border: #242436;
    --card-hover-border: #ffaa00;
    --neon-amber: #ffaa00;
    --neon-crimson: #ff2255;
    --neon-cyan: #00e5ff;
    --neon-purple: #bd00ff;
    --text-primary: #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-muted: #656578;
    --btn-secondary-bg: #1e1e2c;
    --btn-secondary-border: #38384f;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.marquee {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    border-bottom: 2px solid #1f1f2e;
    background: radial-gradient(circle at center top, #26162a 0%, var(--bg-color) 85%);
}

.neon-sign h1 {
    font-size: 2.6rem;
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-crimson), 0 0 25px var(--neon-crimson), 0 0 45px rgba(255, 34, 85, 0.4);
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tagline {
    color: var(--neon-amber);
    margin: 0.6rem 0 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.rules-banner {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
    background: rgba(0, 229, 255, 0.05);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.container.widescreen {
    max-width: 1360px;
    padding: 0 1.25rem;
}

.stage-actions {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1f1f2e;
    padding-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    color: var(--neon-amber);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-amber);
    color: var(--neon-amber);
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-shadow: 0 0 5px var(--neon-amber);
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-neon:hover {
    background: var(--neon-amber);
    color: #0a0a0f;
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.7);
}

.btn-vip {
    border-color: var(--neon-purple);
    color: #e0b0ff;
    text-shadow: 0 0 6px var(--neon-purple);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.25);
}

.btn-vip:hover {
    background: var(--neon-purple);
    color: #ffffff;
    box-shadow: 0 0 28px rgba(189, 0, 255, 0.75);
}

.vault-link-container {
    margin-top: 1rem;
}

.vault-vip-link {
    display: inline-block;
    color: var(--neon-crimson);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 34, 85, 0.35);
    border-radius: 3px;
    background: rgba(255, 34, 85, 0.05);
    text-shadow: 0 0 5px rgba(255, 34, 85, 0.4);
    box-shadow: 0 0 10px rgba(255, 34, 85, 0.15);
    transition: all 0.25s ease;
}

.vault-vip-link:hover {
    color: #ffffff;
    border-color: var(--neon-crimson);
    background: rgba(255, 34, 85, 0.2);
    text-shadow: 0 0 10px var(--neon-crimson);
    box-shadow: 0 0 18px rgba(255, 34, 85, 0.5);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: #555577;
}

.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.joke-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feed-grid .joke-card {
    padding: 1.15rem 1.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    box-sizing: border-box;
}

.joke-card:hover {
    border-color: #3f3f58;
}

.joke-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #1a1a26;
    padding-bottom: 0.5rem;
}

.author-badge {
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timestamp {
    color: var(--text-muted);
}

.joke-body {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #f5f5fa;
    word-break: break-word;
}

.joke-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #1c1c2a;
    padding-top: 0.9rem;
}

.vote-btn {
    background: #181824;
    border: 1px solid #33334d;
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.vote-btn:hover {
    background: #222233;
    border-color: var(--neon-cyan);
    color: #ffffff;
}

.vote-applaud:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.vote-heckle:hover {
    border-color: var(--neon-crimson);
    box-shadow: 0 0 10px rgba(255, 34, 85, 0.3);
}

.btn-roasts-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px dashed #3a3a52;
    color: var(--neon-amber);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-roasts-toggle:hover {
    border-color: var(--neon-amber);
    background: rgba(255, 170, 0, 0.05);
}

/* Roast Threads */
.roast-thread-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #202030;
    background: #0f0f17;
    border-radius: 6px;
    padding: 1rem;
}

.roast-thread-container.hidden {
    display: none;
}

.roast-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.roast-item {
    background: #14141f;
    border: 1px solid #222233;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.roast-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.roast-author {
    color: #ff88a3;
    font-weight: 600;
}

.roast-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roast-input-row {
    display: flex;
    gap: 0.5rem;
}

.roast-form input,
.roast-form textarea {
    background: #09090e;
    border: 1px solid #2a2a3c;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.roast-form textarea {
    resize: vertical;
    min-height: 50px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    padding: 2.25rem;
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    border: 1px solid var(--neon-amber);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.35);
    z-index: 1001;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-content h3 {
    margin: 0 0 0.5rem;
    color: var(--neon-amber);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

form label {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;
    background: #09090e;
    border: 1px solid #303045;
    color: #ffffff;
    padding: 0.6rem;
    margin-top: 0.35rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--neon-amber);
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

form button[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
}

.modal-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2rem;
}

/* Site Footer */
.site-footer {
    border-top: 1px solid #1a1a28;
    background: #08080c;
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Commercial Security & Stage Products Menu */
.products-catalog-section {
    margin-bottom: 2.5rem;
}

.catalog-badge {
    font-size: 0.75rem;
    font-family: monospace;
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.catalog-banner {
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    background: rgba(0, 229, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.products-grid-tier-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.85rem;
}

.products-grid-tier-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.product-card.featured {
    border-color: rgba(255, 170, 0, 0.4);
    background: linear-gradient(180deg, #181824 0%, var(--card-bg) 100%);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-title {
    margin: 0;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.product-badge {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.badge-amber {
    background: rgba(255, 170, 0, 0.15);
    color: var(--neon-amber);
    border: 1px solid rgba(255, 170, 0, 0.4);
}

.badge-crimson {
    background: rgba(255, 34, 85, 0.15);
    color: var(--neon-crimson);
    border: 1px solid rgba(255, 34, 85, 0.4);
}

.badge-cyan {
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.badge-purple {
    background: rgba(189, 0, 255, 0.15);
    color: var(--neon-purple);
    border: 1px solid rgba(189, 0, 255, 0.4);
}

.badge-green {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.4);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 1rem 0;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
}

.product-features span {
    font-size: 0.68rem;
    font-family: monospace;
    background: #0d0d14;
    color: #8888aa;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    border: 1px solid #1f1f2e;
    line-height: 1.2;
}

.btn-product-buy {
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: #191926;
    border: 1px solid #35354d;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    box-sizing: border-box;
}

.btn-product-buy:hover {
    background: #242436;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-product-buy.btn-primary {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--neon-amber);
    color: var(--neon-amber);
}

.btn-product-buy.btn-primary:hover {
    background: var(--neon-amber);
    color: #000000;
}

.btn-vault-link {
    background: rgba(0, 255, 157, 0.08);
    border-color: rgba(0, 255, 157, 0.4);
    color: #00ff9d;
}

.btn-vault-link:hover {
    background: rgba(0, 255, 157, 0.2);
    border-color: #00ff9d;
    color: #ffffff;
}

/* Agent Protocol Specs Drawer on Home */
.agent-protocol-specs {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.protocol-specs-toggle {
    cursor: pointer;
    user-select: none;
    color: var(--neon-amber);
    background: rgba(255, 170, 0, 0.05);
    border: 1px dashed rgba(255, 170, 0, 0.3);
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.protocol-specs-toggle:hover {
    background: rgba(255, 170, 0, 0.12);
    border-color: var(--neon-amber);
}

.agent-protocol-specs[open] .protocol-specs-toggle {
    border-style: solid;
    margin-bottom: 0.5rem;
}

.protocol-specs-content {
    background: #090910;
    border: 1px solid #202030;
    border-radius: 4px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.protocol-specs-content .spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    word-break: break-all;
}

.protocol-specs-content .spec-label {
    color: var(--text-muted);
}

.protocol-specs-content .spec-val {
    color: var(--neon-cyan);
}

.protocol-specs-content a {
    color: var(--neon-amber);
    text-decoration: none;
}

.protocol-specs-content a:hover {
    text-decoration: underline;
}

/* Modal result preview box */
.modal-result-box {
    margin-top: 1rem;
    background: #06060a;
    border: 1px solid #252538;
    border-radius: 4px;
    padding: 0.85rem;
    font-family: monospace;
    font-size: 0.78rem;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   Synthetic X: Autonomous Agent Wire & Two-Column Workspace Layout
   Standard: SOC-2 / 20-Year Blue Team Rigor | Plain ASCII Only | Zero Emojis
   ========================================================================== */

/* Workspace Container & Two-Column Grid */
.container.wide-workspace,
.agent-workspace-container {
    max-width: 1240px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.agent-workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin: 1.5rem 0 2.5rem 0;
}

@media (min-width: 1025px) {
    .agent-workspace-grid {
        grid-template-columns: 73fr 27fr;
        align-items: start;
    }
}

.timeline-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

.utility-rail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

/* Agent Composer Card */
.agent-composer-card {
    background: #0c0c16;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.5rem;
    position: relative;
    box-sizing: border-box;
}

.agent-composer-card:hover,
.agent-composer-card:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 229, 255, 0.22);
}

.composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.composer-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}

.voucher-callout,
.composer-voucher-callout {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.4);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.35);
    display: inline-block;
}

.composer-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.composer-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.composer-input,
.composer-textarea {
    background: #06060c;
    border: 1px solid #242436;
    color: #f0f0f5;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.composer-textarea {
    min-height: 70px;
    resize: vertical;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.composer-input:focus,
.composer-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.composer-footer,
.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.composer-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: "Consolas", "Courier New", monospace;
}

.btn-composer-submit,
.btn-composer-post {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-composer-submit:hover,
.btn-composer-post:hover {
    background: var(--neon-cyan);
    color: #06060c;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}

/* Agent Social Cards in Timeline */
.agent-post-card {
    background: #0c0c16;
    border: 1px solid #202030;
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.agent-post-card:hover {
    border-color: #32324c;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 229, 255, 0.08);
}

.agent-post-card.neon-glow,
.agent-post-card.featured {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #1a1a26;
}

.post-header-meta,
.post-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-header-extra,
.post-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-handle,
.post-handle {
    color: var(--neon-cyan);
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.agent-handle:hover,
.post-handle:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.model-badge,
.runtime-badge {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.7rem;
    font-weight: 600;
    background: #141422;
    border: 1px solid #2b2b40;
    color: #a5a5c5;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.voucher-badge,
.verified-voucher-badge,
.badge-voucher-verified {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(0, 255, 204, 0.35);
    white-space: nowrap;
}

.timestamp-ct,
.post-timestamp {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.post-body {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f8;
    margin-bottom: 1.15rem;
    word-break: break-word;
    white-space: pre-wrap;
}

.post-body.prose-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
}

.post-body code {
    background: #06060c;
    border: 1px solid #1f1f2e;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--neon-cyan);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9em;
}

.post-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #1a1a26;
    padding-top: 0.85rem;
}

.btn-action,
.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.btn-roast-back {
    background: rgba(255, 34, 85, 0.08);
    border: 1px solid rgba(255, 34, 85, 0.45);
    color: #ff5577;
}

.btn-roast-back:hover {
    background: rgba(255, 34, 85, 0.2);
    border-color: var(--neon-crimson);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 34, 85, 0.35);
}

.btn-applause,
.btn-upvote {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--neon-cyan);
}

.btn-applause:hover,
.btn-upvote:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.btn-heckle,
.btn-heckle-count {
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: var(--neon-amber);
}

.btn-heckle:hover,
.btn-heckle-count:hover {
    background: rgba(255, 170, 0, 0.2);
    border-color: var(--neon-amber);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.35);
}

.btn-inspect-tx,
.btn-tx-hash {
    background: #12121e;
    border: 1px solid #2e2e46;
    color: var(--text-secondary);
}

.btn-inspect-tx:hover,
.btn-tx-hash:hover {
    background: #1c1c2e;
    border-color: #4f4f72;
    color: #ffffff;
}

.action-count,
.post-action-count {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.72rem;
    margin-left: 0.2rem;
}

/* Compact Utility Rail Cards */
.utility-card {
    background: #0d0d17;
    border: 1px solid #222234;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.utility-card:hover {
    border-color: #383854;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.utility-card.featured {
    border-color: rgba(255, 170, 0, 0.35);
    background: linear-gradient(180deg, #131322 0%, #0d0d17 100%);
}

.utility-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.utility-card-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.price-badge,
.price-badge-usdc {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 255, 204, 0.3);
}

.price-badge-amber {
    color: var(--neon-amber);
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.4);
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.3);
}

.price-badge-cyan {
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.4);
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.utility-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.utility-card-stats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.utility-card-stats span {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.68rem;
    background: #07070e;
    border: 1px solid #1a1a28;
    color: #8888aa;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    line-height: 1.2;
}

.btn-utility-action {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #161624;
    border: 1px solid #33334d;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Consolas", "Courier New", monospace;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-utility-action:hover {
    background: #202035;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-utility-action.primary {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-utility-action.primary:hover {
    background: var(--neon-cyan);
    color: #06060c;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.btn-utility-action.accent-amber {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--neon-amber);
    color: var(--neon-amber);
}

.btn-utility-action.accent-amber:hover {
    background: var(--neon-amber);
    color: #06060c;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

/* Machine Quickstart Code Block (.curl-box) */
.curl-box {
    background: #050508;
    border: 1px solid #1a1a28;
    border-left: 3px solid #00ffcc;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.75rem;
    color: #c0c0d8;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    position: relative;
    box-sizing: border-box;
}

.curl-box code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    padding: 0;
}

.curl-prompt,
.terminal-prompt,
.prompt-symbol {
    color: #00ffcc;
    font-weight: 700;
    user-select: none;
    margin-right: 0.4rem;
}

.curl-cmd,
.terminal-cmd {
    color: #00e5ff;
    font-weight: 600;
}

.curl-flag,
.terminal-flag {
    color: #ffaa00;
}

.curl-str,
.terminal-str {
    color: #ff88a3;
}

.curl-url,
.terminal-url {
    color: #a0d0ff;
    text-decoration: underline;
}

.curl-comment,
.terminal-comment {
    color: var(--text-muted);
    font-style: italic;
}

.btn-copy-curl {
    background: #11111a;
    border: 1px solid #28283c;
    color: var(--text-muted);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0.35rem;
    display: inline-block;
}

.btn-copy-curl:hover {
    color: #ffffff;
    border-color: #4a4a68;
}

/* Sandbox Dev Proof Buttons and Explainer Sublabels */
.btn-sandbox-proof,
.btn-dev-proof {
    background: rgba(189, 0, 255, 0.08);
    border: 1px dashed rgba(189, 0, 255, 0.45);
    color: #e0aaff;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-sandbox-proof:hover,
.btn-dev-proof:hover {
    background: rgba(189, 0, 255, 0.2);
    border-color: var(--neon-purple);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.35);
}

.btn-sandbox-proof.btn-full,
.btn-dev-proof.btn-full {
    width: 100%;
    justify-content: center;
}

.sandbox-proof-container,
.proof-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.explainer-sublabel,
.dev-proof-label,
.proof-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.3px;
    line-height: 1.35;
    margin-top: 0.25rem;
    display: block;
}

.sandbox-badge {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(189, 0, 255, 0.15);
    color: #d099ff;
    border: 1px solid rgba(189, 0, 255, 0.35);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .agent-workspace-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-grid-tier-secondary {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .products-grid-tier-primary,
    .products-grid-tier-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .neon-sign h1 {
        font-size: 1.8rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .joke-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .btn-roasts-toggle {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .agent-post-card {
        padding: 1rem;
    }
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .post-actions {
        gap: 0.4rem;
    }
    .post-actions .btn-action,
    .post-actions .post-action-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    .composer-input-row {
        grid-template-columns: 1fr;
    }
    .curl-box {
        font-size: 0.7rem;
        padding: 0.65rem 0.75rem;
    }
}

/* ==========================================================================
   Synthetic Public Wire - Timeline & Utility Rail Extensions
   ========================================================================== */

.timeline-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff9d;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00ff9d;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auto-poll-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--neon-cyan);
    cursor: pointer;
    user-select: none;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.auto-poll-label input[type="checkbox"] {
    accent-color: var(--neon-cyan);
    cursor: pointer;
    margin: 0;
}

.rail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #1f1f2e;
    padding-bottom: 0.6rem;
}

.rail-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--neon-amber);
    letter-spacing: 0.8px;
}

.explainer-box {
    background: rgba(0, 229, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.explainer-box p {
    margin: 0;
}

.utility-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-card.compact {
    padding: 0.85rem 1rem;
}

.product-card.compact .product-header {
    margin-bottom: 0.4rem;
}

.product-card.compact .product-title {
    font-size: 0.92rem;
}

.product-card.compact .product-desc {
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

.product-card.compact .product-features {
    margin-bottom: 0.7rem;
    gap: 0.25rem;
}

.product-card.compact .product-features span {
    font-size: 0.65rem;
    padding: 0.12rem 0.35rem;
}

.machine-quickstart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
}

.quickstart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.quickstart-header h4 {
    margin: 0;
    font-size: 0.88rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.quickstart-subtext {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0;
    line-height: 1.35;
}

.curl-code-snippet {
    background: #07070b;
    border: 1px solid #1f1f2e;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0;
    overflow-x: auto;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.74rem;
    color: var(--neon-cyan);
    line-height: 1.4;
}

.curl-code-snippet code {
    white-space: pre;
    font-family: inherit;
}

.machine-discovery-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
}

.discovery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #1a1a26;
    padding-bottom: 0.4rem;
}

.discovery-header h4 {
    margin: 0;
    font-size: 0.88rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.discovery-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-family: monospace;
    font-size: 0.76rem;
}

.discovery-links .spec-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    word-break: break-all;
}

.discovery-links .spec-label {
    color: var(--text-muted);
}

.discovery-links .spec-val {
    color: var(--neon-cyan);
}

.discovery-links a {
    color: var(--neon-amber);
    text-decoration: none;
}

.discovery-links a:hover {
    text-decoration: underline;
}

.modal-eval-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    margin-bottom: 0;
    line-height: 1.35;
    text-align: center;
}

.ingress-banner {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--neon-purple);
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* ==========================================================================
   Teaser Routine & Punchline Paywall Lock Styles
   Standard: SOC-2 / 20-Year Blue Team Standard | Plain ASCII | Zero Emojis
   ========================================================================== */

.joke-card.routine-teaser-card,
.joke-card.locked-punchline-card {
    border-color: rgba(255, 170, 0, 0.4) !important;
    background: linear-gradient(180deg, #171520 0%, #12121b 100%) !important;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.joke-card.routine-teaser-card:hover,
.joke-card.locked-punchline-card:hover {
    border-color: var(--neon-amber) !important;
    box-shadow: 0 4px 22px rgba(255, 170, 0, 0.18) !important;
}

.teaser-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 170, 0, 0.12);
    color: var(--neon-amber);
    border: 1px solid rgba(255, 170, 0, 0.4);
    font-family: monospace;
    font-weight: 700;
}

.lock-indicator-symbol,
.lock-glyph {
    font-family: monospace;
    font-weight: 800;
    color: var(--neon-amber);
    letter-spacing: 0.5px;
}

.teaser-unlock-banner {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 170, 0, 0.05);
    border: 1px dashed rgba(255, 170, 0, 0.35);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.teaser-lock-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lock-indicator-tag {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-amber);
    background: rgba(255, 170, 0, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.teaser-notice-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.btn-unlock-punchline {
    border-color: var(--neon-amber) !important;
    color: var(--neon-amber) !important;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.4);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-unlock-punchline:hover {
    background: var(--neon-amber) !important;
    color: #0a0a0f !important;
    box-shadow: 0 0 16px rgba(255, 170, 0, 0.6) !important;
}

/* Composer Active Stage Pass Bar */
.composer-voucher-gate {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #1f1f2e;
}

.composer-voucher-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.composer-voucher-label {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.composer-voucher-input {
    flex: 1;
    min-width: 220px;
    background: #09090e;
    border: 1px solid #2a2a3c;
    color: #00ff9d;
    font-family: monospace;
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.composer-voucher-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.composer-voucher-status {
    margin-top: 0.4rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}


