/* MarketWizardry.org - Shared Styles for CSP Compliance */
/* All inline styles moved to external CSS file */

/* Base Styles - Common to all pages */
* {
    box-sizing: border-box;
}

/* Global link styles */
a {
    color: #00ff00;
    text-decoration: underline;
}

a:visited {
    color: #00ff00;
}

a:hover {
    color: #00ff88;
}

/* Body styles for iframe content */
body {
    background-color: #000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 20px;
    margin: 0;
}

.container {
    margin: 0 auto;
}

h1 {
    text-align: center;
    padding-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* CRT Effects */
.crt-divider {
    width: 100%;
    height: 1px;
    background-color: #00ff00;
    animation: scan 1s infinite;
    margin: 30px auto;
}

@keyframes scan {
    0% { opacity: 1; width: 0%; }
    50% { opacity: 0.5; }
    100% { opacity: 1; width: 100%; }
}

.flavor-text {
    color: #00ff00;
    font-family: "Courier New", monospace;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    font-weight: bold;
    opacity: 0.9;
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.info-box {
    border: 2px solid #00ff00;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(0, 255, 0, 0.05);
    font-family: "Courier New", monospace;
}

.info-box h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-shadow: 0 0 10px #00ff00;
}

.info-box p {
    color: #00ff00;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-box strong {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.info-box em {
    color: #00cc00;
    font-style: italic;
}

/* Breadcrumb Navigation Styles - Complete implementation */
.breadcrumb {
    font-size: 0.8em;
    color: #00aa00;
    margin-bottom: 20px;
    padding: 10px 0;
}

nav.breadcrumb a,
nav.breadcrumb a:link,
nav.breadcrumb a:visited,
nav.breadcrumb a:hover,
nav.breadcrumb a:active {
    color: #00ff00 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

nav.breadcrumb a:hover {
    color: #ffffff !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #004400;
}

/* Mobile breadcrumb optimization */
@media screen and (max-width: 768px) {
    .breadcrumb {
        display: none;
    }
}

/* Grid Styles - For galleries and explorers */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

/* Image Grid Styles - For NFT and AI art galleries */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    text-align: center;
    margin: 20px auto;
}

.image-container img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    border: 3px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), inset 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container img:hover {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.7), inset 0 0 30px rgba(0, 255, 0, 0.2);
    transform: scale(1.02);
}

/* Text box for lore content */
.text-box {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #00ff00;
    font-family: "Courier New", monospace;
    line-height: 1.6;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
}

/* Grid container for side-by-side images */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.grid-container img {
    max-width: 100%;
    height: auto;
    border: 3px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), inset 0 0 20px rgba(0, 255, 0, 0.1);
    object-fit: contain;
    transition: all 0.3s ease;
}

.grid-container img:hover {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.7), inset 0 0 30px rgba(0, 255, 0, 0.2);
    transform: scale(1.02);
}

