@import url('https://fonts.googleapis.com/css2?family=VT323&family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'VT323', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* Logo styles */
.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 10px #00ff00);
}

.title-3d {
    font-size: 72px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    position: relative;
    animation: float 3s ease-in-out infinite, glitch 5s infinite;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 20px #00ff00;
    perspective: 500px;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
}

.subtitle {
    color: #008800;
    margin-bottom: 30px;
    font-size: 24px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.scanner-box {
    border: 2px solid #00ff00;
    padding: 30px;
    margin: 20px 0;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.scanner-box:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    border-color: #00ff88;
}

input[type="text"] {
    width: 100%;
    padding: 18px;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
    border-color: #00ff88;
    background: rgba(0, 20, 0, 0.3);
}

input[type="text"]::placeholder {
    color: #008800;
    opacity: 0.8;
}

button {
    background: linear-gradient(45deg, #000, #001100, #000);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 15px 40px;
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(45deg, #00ff00, #00aa00, #00ff00);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0px);
}

.results {
    margin-top: 30px;
    text-align: left;
    display: none;
}

.risk-indicator {
    font-size: 42px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
}

.risk-low { color: #00ff00; }
.risk-medium { color: #ffff00; }
.risk-high { color: #ff0000; }

.finding {
    margin: 12px 0;
    padding: 12px;
    border-left: 3px solid #00ff00;
    font-size: 18px;
}

.finding.contract-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    padding: 18px;
    border-bottom: 1px solid #00ff00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.chain-badge {
    margin-left: 15px;
    padding: 5px 10px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 0.6em;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #003300;
    margin: 15px 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: #00ff00;
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 5px #00ff00;
    position: relative;
}

.progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: move 2s linear infinite;
    overflow: hidden;
}

.loading {
    display: none;
    margin: 20px 0;
    color: #00ff00;
    text-align: center;
}

.loader {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    box-shadow: 0 0 5px #00ff00;
}

.progress-status {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
}

.blink {
    animation: blink-text 1s infinite;
}

.console-container {
    background: rgba(0, 20, 0, 0.4);
    border: 1px solid #00aa00;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
    height: 100px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    border-radius: 5px;
}

.console-line {
    margin: 3px 0;
    color: #00cc00;
}

.console-line.warning {
    color: #ffcc00;
}

.console-line.error {
    color: #ff3333;
}

.info-section {
    margin: 40px 0;
    padding: 25px;
    border: 1px solid #008800;
    text-align: left;
    font-size: 18px;
    border-radius: 8px;
    background: rgba(0, 30, 0, 0.1);
}

.info-section h2 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 30px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.info-section h3 {
    color: #00ff00;
    margin: 25px 0 15px;
    font-size: 24px;
    font-family: 'Orbitron', monospace;
}

.info-section p {
    margin-bottom: 10px;
    color: #00aa00;
    font-size: 20px;
}

.info-section ul {
    list-style: none;
    margin-left: 20px;
}

.info-section li {
    margin: 8px 0;
    position: relative;
    font-size: 18px;
}

.info-section li:before {
    content: '>';
    position: absolute;
    left: -15px;
    color: #00ff00;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.feature-box {
    border: 1px solid #00ff00;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: rgba(0, 40, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
}

.feature-box h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 22px;
    font-family: 'Orbitron', monospace;
}

.feature-box p {
    font-size: 18px;
}

.stats-section {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    padding: 20px;
    margin: 10px;
    min-width: 180px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 38px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
}

.stat-label {
    font-size: 18px;
}

/* Recent Scans Section */
.recent-scans-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #004400;
    border-radius: 8px;
    background: rgba(0, 40, 0, 0.1);
}

.recent-scans-title {
    color: #00ff00;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 20px;
}

.recent-scans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.recent-scan-item {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid #003300;
    border-radius: 6px;
    padding: 10px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.recent-scan-item:hover {
    border-color: #00ff00;
    background: rgba(0, 40, 0, 0.4);
}

.scan-address {
    color: #00aa00;
    font-family: monospace;
    font-size: 10px;
}

.scan-name {
    color: #00ff00;
    font-weight: bold;
    margin: 3px 0;
    font-size: 12px;
}

.scan-chain {
    display: inline-block;
    background: #003300;
    color: #00ff00;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    margin-right: 6px;
}

.scan-risk {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: bold;
}

.scan-time {
    color: #006600;
    font-size: 9px;
    margin-top: 3px;
}

.ad-box {
    border: 1px dashed #00ff00;
    padding: 20px;
    margin: 40px 0;
    text-align: center;
    background: rgba(0, 255, 0, 0.03);
}

.ad-box h3 {
    color: #00ff00;
    margin-bottom: 15px;
}

.donations {
    margin-top: 50px;
    padding: 20px;
    border: 1px solid #008800;
    border-radius: 8px;
    background: rgba(0, 30, 0, 0.1);
}

.donations h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 24px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.donation-address {
    margin: 10px 0;
    word-break: break-all;
    font-size: 16px;
    color: #008800;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.donation-address:hover {
    background: rgba(0, 40, 0, 0.2);
    color: #00aa00;
}

.crypto-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.footer {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #008800;
    color: #008800;
    text-align: center;
    font-size: 18px;
}

.footer a {
    color: #00aa00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #00ff00;
    width: 250px;
    z-index: 100;
    font-size: 14px;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-align: center;
}

.vulnerability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vulnerability-item {
    border: 1px solid #00ff00;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vulnerability-item:hover {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.vulnerability-item h4 {
    color: #00ff00;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
}

.premium-button {
    display: inline-block;
    margin: 20px 0;
    text-decoration: none;
}

.premium-button button {
    font-size: 22px;
    padding: 15px 30px;
    background: rgba(0, 255, 0, 0.1);
}

.premium-button button:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.nav-menu a {
    color: #00ff00;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
}

.nav-menu a:hover {
    border-color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    background: rgba(0, 40, 0, 0.2);
}

/* AD STYLING */
.top-ad-banner {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 200px;
    background: rgba(0, 40, 0, 0.2);
    border: 1px dashed #004400;
    border-radius: 5px;
    padding: 8px;
    z-index: 1000;
    font-size: 12px;
}

.sidebar-ad {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    background: rgba(0, 40, 0, 0.2);
    border: 1px dashed #004400;
    border-radius: 5px;
    padding: 8px;
    z-index: 1000;
}

.ad-placeholder {
    color: #004400;
    font-size: 11px;
    text-align: center;
    opacity: 0.7;
}

.ascii-container {
    background-color: #000;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    max-width: 800px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #00aa00;
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: monospace;
    color: #00aa00;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
}

.button:nth-child(1) { background-color: #ff5f5f; }
.button:nth-child(2) { background-color: #ffbe5f; }
.button:nth-child(3) { background-color: #5fff5f; }

.terminal-title {
    font-size: 14px;
}

.ascii-title {
    font-family: monospace;
    font-size: 16px;
    color: #00ff00;
    white-space: pre;
    margin: 0;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    transform-style: preserve-3d;
    animation: pulse 2s infinite, rotate3D 10s infinite linear;
    perspective: 500px;
    text-align: center;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
}

.terminal-prompt {
    font-family: monospace;
    color: #00aa00;
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.prompt-text {
    margin-right: 5px;
}

.command {
    color: #00ff00;
    animation: typing 3s steps(50, end);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation-fill-mode: forwards;
}

.ascii-chars {
    position: absolute;
    opacity: 0.1;
    color: #00ff00;
    font-family: monospace;
    font-size: 10px;
    pointer-events: none;
    z-index: 0;
}

.summary-box {
    background: rgba(0, 40, 0, 0.4);
    border: 1px solid #00aa00;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    font-size: 18px;
    border-radius: 5px;
}

.summary-title {
    color: #00ff00;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
}

/* Supported Chains Styles */
.supported-chains {
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 40, 0, 0.1);
    border: 1px solid #004400;
    border-radius: 12px;
    text-align: center;
}

.chains-title {
    margin-bottom: 30px;
}

.chains-title h3 {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.chains-title p {
    color: #008800;
    font-size: 16px;
    margin: 0;
}

.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.chain-item {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid #003300;
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.chain-item:hover {
    border-color: #00ff00;
    background: rgba(0, 40, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.chain-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-logo svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.chain-item:hover .chain-logo svg {
    transform: scale(1.1);
}

.plus-icon svg {
    width: 48px;
    height: 48px;
}

.chain-name {
    font-size: 14px;
    font-weight: 600;
    color: #00cc00;
    margin-bottom: 5px;
    font-family: 'Orbitron', monospace;
}

.chain-status {
    font-size: 12px;
    color: #008800;
    font-weight: 500;
}

/* Pulse animation for "More Soon" */
.chain-item:last-child .chain-logo svg {
    animation: pulse-plus 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-3d {
        font-size: 54px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .vulnerability-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        min-width: 140px;
    }

    .top-ad-banner,
    .sidebar-ad {
        display: none;
    }

    .chains-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .chain-item {
        padding: 15px 10px;
    }
    
    .chain-logo {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    
    .chain-name {
        font-size: 12px;
    }
    
    .chain-status {
        font-size: 10px;
    }

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

@media (max-width: 480px) {
    .title-3d {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chains-title h3 {
        font-size: 20px;
    }
    
    .chains-title p {
        font-size: 14px;
    }
}

.scan-on-enter {
    position: relative;
}

.scan-on-enter::after {
    content: "Press Enter to scan";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #008800;
    opacity: 0.7;
}