:root {
    --terminal-bg: #0a0a0a;
    --terminal-text: #e5e5e5;
    --accent-primary: #00ff9d; /* Neon Green */
    --accent-secondary: #00bcd4; /* Cyan */
    --accent-dim: #333333;
    --scanline-color: rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Selection Color */
::selection {
    background: var(--accent-primary);
    color: #000;
}

/* Utilities */
.text-accent { color: var(--accent-primary); }
.text-cyan { color: var(--accent-secondary); }
.border-accent { border-color: var(--accent-primary); }

/* Glitch/Terminal Effects */
.terminal-header::before {
    content: '// ';
    color: var(--accent-secondary);
    font-weight: bold;
}

.hover-glow:hover {
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
    transition: all 0.3s ease;
}

/* CRT Scanline Effect Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
                                rgba(255,255,255,0) 50%,
                                rgba(0,0,0,0.1) 50%,
                                rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
}

/* Button Styling */
.btn-terminal {
    background: transparent;
    border: 1px solid var(--terminal-text);
    color: var(--terminal-text);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-terminal:hover {
    background: var(--terminal-text);
    color: var(--terminal-bg);
    border-color: var(--terminal-text);
    box-shadow: 0 0 15px rgba(229, 229, 229, 0.3);
}

.btn-crypto {
    border: 1px solid var(--accent-dim);
    background: #111;
}
.btn-crypto:hover {
    border-color: var(--accent-primary);
}

/* Toast Notification */
#toast {
visibility: hidden;
min-width: 250px;
background-color: var(--accent-secondary);
color: #000;
text-align: center;
border-radius: 2px;
padding: 16px;
position: fixed;
z-index: 100;
right: 30px;
bottom: 30px;
font-weight: bold;
box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

#toast.show {
visibility: visible;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--terminal-bg);
    border: 1px solid var(--accent-primary);
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--terminal-text);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    margin-top: 1rem;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