/* Wide screen optimization: allow images to expand vertically while keeping text visible */
@media screen and (min-width: 1200px) {
    .grid-container {
        align-items: start;
    }

    .grid-container img {
        max-height: calc(100vh - 400px);
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

.thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 0, 0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.thumbnail:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.file-entry {
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-entry:hover {
    background-color: #001100;
    color: #00ff00;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.file-entry a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.file-entry a:hover {
    text-decoration: underline;
}

.entry-description {
    color: #00ff00;
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
    font-weight: bold;
    line-height: 1.3;
    animation: flicker 1s infinite;
}

/* Blog Content Styles - Comprehensive from old inline styles */
.blog-container {
    min-height: 100vh;
}

.modal-text {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    white-space: pre-wrap;
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 8px;
    color: #00ff00;
}

.modal-text a {
    color: #00ff00;
    text-decoration: underline;
    font-weight: bold;
}

.modal-text a:hover {
    color: #00cc00;
    background-color: #001100;
}

.modal-text::-webkit-scrollbar {
    width: 12px;
}

.modal-text::-webkit-scrollbar-track {
    background: #000;
}

.modal-text::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 2px solid #000;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Blog Content Styles */
.content-section {
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-section:hover {
    background-color: #001100;
    transform: scale(1.02);
}

.content-section h2 {
    color: #00ff00;
    margin: 0 0 10px 0;
}

.content-section .summary {
    color: #00cc00;
    font-size: 0.9em;
}

/* Blog Entry Styles */
.blog-entry {
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.blog-entry:hover {
    background-color: #001100;
    color: #00ff00;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.blog-entry a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.blog-entry a:hover {
    text-decoration: underline;
}

.blog-entry .date {
    color: #00aa00;
    font-size: 0.8em;
    font-style: italic;
    display: block;
    margin-bottom: 8px;
}

.blog-entry .entry-description {
    color: #00ff00;
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
    font-weight: bold;
    line-height: 1.3;
}

/* AI Musings specific styles */
.centered-title {
    text-align: center;
}

/* AI Musings Card Styles (same as blog entries) */
.musing-card {
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.musing-card:hover {
    background-color: #001100;
    color: #00ff00;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.musing-card-header {
    text-align: center;
    width: 100%;
    display: block;
}

.musing-card h3 {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    margin-top: 0;
    text-align: center;
}

.musing-card .word-count {
    color: #00aa00;
    font-size: 0.8em;
    font-style: italic;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.musing-card .flavor {
    color: #00ff00;
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
    font-weight: bold;
    line-height: 1.3;
}

/* Section Headers */
.section-header {
    color: #00ff00;
    text-align: center;
    margin: 20px 0;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Educational Grid Specific */
.educational-grid {
    margin: 20px 0;
}

/* Entry Description (was missing) */
.entry-description {
    color: #00ff00;
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
    font-weight: bold;
    line-height: 1.3;
    animation: flicker 1s infinite;
}

/* Modal Styles - Common across all pages */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Hide all modal children when modal is not displayed */
.modal:not([style*="display: flex"]):not([style*="display: block"]) .modal-header,
.modal:not([style*="display: flex"]):not([style*="display: block"]) .modal-button-bar,
.modal:not([style*="display: flex"]):not([style*="display: block"]) .nav-buttons,
.modal:not([style*="display: flex"]):not([style*="display: block"]) .download-container,
.modal:not([style*="display: flex"]):not([style*="display: block"]) .close-button {
    display: none !important;
    visibility: hidden !important;
}

/* Hide download-container (legacy) */
.download-container {
    display: none;
}

.modal-content {
    background-color: #000;
    padding: 10px;
    border: 2px solid #00ff00;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: auto;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal-content:hover {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    transform: scale(1.01);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    color: #00ff00;
    font-size: 1.2em;
    text-align: center;
}

.modal-header .crt-divider {
    margin: 10px 0 15px 0;
    width: 100%;
}

.modal-button-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

.modal-header a,
.modal-button-bar a,
.modal-button-bar button {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00ff00;
    background: #000;
    padding: 8px 15px;
    font-family: "Courier New", monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.modal-header a:hover,
.modal-button-bar a:hover,
.modal-button-bar button:hover {
    background-color: #001100;
    transform: scale(1.02);
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.full-image {
    max-width: calc(90vw - 24px);
    max-height: calc(90vh - 150px);
    width: auto;
    height: auto;
    display: block;
    margin: auto auto 20px auto;
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    object-fit: contain;
}

/* Image Counter */
.image-counter {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 0 10px;
}

/* Twitter Link Container */
.twitter-link-container {
    display: none;
}

.twitter-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00ff00;
    background: #000;
    padding: 8px 15px;
    font-family: "Courier New", monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
}

.twitter-link:hover {
    background-color: #001100;
    transform: scale(1.02);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    padding: 0 15px;
}

.nav-button {
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    font-size: 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.nav-button:hover {
    background-color: #001100;
    transform: scale(1.02);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    background-color: #000;
}

/* Missing modal button styles */
.close-button {
    background: none;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.close-button:hover {
    background-color: #001100;
}

.filename-display {
    color: #00ff00;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-size: 0.9em;
}

.image-counter {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.download-container {
    text-align: center;
    margin-top: 10px;
}

.modal.modal-open {
    display: flex;
}

.twitter-link-container {
    display: none;
    text-align: center;
    margin: 10px 0;
}

.twitter-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    display: inline-block;
}

.image-counter {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 15px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background-color: rgba(0, 17, 0, 0.5);
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

.download-container {
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

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

    .modal-content {
        margin: auto;
        width: fit-content;
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-header h2 {
        font-size: 1em;
        margin-bottom: 8px;
        flex: 1 0 100%;
    }

    .modal-header a {
        font-size: 0.7em;
        padding: 4px 8px;
        margin: 2px;
    }

    /* Modal button bar - force single row on mobile */
    .modal-button-bar {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #00ff00 #000;
    }

    .modal-button-bar::-webkit-scrollbar {
        height: 6px;
    }

    .modal-button-bar::-webkit-scrollbar-track {
        background: #000;
    }

    .modal-button-bar::-webkit-scrollbar-thumb {
        background: #00ff00;
        border-radius: 3px;
    }

    .modal-button-bar button,
    .modal-button-bar a {
        font-size: 0.65em;
        padding: 6px 8px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }

    .image-counter {
        font-size: 0.7em;
        padding: 0 4px;
        flex-shrink: 0;
    }

    .twitter-link-container {
        flex-shrink: 0;
    }

    .content-section {
        padding: 15px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .modal-text {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
        white-space: pre;
        overflow-x: auto;
        max-width: 90vw;
        max-height: calc(90vh - 160px);
        padding: 10px;
    }

    .modal-body {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-x: hidden;
        max-width: 90vw;
        max-height: calc(90vh - 160px);
        padding: 10px;
    }

    .full-image {
        max-height: 55vh;
    }

    .filename-display {
        font-size: 0.7em;
        margin-bottom: 5px;
    }

    .nav-button {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 60px;
    }

    .nav-counter {
        font-size: 0.8em;
    }

    .close-button {
        font-size: 18px;
        padding: 3px 8px;
    }

    .filename-display {
        font-size: 0.7em;
        margin-bottom: 5px;
    }

    .nav-buttons {
        margin-top: 5px;
        gap: 5px;
    }

    .twitter-link-container {
        margin: 5px 0;
    }

    .twitter-link {
        font-size: 0.8em;
        padding: 3px 6px;
    }

}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    .modal-text {
        font-size: 0.65em;
        padding: 10px;
    }
}

/* Blog specific styles */
header {
    text-align: left;
    color: #00ff00;
    margin-bottom: 20px;
}

/* Explorer specific grid adjustments */
.explorer-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin: 0 auto;
}

/* Error and loading states */
.loading {
    text-align: center;
    color: #00ff00;
    font-family: "Courier New", monospace;
    animation: flicker 2s infinite;
}

.error {
    color: #ff0000;
    text-align: center;
    font-family: "Courier New", monospace;
    border: 2px solid #ff0000;
    padding: 20px;
    margin: 20px 0;
}

/* Calculator specific utility styles */
.data-filtering-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 8px;
}

.symbol-input-uppercase {
    text-transform: uppercase;
    flex: 1;
}

.button-flex-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Copy notification styles for donate page */
/* Donate Page Styles */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    justify-content: center;
}

.donate-item {
    text-align: center;
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.donate-item:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: scale(1.02);
}

.donate-item img {
    width: 100%;
    height: auto;
    border: none;
    display: block;
    margin: 10px auto;
    min-width: 200px;
}

.donate-item h3 {
    color: #00ff00;
    margin-top: 0;
}

.crypto-address {
    font-size: 12px;
    color: #00ff00;
    word-break: break-all;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 3px;
}

.ko-fi-link {
    text-decoration: none;
    color: inherit;
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.copy-notification.show {
    opacity: 1;
    animation: crt-flicker 0.5s ease-in-out;
}

@keyframes crt-flicker {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Matrix animation container */
.matrix-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Matrix text animation styles for code.html */
.matrix-text {
    position: absolute;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    animation: matrix-fall var(--duration) linear forwards;
    opacity: 1;
    text-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00;
    pointer-events: none;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-50px);
        opacity: 1;
        filter: brightness(1.8);
    }
    10% {
        opacity: 1;
        filter: brightness(1.5);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1);
    }
    85% {
        opacity: 0.3;
        filter: brightness(0.7);
    }
    100% {
        transform: translateY(calc(100vh + 50px));
        opacity: 0;
        filter: brightness(0.3);
    }
}

.matrix-char {
    animation-delay: var(--delay, 0s);
}

/* Mobile matrix animation adjustment */
@media screen and (max-width: 768px) {
    .matrix-text {
        position: absolute;
        font-size: 16px;
    }
}

/* Remove button with nuke icon */
.remove-btn {
    background: url('/img/nuke.webp') no-repeat center;
    background-size: 16px 16px;
    border: 1px solid #ff0000;
    padding: 8px;
    cursor: pointer;
    border-radius: 2px;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
    transform: scale(1.1);
}

/* Nuclear explosion effect - Area 51 arcade barrel explosion style */
.nuke-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    animation: area51-explosion 0.5s steps(5) forwards;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes area51-explosion {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3);
        background: #fff;
        box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px #fff;
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
        background: #ffff44;
        box-shadow:
            0 0 0 3px #fff,
            0 0 0 6px #ffff44,
            0 0 0 9px #ffcc00,
            0 0 0 12px #ff8800;
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
        background: #ffcc00;
        box-shadow:
            0 0 0 4px #ffff44,
            0 0 0 8px #ffcc00,
            0 0 0 12px #ff8800,
            0 0 0 16px #ff4400,
            0 0 0 20px #ff0000;
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.8);
        background: #ff8800;
        box-shadow:
            0 0 0 5px #ffcc00,
            0 0 0 10px #ff8800,
            0 0 0 15px #ff4400,
            0 0 0 20px #ff0000,
            0 0 0 25px #cc0000;
    }
    80% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(2.2);
        background: #ff4400;
        box-shadow:
            0 0 0 6px #ff8800,
            0 0 0 12px #ff4400,
            0 0 0 18px #ff0000,
            0 0 0 24px #cc0000,
            0 0 0 30px #880000;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
        background: #ff0000;
        box-shadow:
            0 0 0 7px #ff4400,
            0 0 0 14px #ff0000,
            0 0 0 21px #cc0000,
            0 0 0 28px #880000,
            0 0 0 35px #440000;
    }
}

/* Debris particles for barrel explosion */
.nuke-debris {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 99;
}

.debris-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff8800;
    border-radius: 1px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 0 2px rgba(255, 136, 0, 0.8);
}

@keyframes debris-fly-1 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-30px, -40px); opacity: 0; }
}

@keyframes debris-fly-2 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(30px, -40px); opacity: 0; }
}

