/* Page styles for deepdish_rg.html (extracted from inline <style>) */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&family=Share+Tech+Mono&display=swap');

/* === UX REDESIGN: HERO + VALUE PROP === */
/* === DEMO IMAGE CARDS === */
.demo-card-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(139, 233, 253, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(139, 233, 253, 0.08);
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.92;
    filter: saturate(0.85) contrast(1.05);
}
.demo-card-img:hover {
    opacity: 1;
    filter: saturate(1) contrast(1.1);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(139, 233, 253, 0.15);
    border-color: rgba(139, 233, 253, 0.5);
}
.hero-header-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 233, 253, 0.1);
    transition: all 0.4s ease;
    opacity: 0.95;
}
.hero-header-img:hover {
    opacity: 1;
    transform: scale(1.01);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4), 0 0 60px rgba(139, 233, 253, 0.18);
}
.hero-radgotchi-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 0.6rem;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(139, 233, 253, 0.35);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(139, 233, 253, 0.15), inset 0 0 60px rgba(139, 233, 253, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
    filter: saturate(0.9) contrast(1.05);
}
.hero-radgotchi-img:hover {
    opacity: 1;
    filter: saturate(1) contrast(1.1);
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(139, 233, 253, 0.25);
    border-color: rgba(139, 233, 253, 0.6);
}
/* Hero Radgotchi - clean style, no container box */
.radgotchi-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.5rem auto 0.8rem;
    cursor: pointer;
    text-align: center;
}
.radgotchi-hero .radgotchi-face {
    width: 280px;
    height: auto;
    /* CRT cyan filter */
    filter: invert(1) sepia(1) saturate(6) hue-rotate(160deg) brightness(1.2)
            drop-shadow(0 0 8px rgba(139, 233, 253, 0.6))
            drop-shadow(0 0 20px rgba(139, 233, 253, 0.4))
            drop-shadow(0 0 40px rgba(139, 233, 253, 0.2))
            contrast(1.1);
    transition: all 0.3s ease;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.radgotchi-hero:hover .radgotchi-face {
    filter: invert(1) sepia(1) saturate(6) hue-rotate(160deg) brightness(1.3)
            drop-shadow(0 0 12px rgba(139, 233, 253, 0.8))
            drop-shadow(0 0 30px rgba(139, 233, 253, 0.6))
            drop-shadow(0 0 60px rgba(139, 233, 253, 0.3))
            contrast(1.15);
    transform: scale(1.05);
}
.radgotchi-hero .radgotchi-status {
    font-size: 0.65rem;
    margin-top: 0.4rem;
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
}
@media (max-width: 768px) {
    .radgotchi-hero .radgotchi-face {
        width: 200px;
    }
    .radgotchi-hero .radgotchi-status {
        font-size: 0.55rem;
    }
}
.feature-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    margin: 0.6rem 0;
    padding: 0.3rem;
}
.feature-preview-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(139, 233, 253, 0.18);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #8be9fd), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-preview-card:hover {
    background: rgba(139, 233, 253, 0.05);
    border-color: rgba(139, 233, 253, 0.35);
    transform: translateY(-3px);
}
.feature-preview-card:hover::before { opacity: 1; }
.feature-preview-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}
.feature-preview-card:hover img { opacity: 1; }
.feature-preview-card h4 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    color: #8be9fd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.2rem 0;
}
.feature-preview-card p {
    font-size: 0.55rem;
    color: #6a8a9a;
    line-height: 1.35;
    margin: 0;
}
.feature-preview-card:hover p { color: #9aafba; }
.feature-preview-card.pink { --accent: #ff79c6; }
.feature-preview-card.pink h4 { color: #ff79c6; }
.feature-preview-card.green { --accent: #50fa7b; }
.feature-preview-card.green h4 { color: #50fa7b; }
.feature-preview-card.yellow { --accent: #f1fa8c; }
.feature-preview-card.yellow h4 { color: #f1fa8c; }

.hero-value-section {
    text-align: center;
    padding: 0.8rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-family: 'Special Elite', monospace;
    font-size: 1.3rem;
    color: #8be9fd;
    letter-spacing: 0.08em;
    margin: 0 0 0.15rem 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
}
.hero-subtitle {
    color: #ff79c6;
    font-size: 0.72rem;
    margin: 0 0 0.4rem 0;
    font-style: italic;
    opacity: 0.9;
}
.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}
.hero-benefit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    color: #9aafba;
    transition: all 0.3s ease;
}
.hero-benefit:hover { color: #8be9fd; }
.hero-benefit-icon {
    font-size: 0.8rem;
    filter: grayscale(0.3);
}
.hero-benefit:hover .hero-benefit-icon { filter: grayscale(0); }

/* === PROMINENT INSTALL CTA === */
.install-hero {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.12) 0%, rgba(139, 233, 253, 0.08) 50%, rgba(80, 250, 123, 0.12) 100%);
    border: 2px solid rgba(80, 250, 123, 0.4);
    padding: 0.6rem 0.8rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 25px rgba(80, 250, 123, 0.15), inset 0 0 40px rgba(80, 250, 123, 0.03);
}
.install-hero::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 250, 123, 0.2), transparent);
    animation: install-shimmer 3s infinite;
}
.install-hero-title {
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    color: #50fa7b;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(80, 250, 123, 0.6);
}
.install-hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
}
.install-hero .install-commands-area { flex: 1; max-width: 500px; }
.install-hero .install-link {
    padding: 0.45rem 1.8rem;
    font-size: 0.65rem;
    border-width: 2px;
}

