/* Psychedelic / Cyberpunk Login Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    background-color: #050505;
    color: #39ff14;
    font-family: 'Orbitron', 'Microsoft JhengHei', monospace; /* Cool font */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

/* Login Overlay Enhancement */
#login-overlay {
    background: #000;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

#login-overlay h1 {
    font-size: 3.5em;
    text-shadow: 
        0 0 10px #39ff14,
        0 0 20px #39ff14,
        0 0 40px #39ff14;
    animation: neon-pulse 1.5s infinite alternate;
}

#login-overlay .leaf-icon {
    font-size: 5em;
    filter: drop-shadow(0 0 15px #2e8b57);
    animation: float 3s ease-in-out infinite;
}

#login-overlay input {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    color: #fff;
    font-size: 1.5em;
    padding: 15px;
    width: 250px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
}

#login-overlay input:focus {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
    outline: none;
    transform: scale(1.05);
}

#login-overlay button {
    background: #39ff14;
    color: #000;
    font-size: 1.5em;
    padding: 10px 40px;
    border: none;
    margin-top: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px #39ff14;
    border-radius: 5px;
}

#login-overlay button:hover {
    background: #fff;
    box-shadow: 0 0 40px #fff, 0 0 10px #39ff14;
    transform: translateY(-2px);
}

/* Animations */
@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 10px #39ff14,
            0 0 20px #39ff14,
            0 0 40px #39ff14;
    }
    to {
        text-shadow: 
            0 0 5px #39ff14,
            0 0 10px #39ff14,
            0 0 20px #39ff14,
            0 0 40px #2e8b57,
            0 0 80px #2e8b57;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Matrix / Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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: 999;
    animation: scroll-scanlines 0.5s linear infinite;
}

@keyframes scroll-scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}


.container {
    width: 90%;
    max-width: 800px;
    padding: 20px;
    border: 1px solid #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    background-color: rgba(10, 10, 10, 0.9);
    text-align: center;
}

h1 {
    font-size: 2.5em;
    text-shadow: 0 0 10px #39ff14;
    margin-bottom: 10px;
}

h2 {
    color: #2e8b57;
    text-shadow: 0 0 5px #2e8b57;
}

.hidden {
    display: none !important;
}

input, select, button {
    background-color: #000;
    color: #39ff14;
    border: 1px solid #39ff14;
    padding: 10px;
    margin: 5px;
    font-family: inherit;
    font-size: 1.1em;
    outline: none;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #39ff14;
    color: #000;
    box-shadow: 0 0 15px #39ff14;
}

.exchange-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed #2e8b57;
}

.input-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rate-info {
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.trx-bot {
    margin-top: 40px;
    padding: 15px;
    border-top: 1px solid #39ff14;
}

.trx-bot a {
    color: #ff00ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 5px #ff00ff;
}

.trx-bot a:hover {
    text-shadow: 0 0 15px #ff00ff;
}

.status-box {
    margin-top: 20px;
    padding: 10px;
    border: 1px dotted #39ff14;
    min-height: 50px;
}

/* Cannabis Leaf SVG Styling if used inline, or just CSS shape */
.leaf-icon {
    font-size: 3em;
    margin: 10px;
    color: #2e8b57;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 20px #2e8b57; }
    100% { transform: scale(1); opacity: 0.8; }
}

.smoke-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 10px,
        #111 10px,
        #111 20px
    );
}

.loader {
    border: 4px solid #000;
    border-top: 4px solid #39ff14;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Payment Optimization */
.payment-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 20, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #2e8b57;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.qr-code-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Ensure QR code image itself is centered */
}

.qr-code-container img {
    display: block; /* Remove inline spacing */
    margin: 0 auto;
}

.payment-details {
    width: 100%;
    max-width: 400px; /* Limit width on desktop */
}

.instruction-text {
    text-align: center;
    color: #39ff14;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.copy-box {
    margin-bottom: 20px;
    text-align: left;
}

.copy-box label {
    display: block;
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: bold;
}

.copy-target {
    background: #000;
    border: 1px solid #39ff14;
    padding: 15px;
    border-radius: 8px;
    color: #39ff14;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    word-break: break-all;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden; /* Contain ripple effect */
}

.copy-target:hover {
    background: #0a0a0a;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.copy-target:active {
    background: #111;
    transform: scale(0.98);
}

.copy-icon {
    font-size: 1.4em;
    margin-left: 15px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.highlight-box .copy-target {
    border: 2px solid yellow;
    color: yellow;
    font-size: 1.4em;
    font-weight: bold;
    background: rgba(255, 255, 0, 0.05);
}

.important-notes {
    text-align: left;
    background: rgba(255, 0, 0, 0.15);
    border-left: 4px solid #ff4444;
    padding: 20px;
    margin-top: 25px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Modal Fixes for Mobile */
#tutorial-modal .container {
    max-height: 80vh; /* Limit height */
    overflow-y: auto; /* Enable scrolling */
    position: relative;
    padding-top: 50px; /* Space for close button */
    border: 1px solid #39ff14; /* Re-add border for modal */
    border-radius: 10px;
    /* Reset mobile full-screen behavior for modal specifically */
    min-height: auto;
    width: 90%;
    justify-content: flex-start;
}

#tutorial-modal .close-btn-top {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ff0033;
    font-size: 2em;
    cursor: pointer;
    padding: 5px;
    height: auto;
    width: auto;
    line-height: 1;
    box-shadow: none;
    margin: 0;
}

#tutorial-modal .close-btn-top:hover {
    color: #ff4444;
    transform: scale(1.1);
    background: transparent;
    box-shadow: none;
}

/* Ensure mobile responsiveness for modal content */
@media (max-width: 600px) {
    #tutorial-modal .container {
        width: 90%;
        margin: 20px auto;
        max-height: 85vh;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align top on mobile */
    }

    h1 {
        font-size: 1.8em;
        margin-top: 20px;
    }

    /* Make inputs larger for touch */
    input, select, button {
        padding: 15px; 
        font-size: 16px; /* Prevent iOS zoom */
        height: 50px;
        margin-bottom: 15px;
    }

    .input-group label {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    /* Better QR Code sizing */
    .qr-code-container {
        padding: 10px;
        margin-bottom: 25px;
    }

    /* Larger tap targets for copy buttons */
    .copy-target {
        padding: 18px;
        margin-bottom: 10px;
    }

    .copy-target span:first-child {
        font-size: 0.95em; /* Slightly smaller address font */
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .action-buttons button {
        width: 100%;
        height: 55px;
        font-size: 1.2em;
    }

    /* Adjust status box spacing */
    .status-box {
        padding: 15px;
        margin-top: 10px;
    }
    
    .important-notes {
        font-size: 0.9em;
    }
}