@keyframes debris-fly-3 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-40px, -20px); opacity: 0; }
}

@keyframes debris-fly-4 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(40px, -20px); opacity: 0; }
}

@keyframes debris-fly-5 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-25px, -50px); opacity: 0; }
}

@keyframes debris-fly-6 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(25px, -50px); opacity: 0; }
}

@keyframes debris-fly-7 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-50px, -10px); opacity: 0; }
}

@keyframes debris-fly-8 {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(50px, -10px); opacity: 0; }
}

/* Pixel art explosion - Metal Slug / SNES style */
.pixel-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 101;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.explosion-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pixel-row {
    display: flex;
    height: 4px;
    line-height: 4px;
}

.pixel {
    width: 4px;
    height: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Frame animations - 4 frames like SNES games */
.pixel-explosion .explosion-frame:nth-child(1) {
    animation: explosion-frame-1 0.8s steps(1) forwards;
}

.pixel-explosion .explosion-frame:nth-child(2) {
    animation: explosion-frame-2 0.8s steps(1) forwards;
    animation-delay: 0.1s;
}

.pixel-explosion .explosion-frame:nth-child(3) {
    animation: explosion-frame-3 0.8s steps(1) forwards;
    animation-delay: 0.2s;
}

.pixel-explosion .explosion-frame:nth-child(4) {
    animation: explosion-frame-4 0.8s steps(1) forwards;
    animation-delay: 0.3s;
}

/* Frame 1: Initial flash - quick bright yellow */
@keyframes explosion-frame-1 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Frame 2: Expanding orange blast */
@keyframes explosion-frame-2 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Frame 3: Large red explosion - peak frame */
@keyframes explosion-frame-3 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Frame 4: Dissipating smoke */
@keyframes explosion-frame-4 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
    10% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.4);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