/* === QUICK WHAT IS SECTION === */
.what-is-section {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.5rem 0.7rem;
    margin: 0.4rem 0;
    text-align: center;
}
.what-is-question {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}
.what-is-answer {
    color: #9aafba;
    font-size: 0.68rem;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}
.what-is-answer strong { color: #8be9fd; }

/* === FEATURE SHOWCASE CARDS === */
.feature-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0.5rem 0;
}
.feature-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #8be9fd), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    background: rgba(139, 233, 253, 0.06);
    border-color: rgba(139, 233, 253, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 233, 253, 0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-icon {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}
.feature-card:hover .feature-card-icon { filter: grayscale(0); transform: scale(1.1); }
.feature-card-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #8be9fd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}
.feature-card-desc {
    font-size: 0.55rem;
    color: #6a8a9a;
    line-height: 1.3;
}
.feature-card:hover .feature-card-desc { color: #9aafba; }

/* Feature card accent colors */
.feature-card.chat { --card-accent: #ff79c6; }
.feature-card.chat .feature-card-title { color: #ff79c6; }
.feature-card.xp { --card-accent: #f1fa8c; }
.feature-card.xp .feature-card-title { color: #f1fa8c; }
.feature-card.system { --card-accent: #50fa7b; }
.feature-card.system .feature-card-title { color: #50fa7b; }

/* === DEMO VIDEO === */
.demo-video-wrap {
    margin-top: 0.3rem;
}
.demo-video-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.45rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.15rem;
    text-align: center;
}
.demo-video-wrap video {
    width: 100%;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}
.demo-video-wrap video:hover {
    opacity: 1;
}

/* === SECTION DIVIDERS === */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0 0.4rem;
    color: #4a7a8a;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.3), transparent);
}

/* === COLLAPSIBLE DEEP DIVE SECTIONS === */
.deep-dive-toggle {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.3rem 0.5rem;
    margin: 0.3rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 0.6rem;
}
.deep-dive-toggle:hover {
    background: rgba(139, 233, 253, 0.05);
    border-color: rgba(139, 233, 253, 0.3);
}
.deep-dive-toggle-title {
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.deep-dive-toggle-hint {
    color: #4a7a8a;
    font-size: 0.5rem;
}
.deep-dive-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.deep-dive-content.expanded { max-height: 2000px; }

/* === PLATFORM BADGES === */
.platform-badges {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.3rem 0;
    flex-wrap: wrap;
}
.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(80, 250, 123, 0.3);
    background: rgba(80, 250, 123, 0.05);
    font-size: 0.55rem;
    color: #50fa7b;
    transition: all 0.3s ease;
}
.platform-badge:hover {
    background: rgba(80, 250, 123, 0.15);
    border-color: rgba(80, 250, 123, 0.6);
    transform: scale(1.05);
}

/* === RESPONSIVE UX FIXES === */
@media (max-width: 768px) {
    .hero-tagline { font-size: 1rem; letter-spacing: 0.05em; }
    .hero-subtitle { font-size: 0.6rem; }
    .hero-benefits { gap: 0.6rem; }
    .hero-benefit { font-size: 0.52rem; }
    .feature-showcase { grid-template-columns: 1fr 1fr; }
    .install-hero-row { flex-direction: column; gap: 0.5rem; }
    .install-hero .install-commands-area { max-width: 100%; }
}
@media (max-width: 480px) {
    .hero-tagline { font-size: 0.85rem; }
    .feature-showcase { grid-template-columns: 1fr; }
    .hero-benefits { flex-direction: column; gap: 0.3rem; }
    .platform-badges { gap: 0.3rem; }
    .platform-badge { font-size: 0.48rem; padding: 0.15rem 0.35rem; }
}

.project-writeup {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(139, 233, 253, 0.1);
    border-top-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    line-height: 1.15;
    font-family: 'Courier Prime', 'Courier New', monospace;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
}

.project-writeup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 233, 253, 0.015) 2px, rgba(139, 233, 253, 0.015) 4px);
    pointer-events: none;
    z-index: 1;
}

.classified-header {
    text-align: center;
    border: 3px solid #c41e3a;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.25rem;
    background: rgba(196, 30, 58, 0.1);
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}
.classified-header:hover {
    background: rgba(196, 30, 58, 0.2);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3), inset 0 0 20px rgba(196, 30, 58, 0.1);
}
.classified-header:hover h1 {
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.8);
    letter-spacing: 0.5em;
}
.classified-header h1 {
    color: #c41e3a;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.classification-stamp {
    position: absolute;
    top: -10px; right: 20px;
    background: #000000;
    padding: 0 10px;
    color: #c41e3a;
    font-weight: bold;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
}

.document-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.3rem;
    font-size: 0.6rem;
}
.document-bar-item {
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.15rem 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}
.document-bar-item:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.15);
}
.document-bar-item label {
    color: #4a7a8a;
    display: block;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
}
.document-bar-item:hover label { color: #8be9fd; }
.document-bar-item span {
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    transition: text-shadow 0.3s ease;
}
.document-bar-item:hover span { text-shadow: 0 0 8px rgba(139, 233, 253, 0.5); }

.document-info {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.62rem;
    color: #6a8a9a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem 0.8rem;
    transition: all 0.3s ease;
}
.document-info:hover {
    background: rgba(139, 233, 253, 0.03);
    border-color: rgba(139, 233, 253, 0.4);
}
.document-info p {
    margin: 0.1rem 0;
    color: #6a8a9a;
    transition: all 0.2s ease;
    padding: 0.1rem;
}
.document-info p:hover {
    background: rgba(139, 233, 253, 0.05);
    color: #8be9fd;
}

.project-writeup h2 {
    color: #8be9fd;
    margin-top: 0.35rem;
    margin-bottom: 0.1rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.3);
    padding-bottom: 0.08rem;
    font-family: 'Special Elite', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: default;
}
.project-writeup h2:hover {
    color: #b4f8c3;
    border-bottom-color: rgba(180, 248, 195, 0.5);
    text-shadow: 0 0 10px rgba(180, 248, 195, 0.5);
    padding-left: 10px;
}
.project-writeup h2:hover .section-number { color: #8be9fd; }

.project-writeup h3 {
    color: #5fcfdf;
    margin-top: 0.25rem;
    margin-bottom: 0.1rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: default;
}
.project-writeup h3:hover {
    color: #8be9fd;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
    padding-left: 8px;
}

.project-writeup p {
    color: #9aafba;
    margin-bottom: 0.15rem;
    text-align: justify;
    font-size: 0.68rem;
}
.project-writeup ul, .project-writeup ol {
    color: #9aafba;
    margin-left: 1rem;
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
}
.project-writeup li {
    margin-bottom: 0.05rem;
    transition: all 0.2s ease;
    padding: 0.05rem 0;
}
.project-writeup li:hover {
    color: #8be9fd;
    padding-left: 5px;
}

.project-writeup code {
    background: #0a0a0a;
    color: #8be9fd;
    padding: 0.1rem 0.2rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.63rem;
    border: 1px solid rgba(139, 233, 253, 0.2);
    transition: all 0.2s ease;
}
.project-writeup code:hover {
    background: rgba(139, 233, 253, 0.15);
    border-color: rgba(139, 233, 253, 0.5);
    color: #b4f8c3;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.3);
}

.project-writeup a {
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.2s;
}
.project-writeup a:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
}

