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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff41;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

canvas#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 40px #008f11;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.75rem;
    color: #00aa30;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.card {
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 15px rgba(0, 255, 65, 0.05);
    backdrop-filter: blur(4px);
}

label {
    display: block;
    text-align: left;
    font-size: 0.75rem;
    color: #00aa30;
    margin-bottom: 0.4rem;
    margin-top: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

label:first-child {
    margin-top: 0;
}

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

input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #00aa30;
    border-radius: 3px;
    background: rgba(0, 10, 0, 0.9);
    color: #00ff41;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: all 0.3s;
    text-shadow: 0 0 5px #00ff41;
}

input[type="text"]:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3), inset 0 0 5px rgba(0, 255, 65, 0.1);
}

input[type="text"]::placeholder {
    color: #005f20;
}

input[readonly] {
    cursor: default;
}

.input-group button {
    padding: 0.75rem;
    border: 1px solid #00aa30;
    border-radius: 3px;
    background: rgba(0, 10, 0, 0.9);
    color: #00ff41;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.input-group button:hover {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
    background: rgba(0, 40, 0, 0.9);
}

.btn-primary {
    width: 100%;
    margin-top: 1.8rem;
    padding: 0.9rem;
    border: 1px solid #00ff41;
    border-radius: 3px;
    background: rgba(0, 60, 0, 0.6);
    color: #00ff41;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #00ff41;
}

.btn-primary:hover {
    background: rgba(0, 100, 0, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4), inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.btn-primary:active {
    background: rgba(0, 140, 0, 0.6);
    transform: scale(0.98);
}

.info {
    margin-top: 1.5rem;
    font-size: 0.65rem;
    color: #005f20;
    letter-spacing: 1px;
}

.btn-install {
    width: 100%;
    max-width: 420px;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #00ff41;
    border-radius: 3px;
    background: transparent;
    color: #00ff41;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-install:hover {
    background: rgba(0, 60, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: rgba(0, 20, 0, 0.95);
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 2rem;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #00ff41;
}

.modal-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #00cc33;
    line-height: 1.4;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 30, 0, 0.95);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    text-shadow: 0 0 5px #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.card {
    animation: flicker 4s infinite;
}