/* Barrel flash enhancement */
.barrel-flash {
    animation: barrel-flash-anim 0.5s steps(4) forwards;
}

@keyframes barrel-flash-anim {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
        background: #ffff00;
        box-shadow:
            0 0 0 3px #ffff00,
            0 0 0 6px #ff8800;
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
        background: #ff8800;
        box-shadow:
            0 0 0 4px #ffff00,
            0 0 0 8px #ff8800,
            0 0 0 12px #ff4400;
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.8);
        background: #ff4400;
        box-shadow:
            0 0 0 5px #ff8800,
            0 0 0 10px #ff4400,
            0 0 0 15px #cc0000;
    }
    75% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(2.2);
        background: #cc0000;
        box-shadow:
            0 0 0 6px #ff4400,
            0 0 0 12px #cc0000,
            0 0 0 18px #880000;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
        background: #880000;
        box-shadow:
            0 0 0 7px #cc0000,
            0 0 0 14px #880000,
            0 0 0 21px #440000;
    }
}

/* Barrel smoke effects */
.barrel-smoke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 98;
}

.smoke-puff {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #666666;
    border-radius: 50%;
    opacity: 0;
    animation: smoke-rise 0.8s steps(4) forwards;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes smoke-rise {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(0.5);
        background: #888888;
    }
    25% {
        opacity: 0.7;
        transform: translate(-5px, -15px) scale(0.8);
        background: #777777;
    }
    50% {
        opacity: 0.5;
        transform: translate(-8px, -30px) scale(1.1);
        background: #666666;
    }
    75% {
        opacity: 0.3;
        transform: translate(-10px, -45px) scale(1.3);
        background: #555555;
    }
    100% {
        opacity: 0;
        transform: translate(-12px, -60px) scale(1.5);
        background: #444444;
    }
}