.project-writeup img {
    filter: grayscale(30%) contrast(1.1);
    border: none !important;
    transition: all 0.4s ease;
    cursor: pointer;
}
.project-writeup img:hover {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 233, 253, 0.3);
}

.section-number {
    color: #4a7a8a;
    font-size: 0.6rem;
    margin-right: 0.3rem;
}

.stamp {
    position: absolute;
    transform: rotate(-15deg);
    border: 3px solid;
    padding: 0.25rem 0.5rem;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    letter-spacing: 0.2em;
    opacity: 0.5;
    pointer-events: auto;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.stamp:hover { opacity: 0.9; transform: rotate(-15deg) scale(1.15); }
.stamp.approved {
    color: #8be9fd; border-color: #8be9fd;
    top: 60px; right: 30px;
}
.stamp.approved:hover { box-shadow: 0 0 20px rgba(139, 233, 253, 0.5); text-shadow: 0 0 10px rgba(139, 233, 253, 0.8); }
.stamp.eyes-only {
    color: #c41e3a; border-color: #c41e3a;
    bottom: 80px; left: 20px;
    transform: rotate(12deg);
}
.stamp.eyes-only:hover { box-shadow: 0 0 20px rgba(196, 30, 58, 0.5); text-shadow: 0 0 10px rgba(196, 30, 58, 0.8); transform: rotate(12deg) scale(1.15); }

.ticker-wrap {
    overflow: hidden;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 0.1rem 0;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
    cursor: default;
}
.ticker-wrap:hover { background: rgba(196, 30, 58, 0.2); border-color: rgba(196, 30, 58, 0.5); }
.ticker-wrap:hover .ticker { animation-play-state: paused; color: #ff6b6b; }
.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: #c41e3a;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.mini-stat {
    text-align: center;
    padding: 0.15rem;
    border: 1px solid rgba(139, 233, 253, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}
.mini-stat:hover {
    background: rgba(139, 233, 253, 0.1);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
}
.mini-stat:hover .value { text-shadow: 0 0 10px currentColor; }
.mini-stat .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #8be9fd;
    transition: text-shadow 0.3s ease;
}
.mini-stat .label {
    font-size: 0.45rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
    margin: 0.15rem 0;
}
.status-item {
    text-align: center;
    padding: 0.15rem;
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}
.status-item:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.2);
}
.status-item:hover .value { text-shadow: 0 0 12px currentColor; transform: scale(1.1); display: inline-block; }
.status-item .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #8be9fd;
    transition: all 0.3s ease;
}
.status-item .value.ok { color: #50fa7b; }
.status-item .value.alert { color: #c41e3a; }
.status-item .label {
    font-size: 0.5rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.info-box {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.25rem;
    margin: 0.15rem 0;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.65rem;
    transition: all 0.3s ease;
    cursor: default;
}
.info-box:hover {
    background: rgba(139, 233, 253, 0.05);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateX(5px);
    box-shadow: -3px 0 15px rgba(139, 233, 253, 0.15);
}
.info-box:hover .info-box-header { color: #b4f8c3; text-shadow: 0 0 8px rgba(180, 248, 195, 0.5); }
.info-box-header {
    color: #8be9fd;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.15);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6rem;
    margin: 0.15rem 0;
}
.spec-table th, .spec-table td {
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.1rem 0.3rem;
    text-align: left;
}
.spec-table th {
    background: rgba(139, 233, 253, 0.08);
    color: #8be9fd;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.55rem;
}
.spec-table td { color: #9aafba; background: rgba(0, 0, 0, 0.2); }
.spec-table td.highlight { color: #8be9fd; }
.spec-table tr { transition: all 0.2s ease; }

/* Install Banner */
.install-banner {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.15) 0%, rgba(139, 233, 253, 0.1) 50%, rgba(80, 250, 123, 0.15) 100%);
    border: 2px solid rgba(80, 250, 123, 0.5);
    padding: 0.5rem 0.7rem;
    margin: 0.35rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    box-shadow: 0 0 15px rgba(80, 250, 123, 0.2), inset 0 0 30px rgba(80, 250, 123, 0.05);
    animation: install-pulse 2s ease-in-out infinite;
}
@keyframes install-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(80, 250, 123, 0.2), inset 0 0 30px rgba(80, 250, 123, 0.05); border-color: rgba(80, 250, 123, 0.5); }
    50% { box-shadow: 0 0 25px rgba(80, 250, 123, 0.4), inset 0 0 40px rgba(80, 250, 123, 0.1); border-color: rgba(80, 250, 123, 0.8); }
}
.install-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 250, 123, 0.25), rgba(255, 255, 255, 0.1), rgba(80, 250, 123, 0.25), transparent);
    animation: install-shimmer 2.5s infinite;
}
@keyframes install-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.install-banner:hover {
    border-color: rgba(80, 250, 123, 0.9);
    box-shadow: 0 0 35px rgba(80, 250, 123, 0.5), inset 0 0 50px rgba(80, 250, 123, 0.15);
    transform: scale(1.01);
    animation: none;
}
.install-banner-title {
    font-family: 'Special Elite', monospace;
    font-size: 0.6rem;
    color: #50fa7b;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.6);
    animation: title-glow 1.5s ease-in-out infinite alternate;
}
@keyframes title-glow {
    0% { text-shadow: 0 0 5px rgba(80, 250, 123, 0.4); }
    100% { text-shadow: 0 0 12px rgba(80, 250, 123, 0.8), 0 0 20px rgba(80, 250, 123, 0.4); }
}
.install-command {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 233, 253, 0.25);
    padding: 0.35rem 0.6rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #8be9fd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.install-command:hover {
    background: rgba(139, 233, 253, 0.12);
    border-color: rgba(139, 233, 253, 0.5);
    box-shadow: 0 0 12px rgba(139, 233, 253, 0.25);
    color: #b4f8c3;
}
.install-command::after {
    content: '📋';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.install-command:hover::after { opacity: 1; }
.install-command.copied { border-color: #50fa7b !important; background: rgba(80, 250, 123, 0.15) !important; }
.install-command.copied::after { content: '✓'; opacity: 1; }
.install-commands-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.install-tabs {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 2;
}
.install-tab {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    color: rgba(139, 233, 253, 0.5);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.15);
    border-bottom: none;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}
.install-tab:hover {
    color: rgba(139, 233, 253, 0.8);
    background: rgba(0, 0, 0, 0.4);
}
.install-tab.active {
    color: #8be9fd;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 233, 253, 0.25);
}
.install-command { margin-top: -1px; }
.install-command[hidden] { display: none; }
.install-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 1.4rem;
    border: 2px solid rgba(139, 233, 253, 0.5);
    background: rgba(0, 0, 0, 0.5);
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.15);
    position: relative;
    overflow: hidden;
}
.install-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.2), transparent);
    animation: link-shimmer 3s infinite;
}
@keyframes link-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.install-link:hover {
    background: rgba(139, 233, 253, 0.2);
    border-color: #8be9fd;
    color: #b4f8c3;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.35);
}
.install-link svg { width: 14px; height: 14px; fill: currentColor; }
.spec-table tbody tr:hover, .spec-table tr:hover { background: rgba(139, 233, 253, 0.08) !important; }
.spec-table tr:hover td { color: #8be9fd; text-shadow: 0 0 5px rgba(139, 233, 253, 0.3); }
.spec-table tr:hover td.highlight { color: #b4f8c3; text-shadow: 0 0 8px rgba(180, 248, 195, 0.5); }

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.2rem 0.3rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #8be9fd;
    overflow-x: auto;
    margin: 0.15rem 0;
    transition: all 0.3s ease;
    cursor: text;
}
.code-block:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(139, 233, 253, 0.4);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.15), inset 0 0 30px rgba(139, 233, 253, 0.03);
}
.code-block .comment { color: #4a7a8a; }
.code-block .keyword { color: #ff79c6; }
.code-block .string { color: #f1fa8c; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin: 0.15rem 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; margin: 0.15rem 0; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.2rem; margin: 0.15rem 0; }

.redacted {
    background: #0a1215; color: #0a1215;
    padding: 0 4px; user-select: none; border-radius: 2px; position: relative;
    transition: all 0.3s ease; cursor: not-allowed;
}
.redacted::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(90deg, #0a1215 0px, #0a1215 3px, #0f1a1f 3px, #0f1a1f 4px);
}
.redacted:hover { background: #1a2530; animation: redacted-glitch 0.3s ease infinite; }
@keyframes redacted-glitch { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }

.redacted-block {
    background: #0a1215; padding: 0.25rem 0.4rem; margin: 0.35rem 0;
    border-left: 3px solid #c41e3a; font-style: italic; color: #4a6a7a; font-size: 0.63rem;
    transition: all 0.3s ease; cursor: default;
}
.redacted-block:hover { background: rgba(139, 233, 253, 0.03); border-left-color: #8be9fd; color: #6a8a9a; }

.warning-box {
    border: 2px solid #c41e3a; background: rgba(196, 30, 58, 0.05);
    padding: 0.25rem; margin: 0.2rem 0; position: relative; font-size: 0.63rem;
    transition: all 0.3s ease; cursor: default;
}
.warning-box::before {
    content: '⚠ WARNING'; position: absolute; top: -10px; left: 15px;
    background: #000000; padding: 0 8px; color: #c41e3a; font-weight: bold; font-size: 0.65rem; letter-spacing: 0.1em;
}
.warning-box:hover { background: rgba(196, 30, 58, 0.12); border-color: #ff4757; box-shadow: 0 0 20px rgba(196, 30, 58, 0.3); }

.caution-box {
    border: 1px solid #f1fa8c; background: rgba(241, 250, 140, 0.05);
    padding: 0.15rem 0.3rem; margin: 0.15rem 0; font-size: 0.6rem; color: #f1fa8c;
    transition: all 0.3s ease; cursor: default;
}
.caution-box::before { content: '△ CAUTION: '; font-weight: bold; }
.caution-box:hover { background: rgba(241, 250, 140, 0.12); border-color: #ffff6b; box-shadow: 0 0 15px rgba(241, 250, 140, 0.2); }

.clearance-badge {
    display: inline-block; padding: 0.15rem 0.4rem; font-size: 0.6rem;
    letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; margin-right: 0.3rem;
    transition: all 0.3s ease; cursor: pointer;
}
.clearance-badge:hover { transform: scale(1.15); box-shadow: 0 0 15px currentColor; }
.clearance-badge.ts { background: rgba(196, 30, 58, 0.3); color: #c41e3a; border: 1px solid #c41e3a; }
.clearance-badge.s { background: rgba(255, 121, 198, 0.2); color: #ff79c6; border: 1px solid #ff79c6; }
.clearance-badge.c { background: rgba(139, 233, 253, 0.2); color: #8be9fd; border: 1px solid #8be9fd; }

.document-layout {
    display: block;
}
.main-content-area { min-width: 0; }
.intel-sidebar {
    position: sticky; top: 0.5rem;
    display: flex; flex-direction: column; gap: 0.2rem;
}
.sidebar-panel {
    border: 1px solid rgba(139, 233, 253, 0.15); background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.3rem; font-size: 0.55rem; transition: all 0.3s ease;
}
.sidebar-panel:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(139, 233, 253, 0.4); transform: scale(1.02); box-shadow: 0 0 20px rgba(139, 233, 253, 0.1); }
.sidebar-panel-header {
    color: #c41e3a; font-size: 0.48rem; text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 0.12rem; padding-bottom: 0.08rem; border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    font-family: 'Special Elite', monospace;
}
.sidebar-panel-header.cyan { color: #8be9fd; border-bottom-color: rgba(139, 233, 253, 0.3); }
.sidebar-panel-header.green { color: #50fa7b; border-bottom-color: rgba(80, 250, 123, 0.3); }

.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.15rem; }
.network-node {
    text-align: center; padding: 0.15rem; background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.1); transition: all 0.3s ease; cursor: pointer;
}
.network-node:hover { background: rgba(139, 233, 253, 0.15); border-color: rgba(139, 233, 253, 0.5); transform: scale(1.1); z-index: 10; position: relative; }
.network-node .node-id { font-size: 0.55rem; color: #4a7a8a; }
.network-node .node-status { font-size: 0.7rem; margin-top: 0.15rem; transition: all 0.3s ease; }
.network-node .node-status.up { color: #50fa7b; }
.network-node .node-status.down { color: #c41e3a; }
.network-node .node-status.degraded { color: #f1fa8c; }
.network-node:hover .node-status { animation: pulse-glow 0.5s ease infinite alternate; }
@keyframes pulse-glow { from { text-shadow: 0 0 5px currentColor; } to { text-shadow: 0 0 15px currentColor, 0 0 25px currentColor; } }

.incident-log { max-height: 140px; overflow-y: auto; font-family: 'Share Tech Mono', monospace; }
.incident-log::-webkit-scrollbar { width: 4px; }
.incident-log::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.incident-log::-webkit-scrollbar-thumb { background: rgba(139, 233, 253, 0.3); }
.incident-entry {
    padding: 0.12rem 0.2rem; border-bottom: 1px solid rgba(139, 233, 253, 0.1);
    transition: all 0.2s ease; cursor: default; margin: 0 -0.2rem;
}
.incident-entry:hover { background: rgba(139, 233, 253, 0.08); padding-left: 0.5rem; border-left: 2px solid #8be9fd; }
.incident-entry:last-child { border-bottom: none; }
.incident-time { color: #4a7a8a; font-size: 0.55rem; }
.incident-msg { color: #9aafba; }
.incident-msg.ok { color: #50fa7b; }
.incident-msg.alert { color: #c41e3a; }
.incident-msg.warn { color: #f1fa8c; }
.incident-entry:hover .incident-msg { color: #8be9fd; }
.incident-entry:hover .incident-msg.ok { color: #69ff69; text-shadow: 0 0 8px rgba(105, 255, 105, 0.5); }
.incident-entry:hover .incident-msg.alert { color: #ff6b6b; text-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }

.timeline { border-left: 2px solid rgba(139, 233, 253, 0.3); padding-left: 0.5rem; margin: 0.15rem 0; }
.timeline-item {
    position: relative; padding-bottom: 0.15rem; font-size: 0.6rem;
    transition: all 0.3s ease; cursor: default; padding-left: 0.5rem; margin-left: -0.5rem;
}
.timeline-item::before {
    content: ''; position: absolute; left: -1.35rem; top: 0.2rem;
    width: 8px; height: 8px; background: #8be9fd; border-radius: 50%; transition: all 0.3s ease;
}
.timeline-item:hover { background: rgba(139, 233, 253, 0.05); padding-left: 1rem; }
.timeline-item:hover::before { background: #b4f8c3; box-shadow: 0 0 10px rgba(180, 248, 195, 0.8); transform: scale(1.5); }
.timeline-item .date { color: #4a7a8a; font-size: 0.55rem; }

.doc-button-container { margin-bottom: 0.3rem; }
.doc-return-home {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.5rem; background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 233, 253, 0.2); text-decoration: none;
    transition: all 0.2s ease; position: relative; overflow: hidden;
}
.doc-return-home::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s ease;
}
.doc-return-home:hover::before { left: 100%; }
.doc-return-home:hover { background: rgba(139, 233, 253, 0.08); border-color: rgba(139, 233, 253, 0.5); }
.doc-return-home img { width: 32px; height: 32px; border-radius: 4px; filter: none !important; transition: all 0.3s ease; }
.doc-return-home:hover img { transform: scale(1.1); box-shadow: 0 0 15px rgba(139, 233, 253, 0.5); }
.doc-return-home-text span { color: #8be9fd; font-size: 0.65rem; font-family: 'Courier Prime', monospace; display: block; }
.doc-return-home-text small { color: #4a7a8a; font-size: 0.5rem; }

.document-footer {
    margin-top: 0.3rem; padding-top: 0.15rem;
    border-top: 2px solid rgba(139, 233, 253, 0.3);
    text-align: center; font-size: 0.55rem; color: #4a6a7a;
    transition: all 0.3s ease;
}
.document-footer:hover { color: #6a8a9a; border-top-color: rgba(139, 233, 253, 0.5); }

.back-link {
    display: inline-block; margin: 0.4rem 0; color: #8be9fd; text-decoration: none;
    border-bottom: 1px dashed #8be9fd; transition: all 0.3s ease; font-family: 'Courier Prime', monospace;
}
.back-link:hover { color: #b4f8c3; border-bottom-color: #b4f8c3; text-shadow: 0 0 10px rgba(180, 248, 195, 0.5); transform: translateX(-5px); }

.footnote {
    font-size: 0.55rem; color: #4a6a7a; border-top: 1px solid rgba(139, 233, 253, 0.2);
    margin-top: 0.3rem; padding-top: 0.15rem; transition: all 0.3s ease; cursor: default;
}
.footnote:hover { color: #6a9aaa; background: rgba(139, 233, 253, 0.02); padding-left: 10px; }

.blink { animation: blink-animation 1s steps(2, start) infinite; }
@keyframes blink-animation { to { visibility: hidden; } }

/* Sprite showcase grid */
.sprite-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2rem; margin: 0.15rem 0;
}
.sprite-cell {
    text-align: center; padding: 0.15rem;
    border: 1px solid rgba(139, 233, 253, 0.1); background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease; cursor: default;
}
.sprite-cell:hover {
    background: rgba(139, 233, 253, 0.1); border-color: rgba(139, 233, 253, 0.5);
    transform: scale(1.08); z-index: 10; position: relative;
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.2);
}
.sprite-cell img {
    width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated;
    filter: invert(1) sepia(1) saturate(6) hue-rotate(160deg) brightness(1.2) drop-shadow(0 0 3px rgba(139,233,253,0.8)) !important;
}
.sprite-cell:hover img { filter: invert(1) sepia(1) saturate(6) hue-rotate(160deg) brightness(1.5) drop-shadow(0 0 8px rgba(139,233,253,1)) !important; transform: none !important; }
.sprite-cell .sprite-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.45rem;
    color: #4a7a8a; text-transform: uppercase; margin-top: 0.2rem; letter-spacing: 0.05em;
}
.sprite-cell:hover .sprite-label { color: #8be9fd; }

/* Panel + Stats Combined Layout */
.panel-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    align-items: start;
}
.panel-image-cell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 1;
}
.panel-image-cell img {
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
}
.panel-info-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.sidebar-panels-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.15rem;
    margin-top: 0.15rem;
}
.mini-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
}
.mini-stats-compact .mini-stat {
    padding: 0.12rem 0.08rem;
}
.doc-info-compact {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.2rem 0.35rem;
    background: rgba(0, 0, 0, 0.15);
}
.doc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.06rem 0;
    font-size: 0.56rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.05);
}
.doc-row:last-child { border-bottom: none; }
.doc-label { color: #4a7a8a; font-weight: bold; font-size: 0.5rem; }
.doc-value { font-family: 'Share Tech Mono', monospace; }
.doc-value.cyan { color: #8be9fd; }
.doc-value.red { color: #c41e3a; }
.doc-value.pink { color: #ff79c6; }

.doc-bar-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
}
.doc-bar-compact .document-bar-item {
    padding: 0.12rem 0.25rem;
}
.doc-bar-compact .document-bar-item label {
    font-size: 0.42rem;
    margin-bottom: 0.05rem;
}
.doc-bar-compact .document-bar-item span {
    font-size: 0.52rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .project-writeup { margin-left: 60px; margin-right: 60px; }
}

@media (max-width: 900px) {
    .project-writeup { margin-left: 55px; margin-right: 55px; }
    .two-col, .three-col, .four-col { grid-template-columns: 1fr; }
    .document-bar { grid-template-columns: repeat(2, 1fr); }
    .document-info { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: repeat(3, 1fr); }
    .sprite-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .doc-button-container { grid-template-columns: 1fr; gap: 0.35rem; margin-bottom: 0.5rem; }
    .doc-return-home { padding: 0.35rem 0.5rem; gap: 0.4rem; }
    .doc-return-home img { width: 24px; height: 24px; }
    .doc-return-home-text span { font-size: 0.55rem; }
    .doc-return-home-text small { font-size: 0.45rem; }
    
    .project-writeup {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.8rem;
        font-size: 0.62rem;
        line-height: 1.25;
    }
    
    .stamp { display: none; }
    
    .classified-header { padding: 0.15rem 0.25rem; margin-bottom: 0.3rem; border-width: 2px; }
    .classified-header h1 { font-size: 0.65rem; letter-spacing: 0.1em; }
    .classification-stamp { font-size: 0.45rem; top: -8px; right: 5px; letter-spacing: 0.08em; padding: 0 5px; }
    
    .document-bar { grid-template-columns: 1fr 1fr; gap: 0.2rem; margin-bottom: 0.3rem; }
    .document-bar-item { padding: 0.15rem 0.25rem; }
    .document-bar-item label { margin-bottom: 0.1rem; font-size: 0.45rem; }
    .document-bar-item span { font-size: 0.55rem; }
    
    .mini-stat { padding: 0.2rem; }
    .mini-stat .value { font-size: 0.6rem; }
    .mini-stat .label { font-size: 0.4rem; }
    
    .panel-stats-grid { grid-template-columns: 1fr; }
    .panel-image-cell { min-height: 150px; max-height: 180px; }
    .mini-stats-compact { grid-template-columns: repeat(6, 1fr); }
    .doc-info-compact { padding: 0.2rem 0.3rem; }
    .doc-row { font-size: 0.52rem; }
    .doc-bar-compact { grid-template-columns: repeat(4, 1fr); gap: 0.1rem; }
    .doc-bar-compact .document-bar-item { padding: 0.1rem 0.15rem; }
    .doc-bar-compact .document-bar-item label { font-size: 0.38rem; }
    .doc-bar-compact .document-bar-item span { font-size: 0.48rem; }
    
    .ticker-wrap { margin-bottom: 0.3rem; padding: 0.1rem 0; }
    .ticker { font-size: 0.45rem; }
    
    .document-info { padding: 0.25rem; font-size: 0.5rem; gap: 0.15rem; grid-template-columns: 1fr !important; }
    .document-info p { font-size: 0.5rem; margin: 0.05rem 0; }
    
    .status-grid { grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
    .status-item { padding: 0.3rem; }
    .status-item .value { font-size: 0.7rem; }
    .status-item .label { font-size: 0.4rem; }
    
    .four-col { grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
    .two-col, .three-col { grid-template-columns: 1fr !important; gap: 0.4rem; }
    
    .info-box { padding: 0.25rem; font-size: 0.5rem; margin: 0.2rem 0; }
    .info-box-header { font-size: 0.45rem; margin-bottom: 0.15rem; }
    
    .project-writeup h2 { font-size: 0.62rem; margin-top: 0.5rem; margin-bottom: 0.15rem; letter-spacing: 0.08em; }
    .project-writeup h3 { font-size: 0.55rem; margin-top: 0.3rem; }
    .project-writeup p { font-size: 0.55rem; text-align: left; margin-bottom: 0.25rem; }
    .project-writeup ul, .project-writeup ol { font-size: 0.5rem; margin-left: 0.8rem; margin-bottom: 0.25rem; }
    .project-writeup li { margin-bottom: 0.1rem; }
    
    .spec-table { font-size: 0.45rem; margin: 0.2rem 0; }
    .spec-table th, .spec-table td { padding: 0.1rem 0.2rem; }
    .spec-table th { font-size: 0.4rem; }
    
    .code-block { padding: 0.2rem; font-size: 0.45rem; margin: 0.2rem 0; }
    .project-writeup code { font-size: 0.48rem; padding: 0.05rem 0.15rem; }
    
    .document-layout { gap: 0.75rem; }
    .sidebar-panels-inline { grid-template-columns: 1fr; }
    .sidebar-panel { padding: 0.4rem; }
    .sidebar-panel-header { font-size: 0.5rem; margin-bottom: 0.3rem; }
    
    .incident-log { max-height: 100px; }
    .incident-time { font-size: 0.4rem; }
    .incident-msg { font-size: 0.5rem; }
    .incident-entry { padding: 0.2rem 0; }
    
    .network-grid { grid-template-columns: repeat(4, 1fr); gap: 0.2rem; }
    .network-node { padding: 0.15rem; }
    .network-node .node-id { font-size: 0.4rem; }
    .network-node .node-status { font-size: 0.5rem; }
    
    .warning-box { padding: 0.25rem; font-size: 0.48rem; margin: 0.25rem 0; }
    .warning-box::before { font-size: 0.4rem; top: -8px; left: 8px; }
    .caution-box { font-size: 0.45rem; padding: 0.2rem 0.3rem; margin: 0.2rem 0; }
    
    .timeline { padding-left: 0.4rem; margin: 0.25rem 0; }
    .timeline-item { font-size: 0.48rem; padding: 0.15rem 0; }
    .timeline-item .date { font-size: 0.4rem; }
    
    .clearance-badge { font-size: 0.4rem; padding: 0.08rem 0.2rem; }
    
    .document-footer { font-size: 0.42rem; margin-top: 0.4rem; padding-top: 0.25rem; }
    .footnote { font-size: 0.4rem; margin-top: 0.4rem; padding-top: 0.25rem; }
    .redacted-block { font-size: 0.48rem; padding: 0.15rem 0.25rem; margin: 0.2rem 0; }
    .section-number { font-size: 0.5rem; }
    .back-link { font-size: 0.6rem; }
    
    .sprite-grid { grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
    .sprite-cell { padding: 0.2rem; }
    .sprite-cell img { width: 36px; height: 36px; }
    .sprite-cell .sprite-label { font-size: 0.38rem; }
    
    .project-writeup img { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
    .document-bar { grid-template-columns: 1fr; }
    .four-col { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr 1fr; }
    .network-grid { grid-template-columns: repeat(3, 1fr); }
    .classified-header h1 { font-size: 0.55rem; letter-spacing: 0.08em; }
    .project-writeup h2 { font-size: 0.52rem; }
    .project-writeup p { font-size: 0.48rem; }
    .sprite-grid { grid-template-columns: repeat(2, 1fr); }
    .sprite-cell img { width: 32px; height: 32px; }
    
    .mini-stats-compact { grid-template-columns: repeat(3, 1fr); }
    .doc-row { font-size: 0.48rem; padding: 0.05rem 0; }
    .doc-bar-compact { grid-template-columns: 1fr 1fr; gap: 0.1rem; }
    .doc-bar-compact .document-bar-item label { font-size: 0.35rem; }
    .doc-bar-compact .document-bar-item span { font-size: 0.42rem; }
}

/* Hologram Hero Image Effects */
.hologram-container {
    position: relative;
    display: inline-block;
    max-width: 200px;
    overflow: visible;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
}
.hologram-image {
    max-width: 200px;
    height: auto;
    filter: contrast(1.1) saturate(1.2);
    animation: hologramPhase 4s ease-in-out infinite, hologramGlitch 8s step-end infinite;
    image-rendering: pixelated;
}
.hologram-container::before, .hologram-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    pointer-events: none;
}
.hologram-container::before {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(-30deg) saturate(1.5);
    animation: chromaShiftRed 3s ease-in-out infinite;
}
.hologram-container::after {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(30deg) saturate(1.5);
    animation: chromaShiftBlue 3s ease-in-out infinite reverse;
}
.hologram-scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 0.1s linear infinite;
}
.hologram-flicker {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(139, 233, 253, 0.03);
    pointer-events: none;
    z-index: 11;
    animation: hologramFlicker 0.15s infinite;
    mix-blend-mode: overlay;
}
.hologram-noise {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    animation: noiseShift 0.5s steps(10) infinite;
}
@keyframes hologramPhase {
    0%, 100% { opacity: 0.95; transform: scale(1) translateY(0); filter: contrast(1.1) saturate(1.2) brightness(1); }
    25% { opacity: 0.85; transform: scale(1.01) translateY(-1px); filter: contrast(1.2) saturate(1.4) brightness(1.1); }
    50% { opacity: 0.9; transform: scale(0.99) translateY(1px); filter: contrast(1.15) saturate(1.3) brightness(0.95); }
    75% { opacity: 1; transform: scale(1.005) translateY(-0.5px); filter: contrast(1.25) saturate(1.5) brightness(1.15); }
}
@keyframes hologramGlitch {
    0%, 95%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    96% { clip-path: inset(20% 0 30% 0); transform: translate(-3px, 0); }
    97% { clip-path: inset(50% 0 10% 0); transform: translate(3px, 0); }
    98% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    99% { clip-path: inset(40% 0 20% 0); transform: translate(2px, 0); }
}
@keyframes chromaShiftRed { 0%, 100% { transform: translate(-1px, 0); } 50% { transform: translate(-2px, 1px); } }
@keyframes chromaShiftBlue { 0%, 100% { transform: translate(1px, 0); } 50% { transform: translate(2px, -1px); } }
@keyframes scanlineMove { 0% { background-position: 0 0; } 100% { background-position: 0 4px; } }
@keyframes hologramFlicker {
    0%, 100% { opacity: 0.03; } 10% { opacity: 0.08; } 20% { opacity: 0.02; } 30% { opacity: 0.1; }
    40% { opacity: 0.04; } 50% { opacity: 0.15; } 60% { opacity: 0.05; } 70% { opacity: 0.12; }
    80% { opacity: 0.03; } 90% { opacity: 0.08; }
}
@keyframes noiseShift {
    0% { transform: translate(0, 0); } 10% { transform: translate(-5%, -5%); } 20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); } 40% { transform: translate(5%, -5%); } 50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); } 70% { transform: translate(-3%, -3%); } 80% { transform: translate(3%, 3%); }
    90% { transform: translate(-1%, 1%); } 100% { transform: translate(0, 0); }
}
.hologram-container:hover .hologram-image { animation: hologramPhaseIntense 2s ease-in-out infinite, hologramGlitchIntense 3s step-end infinite; filter: contrast(1.3) saturate(1.6) brightness(1.2); }
.hologram-container:hover .hologram-noise { opacity: 0.25; }
.hologram-container:hover .hologram-flicker { animation: hologramFlickerIntense 0.08s infinite; }
@keyframes hologramPhaseIntense {
    0%, 100% { opacity: 1; transform: scale(1); } 25% { opacity: 0.7; transform: scale(1.02) translateX(-2px); }
    50% { opacity: 0.9; transform: scale(0.98) translateX(2px); } 75% { opacity: 0.8; transform: scale(1.01) translateY(-2px); }
}
@keyframes hologramGlitchIntense {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    91% { clip-path: inset(30% 0 20% 0); transform: translate(-4px, 0); } 92% { clip-path: inset(10% 0 50% 0); transform: translate(4px, 0); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); } 94% { clip-path: inset(20% 0 40% 0); transform: translate(3px, 0); }
    95% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); } 96% { clip-path: inset(15% 0 55% 0); transform: translate(2px, 0); }
    97% { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 0); } 98% { clip-path: inset(25% 0 45% 0); transform: translate(3px, 0); }
    99% { clip-path: inset(35% 0 35% 0); transform: translate(-1px, 0); }
}
@keyframes hologramFlickerIntense {
    0%, 100% { opacity: 0.1; background: rgba(139, 233, 253, 0.05); } 25% { opacity: 0.2; background: rgba(255, 100, 100, 0.05); }
    50% { opacity: 0.05; background: rgba(100, 255, 100, 0.05); } 75% { opacity: 0.25; background: rgba(139, 233, 253, 0.08); }
}