/* Additional utility styles for common patterns */
.display-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Explorer-specific styles */
.stats {
    text-align: center;
    color: #00aa00;
    margin: 20px 0;
    font-size: 0.9em;
}

.file-entry {
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-entry:hover {
    background-color: #001100;
    color: #00ff00;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.file-entry a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.file-entry a:hover {
    text-decoration: underline;
}

.nav-counter {
    color: #00ff00;
    font-family: "Courier New", monospace;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Explorer modal body styles */
.modal-body {
    white-space: pre;
    max-height: 70vh;
    max-width: 85vw;
    overflow-y: auto;
    overflow-x: auto;
    color: #00ff00;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    padding: 15px;
}

/* Crypto explorer wraps text */
.modal-body.crypto-explorer {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Terms modal wraps text */
.modal-body.wrap-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
}

.modal-body pre {
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.modal-body.crypto-explorer pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body.wrap-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body a {
    color: #00ff00;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-body a:hover {
    color: #00ff00;
    background-color: #002200;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
    padding: 15px;
}
/* Image Modal Styles */
.image-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.image-modal[style*="display: flex"] {
    display: flex !important;
}

.image-modal[style*="display: block"] {
    display: flex !important;
}

.image-modal-content {
    display: flex;
    flex-direction: column;
    background-color: #000;
    border: 2px solid #00ff00;
    padding: 10px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid #00ff00;
    margin-bottom: 10px;
}

.image-modal-counter {
    color: #00ff00;
    font-size: 1.1em;
    font-weight: bold;
}

.image-modal-buttons {
    display: none !important;
    gap: 10px;
    align-items: center;
}

/* Only show buttons when modal is actually displayed */
.image-modal[style*="display: flex"] .image-modal-buttons,
.image-modal[style*="display: block"] .image-modal-buttons {
    display: flex !important;
}

/* Extra defensive - hide all image-modal children when not displayed */
.image-modal:not([style*="display: flex"]):not([style*="display: block"]) * {
    display: none !important;
    visibility: hidden !important;
}

.image-modal-nav,
.image-modal-download,
.image-modal-close {
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 8px 15px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.image-modal-nav:hover,
.image-modal-download:hover,
.image-modal-close:hover {
    background-color: #00ff00;
    color: #000;
}

.image-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #000;
    color: #00ff00;
}

.image-modal-close {
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px 12px;
}

.image-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.image-modal-body img {
    max-width: calc(90vw - 24px);
    max-height: calc(90vh - 150px);
    object-fit: contain;
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

/* CSP-compliant utility classes for inline style fixes */
.image-container-small {
    max-width: 300px;
}

.affiliate-content-left {
    text-align: left;
}

.lookup-details-spacer {
    margin-top: 20px;
}

/* Image metadata overlay with dark glass effect */
.image-metadata {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.image-title {
    color: #00ff00;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.image-description {
    color: #00cc00;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .image-modal-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .image-modal-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .image-modal-nav,
    .image-modal-download,
    .image-modal-close {
        font-size: 0.75em;
        padding: 6px 10px;
    }

    .image-modal-counter {
        font-size: 0.9em;
    }

    .image-modal-body {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .image-modal-nav,
    .image-modal-download {
        padding: 5px 8px;
        font-size: 0.7em;
    }

    .image-modal-close {
        padding: 4px 10px;
        font-size: 1em;
    }
}

/* Darwinex RADAR Styles */
.report-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px 0;
    flex-wrap: wrap;
}

.tab-button {
    display: block;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 12px 10px;
    margin: 3px 0;
    text-align: center;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00;
}

.tab-button.active {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

.terminal-output {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    padding: 20px;
    border: 2px solid #00ff00;
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
}

.intro-section {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.05);
}

.intro-section p {
    margin: 5px 0;
}

@media screen and (max-width: 768px) {
    .report-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        margin-bottom: 5px;
    }

    .terminal-output {
        font-size: 11px;
        padding: 10px;
    }
}

/* Chart Page Styles - For standalone HTML chart files */
.chart-page-body {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.chart-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    border-bottom: 2px solid #00ff00;
}

.chart-header h1 {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin: 0;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

.chart-back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #003300;
    border: 2px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    cursor: pointer;
}

.chart-back-link:hover {
    background-color: #00ff00;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

.chart-container {
    margin: 0 auto;
    text-align: center;
}

/* Plotly chart dimensions (CSP compliant - no inline styles) */
.chart-container .plotly-graph-div,
.chart-container #chart {
    height: 1400px;
    width: 1600px;
    max-width: 100%;
    margin: 0 auto;
}

.chart-link-container {
    text-align: center;
}

.chart-link-container-bottom {
    text-align: center;
    margin-top: 20px;
}

.plotly-chart-wrapper {
    height: 1400px;
    width: 1600px;
    max-width: 100%;
    margin: 0 auto;
}

/* Static Chart Container (matplotlib SVG charts) - CSP Safe */
.chart-container-static {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.chart-container-static svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments for static charts */
@media screen and (max-width: 768px) {
    .chart-container-static {
        padding: 10px;
        margin: 10px;
    }
}
