:root {
    --primary-color: #00ff41;
    --secondary-color: #0066cc;
    --accent-color: #ff6b00;
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(17, 25, 40, 0.9);
    --text-primary: #00ff41;
    --text-secondary: #66ff66;
    --text-muted: #888;
    --border-color: #333;
    --danger-color: #ff3030;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Orbitron', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.loading-content {
    text-align: center;
    position: relative;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.loading-logo {
    margin-bottom: 60px;
    position: relative;
}

.logo-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 20px auto;
    animation: logoLinePulse 2s infinite;
}

.loading-title {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 900;
    margin: 20px 0;
    text-shadow: 0 0 20px var(--primary-color);
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.loading-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
    animation: charLoad 0.8s ease-out forwards;
}

.loading-char:nth-child(1) { animation-delay: 0.1s; }
.loading-char:nth-child(2) { animation-delay: 0.2s; }
.loading-char:nth-child(3) { animation-delay: 0.3s; }
.loading-char:nth-child(4) { animation-delay: 0.4s; }
.loading-char:nth-child(5) { animation-delay: 0.5s; }
.loading-char:nth-child(6) { animation-delay: 0.6s; }
.loading-char:nth-child(7) { animation-delay: 0.7s; }
.loading-char:nth-child(8) { animation-delay: 0.8s; }
.loading-char:nth-child(9) { animation-delay: 0.9s; }
.loading-char:nth-child(10) { animation-delay: 1.0s; }
.loading-char:nth-child(11) { animation-delay: 1.1s; }
.loading-char:nth-child(12) { animation-delay: 1.2s; }

.loading-status {
    margin-bottom: 40px;
}

.status-text {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: statusPulse 1.5s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.03s linear;
    position: relative;
}

.loading-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: loadingShine 2s infinite;
}

.loading-percentage {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.loading-steps {
    margin-top: 40px;
    text-align: left;
    max-width: 400px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-30px);
    animation: stepSlideIn 0.6s ease-out forwards;
}

.loading-step:nth-child(1) { animation-delay: 0.3s; }
.loading-step:nth-child(2) { animation-delay: 0.5s; }
.loading-step:nth-child(3) { animation-delay: 0.7s; }
.loading-step:nth-child(4) { animation-delay: 0.9s; }

.step-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.step-text {
    flex: 1;
    color: var(--text-secondary);
}

.step-status {
    color: var(--border-color);
    font-size: 8px;
    animation: statusBlink 1s infinite;
}

.loading-step.active .step-status {
    color: var(--primary-color);
}

.loading-step.completed .step-status {
    color: var(--primary-color);
    animation: none;
}

.loading-step.completed .step-text {
    color: var(--primary-color);
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 3s infinite linear;
}

/* Matrix background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 1s ease-out;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-color);
}

.quantum {
    color: var(--primary-color);
}

.crypt {
    color: var(--secondary-color);
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Sections */
.section {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.section.active {
    display: block;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 4s infinite;
    opacity: 0.3;
}

/* Subtle scan lines only on panels */
.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 255, 65, 0.02) 3px,
        rgba(0, 255, 65, 0.02) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    font-size: 1.2em;
}

/* Message Input */
.message-input-container {
    position: relative;
    margin-bottom: 40px;
}

#message-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    position: relative;
}

#message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.char-counter {
    position: absolute;
    bottom: -30px;
    right: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Cyber Buttons */
.cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    margin: 20px 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cyber-btn.primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cyber-btn.secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.cyber-btn:active {
    transform: translateY(0);
}

.btn-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover .btn-overlay {
    left: 100%;
}

/* Progress Container */
.progress-container {
    margin: 30px 0;
    text-align: center;
}

.progress-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--accent-color);
    animation: pulse 1.5s infinite, textGlitch 3s infinite;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    animation: progressFill 3s ease-out forwards;
}

.encryption-steps {
    text-align: left;
}

.step {
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-20px);
    animation: stepReveal 0.5s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step.active {
    color: var(--primary-color);
}

.step-icon {
    font-size: 14px;
    min-width: 20px;
}

.step-text {
    flex: 1;
}

/* Result Container */
.result-container {
    margin-top: 30px;
}

.result-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: textGlitch 4s infinite;
}

.result-item {
    margin-bottom: 20px;
}

.result-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.url-container,
.key-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-container input,
.key-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.url-container input:focus,
.key-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.copy-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Match input height */
}

.copy-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
    transform: translateY(-1px);
}

/* Sharing button specific styling - simplified and smaller */
#copy-both-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
    margin: 10px auto;
    width: auto;
    display: inline-block;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

#copy-both-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

#copy-both-btn::before {
    display: none;
}

#copy-both-btn:hover::before {
    display: none;
}

#copy-both-btn .btn-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    font-weight: inherit;
}

/* Warning Box */
.warning {
    background: rgba(255, 48, 48, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-size: 12px;
    color: var(--danger-color);
    text-align: center;
}

/* Decrypt Inputs */
.decrypt-inputs {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Message Display */
.message-display {
    margin-top: 30px;
}

.message-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.message-content::-webkit-scrollbar {
    display: none;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
}

.nav-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: var(--bg-panel);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    max-width: 300px;
    animation: slideInRight 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.notification.success {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification.error {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Glitch Effects */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--danger-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

.glitch-text {
    animation: textGlitch 3s infinite;
}

/* Hologram effect */
.hologram {
    position: relative;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 65, 0.1) 50%,
        transparent 70%
    );
    background-size: 20px 20px;
    animation: holoScan 2s infinite;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 3px
    );
    pointer-events: none;
}

/* Digital noise effect */
.digital-noise {
    position: relative;
    overflow: hidden;
}

.digital-noise::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%2300ff41' fill-opacity='0.02' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    animation: noiseMove 0.2s infinite;
    pointer-events: none;
}

/* Scan lines */
.scan-lines {
    position: relative;
    overflow: hidden;
}

.scan-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.1) 2px,
        rgba(0, 255, 65, 0.1) 4px
    );
    animation: scanMove 0.1s infinite;
    pointer-events: none;
}

/* Terminal cursor */
.terminal-cursor {
    display: inline-block;
    background: var(--primary-color);
    width: 2px;
    height: 1em;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

/* Data stream effect */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '01001100011010010110011001100101';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', monospace;
    font-size: 8px;
    color: rgba(0, 255, 65, 0.1);
    white-space: nowrap;
    animation: dataFlow 5s infinite linear;
    pointer-events: none;
}

/* Cool Loading Animations */
.decryption-loader {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
}

.loading-text {
    display: inline-block;
    position: relative;
}

.loading-char {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.1s forwards;
}

.scrambled-text {
    position: relative;
    overflow: hidden;
}

.scrambled-char {
    display: inline-block;
    position: relative;
    animation: scramble 0.1s infinite;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.binary-digit {
    position: absolute;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    animation: binaryFall 2s linear infinite;
}

.code-matrix {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.code-line {
    opacity: 0;
    transform: translateX(-20px);
    animation: codeLine 0.5s ease-out forwards;
    margin: 2px 0;
}

.encryption-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.hex-block {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    padding: 10px;
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    animation: hexPulse 1s infinite alternate;
}

.progress-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 15px 0;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    animation: dotPulse 1.5s infinite;
}

.progress-dot:nth-child(1) { animation-delay: 0s; }
.progress-dot:nth-child(2) { animation-delay: 0.3s; }
.progress-dot:nth-child(3) { animation-delay: 0.6s; }
.progress-dot:nth-child(4) { animation-delay: 0.9s; }
.progress-dot:nth-child(5) { animation-delay: 1.2s; }

.terminal-output {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.terminal-line {
    opacity: 0;
    animation: terminalType 0.8s ease-out forwards;
    margin: 3px 0;
}

.typing-cursor {
    display: inline-block;
    background: var(--primary-color);
    width: 8px;
    height: 14px;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

/* Message reveal animations */
.message-reveal {
    position: relative;
    overflow: hidden;
}

.terminal-output-style {
    font-family: 'Orbitron', monospace;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.terminal-prompt {
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--secondary-color);
}

.terminal-char {
    position: relative;
    color: var(--text-primary);
}

.message-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.terminal-cursor {
    display: inline-block;
    background: var(--primary-color);
    width: 2px;
    height: 1em;
    margin-left: 2px;
    position: relative;
}

.terminal-cursor.blinking {
    animation: cursorBlink 1s infinite;
}

.scrambled-text {
    position: relative;
    overflow: hidden;
}

.scrambled-char {
    display: inline-block;
    position: relative;
    transition: color 0.1s ease;
}

.decrypt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(0, 255, 65, 0.1) 1px,
        rgba(0, 255, 65, 0.1) 2px
    );
    animation: overlaySlide 2s ease-out forwards;
    pointer-events: none;
}

/* Enhanced terminal effects */
.terminal-output-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 3s infinite;
}

.terminal-output-style::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 3px
    );
    pointer-events: none;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes scanLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
    }
    20% {
        transform: translate(2px, 2px);
        opacity: 0.8;
    }
    30% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    50% {
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    15% {
        transform: translate(1px, -1px);
        opacity: 0.7;
    }
    25% {
        transform: translate(-1px, 1px);
        opacity: 0.7;
    }
    35% {
        transform: translate(1px, 1px);
        opacity: 0.7;
    }
    45% {
        transform: translate(-1px, -1px);
        opacity: 0.7;
    }
    55% {
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes textGlitch {
    0%, 90%, 100% {
        text-shadow: 0 0 5px var(--primary-color);
    }
    91% {
        text-shadow: 
            -2px 0 var(--danger-color),
            2px 0 var(--secondary-color),
            0 0 5px var(--primary-color);
    }
    92% {
        text-shadow: 
            2px 0 var(--danger-color),
            -2px 0 var(--secondary-color),
            0 0 5px var(--primary-color);
    }
    93% {
        text-shadow: 
            -1px 0 var(--danger-color),
            1px 0 var(--secondary-color),
            0 0 5px var(--primary-color);
    }
}

@keyframes holoScan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

@keyframes noiseMove {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-1px, -1px);
    }
    20% {
        transform: translate(1px, 1px);
    }
    30% {
        transform: translate(-1px, 1px);
    }
    40% {
        transform: translate(1px, -1px);
    }
    50% {
        transform: translate(0, 0);
    }
    60% {
        transform: translate(1px, 1px);
    }
    70% {
        transform: translate(-1px, -1px);
    }
    80% {
        transform: translate(1px, -1px);
    }
    90% {
        transform: translate(-1px, 1px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes scanMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes dataFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* New loading animation keyframes */
@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scramble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateY(200px);
        opacity: 0;
    }
}

@keyframes codeLine {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hexPulse {
    0% {
        background: rgba(0, 255, 65, 0.1);
        transform: scale(1);
    }
    100% {
        background: rgba(0, 255, 65, 0.3);
        transform: scale(1.05);
    }
}

@keyframes dotPulse {
    0%, 100% {
        background: var(--border-color);
        transform: scale(1);
    }
    50% {
        background: var(--primary-color);
        transform: scale(1.3);
    }
}

@keyframes terminalType {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes overlaySlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading screen animations */
@keyframes charLoad {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    50% {
        transform: translateY(-5px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes logoLinePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes loadingShine {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

@keyframes stepSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes statusBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes mainContentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large phones / Small tablets */
@media (max-width: 600px) {
    .loading-title {
        font-size: 2.2rem;
        margin: 18px 0;
    }
    
    .loading-char {
        text-shadow: 0 0 16px var(--primary-color);
    }
    
    .logo-line {
        width: 170px;
    }
    
    .loading-bar {
        width: 270px;
    }
}

/* Tablet and larger mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }
    
    .logo {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .panel {
        padding: 25px;
        margin-bottom: 20px;
    }
      /* Loading screen tablet optimization */
    .loading-title {
        font-size: 2.5rem;
    }
    
    .loading-char {
        text-shadow: 0 0 18px var(--primary-color);
    }
    
    .loading-steps {
        max-width: 350px;
        margin: 30px auto 0;
    }
    
    .loading-step {
        font-size: 13px;
        gap: 12px;
    }
    
    /* Better button layout for tablets */
    .action-buttons {
        gap: 12px;
        margin: 25px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-buttons .cyber-btn {
        min-height: 50px;
        font-size: 14px;
        padding: 15px 25px;
        flex: 1;
        min-width: 160px;
        max-width: 250px;
    }
    
    /* Form improvements */
    input[type="text"],
    input[type="password"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px;
        min-height: 48px; /* Touch-friendly */
    }
    
    .copy-btn {
        min-height: 48px;
        padding: 12px 20px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .container {
        padding: 6px;
        margin: 0;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .header {
        margin-bottom: 16px;
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.6rem;
        margin-bottom: 6px;
        line-height: 1.1;
        word-spacing: -0.1em;
    }
    
    .tagline {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .panel {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 8px;
        background: rgba(17, 25, 40, 0.96);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 255, 65, 0.25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .section-title {
        font-size: 1.05rem;
        margin-bottom: 16px;
        gap: 5px;
        text-align: center;
        line-height: 1.2;
    }
    
    .icon {
        font-size: 0.85em;
    }      /* Mobile loading screen optimization */
    .loading-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin: 10px 0;
        letter-spacing: clamp(0.5px, 0.3vw, 1.5px);
        text-align: center;
        max-width: 100%;
        width: 100%;
        line-height: 1.1;
        padding: 0 10px;
        box-sizing: border-box;
        word-break: keep-all;
    }
    
    .loading-screen {
        padding: 15px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        overflow: hidden;
        position: fixed;
        width: 100vw;
        box-sizing: border-box;
    }
      .loading-content {
        width: 100%;
        max-width: 300px;
        padding: 0 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .loading-logo {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .logo-line {
        width: 120px;
        height: 2px;
        margin: 12px auto;
    }
    
    .loading-char {
        font-size: inherit;
        text-shadow: 0 0 12px var(--primary-color);
        display: inline-block;
        transform: scale(0.9);
    }
    
    .loading-bar {
        width: 200px;
        height: 3px;
        margin: 10px auto;
    }
    
    .loading-steps {
        max-width: 240px;
        margin: 18px auto 0;
        text-align: left;
        padding: 0 8px;
    }
    
    .loading-step {
        font-size: 12px;
        gap: 10px;
        margin: 8px 0;
    }
    
    .step-icon {
        font-size: 14px;
        min-width: 18px;
    }
    
    .status-text {
        font-size: 13px;
    }
      /* Stack navigation tabs vertically */
    .nav-tabs {
        flex-direction: column;
        gap: 6px;
        margin-top: 20px;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
        min-height: 48px;
        font-size: 13px;
        padding: 12px 16px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    /* Better spacing for mobile */
    .result-container {
        margin-top: 16px;
    }
    
    .result-title {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }
    
    .result-item {
        margin-bottom: 14px;
    }
    
    .result-item label {
        font-size: 11px;
        margin-bottom: 5px;
        font-weight: 600;
    }
    
    /* Stack URL and key containers */
    .url-container,
    .key-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn {
        width: 100%;
        margin-top: 8px;
        min-height: 48px;
        font-size: 14px;
    }    /* Fixed mobile button alignment */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }
    
    .action-buttons .cyber-btn {
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        min-height: 52px !important;
        height: 52px !important;
        font-size: 14px !important;
        padding: 14px 18px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        flex: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box;
        border-radius: 8px !important;
        letter-spacing: 0.8px !important;
    }
    
    /* Specific mobile button styling fixes */
    .share-btn {
        height: 52px !important;
        padding: 14px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .new-message-btn {
        height: 52px !important;
        padding: 14px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }    /* Better form styling for mobile */
    #message-input {
        font-size: 16px;
        padding: 14px;
        min-height: 120px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.5;
        resize: vertical;
        border: 2px solid var(--border-color);
        transition: border-color 0.3s ease;
    }
    
    #message-input:focus {
        border-color: var(--primary-color);
        outline: none;
    }
    
    input[type="text"],
    input[type="password"] {
        font-size: 16px;
        padding: 14px;
        width: 100%;
        min-height: 50px;
        border-radius: 8px;
        box-sizing: border-box;
        border: 2px solid var(--border-color);
        background: rgba(0, 0, 0, 0.6);
        transition: all 0.3s ease;
    }
      input[type="text"]:focus,
    input[type="password"]:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
    }
    
    .url-container,
    .key-container {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .url-container input,
    .key-container input {
        width: 100%;
        margin-bottom: 6px;
        font-size: 14px;
        padding: 10px;
    }
    
    .copy-btn {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
        padding: 10px;
        border-radius: 8px;
        margin-top: 4px;
    }
      /* Message display improvements */
    .message-display {
        margin-top: 20px;
    }
    
    .message-content {
        padding: 14px;
        font-size: 14px;
        line-height: 1.5;
        border-radius: 6px;
    }
    
    .result-container {
        margin-top: 20px;
    }
    
    .result-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .result-item {
        margin-bottom: 16px;
    }
    
    .result-item label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .warning {
        padding: 12px;
        font-size: 11px;
        margin: 16px 0;
        border-radius: 6px;
    }
    
    .char-counter {
        font-size: 11px;
        bottom: -25px;
    }
    
    /* Better scrolling for message lists */
    .message-list {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Encrypt/Decrypt button styling */
    .cyber-btn.primary {
        width: 100%;
        min-height: 50px;
        font-size: 14px;
        padding: 15px;
        margin: 15px 0;
    }
}

/* Small mobile devices - Ultra responsive */
@media (max-width: 360px) {
    .container {
        padding: 4px;
        margin: 2px;
        width: calc(100vw - 8px);
        max-width: none;
    }
    
    .logo {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
        line-height: 1.0;
    }
    
    .panel {
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 6px;
    }    /* Extra small mobile loading screen */
    .loading-title {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin: 8px 0;
        letter-spacing: clamp(0.3px, 0.2vw, 1px);
        max-width: 100%;
        width: 100%;
        text-align: center;
        padding: 0 8px;
        box-sizing: border-box;
    }
    
    .loading-logo {
        margin-bottom: 25px;
    }
    
    .logo-line {
        width: 100px;
        height: 1.5px;
    }
    
    .loading-char {
        font-size: inherit;
        text-shadow: 0 0 10px var(--primary-color);
        transform: scale(0.85);
    }
    
    .loading-bar {
        width: 180px;
        height: 2.5px;
    }
    
    .loading-steps {
        max-width: 200px;
        margin: 15px auto 0;
        padding: 0 5px;
    }
      .loading-step {
        font-size: 10px;
        gap: 6px;
        margin: 5px 0;
        line-height: 1.2;
    }
    
    .step-icon {
        font-size: 12px;
        min-width: 14px;
    }
    
    .status-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .loading-percentage {
        font-size: 10px;
    }
    
    /* Compact button styling for very small screens */
    .action-buttons .cyber-btn {
        font-size: 12px !important;
        padding: 12px 14px !important;
        min-height: 48px;
        line-height: 1.2 !important;
    }
    
    input[type="text"],
    input[type="password"],
    textarea {
        padding: 12px;
        min-height: 48px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .copy-btn {
        min-height: 48px;
        font-size: 12px;
        padding: 10px 14px;
        border-radius: 6px;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
      .tagline {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Ultra-small mobile devices (iPhone SE, Galaxy S4, etc.) */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 2px;
        margin: 1px;
        width: calc(100vw - 4px);
    }
    
    .logo {
        font-size: 1.2rem;
        letter-spacing: 0px;
        margin-bottom: 4px;
    }    .loading-title {
        font-size: clamp(1rem, 3vw, 1.2rem);
        letter-spacing: clamp(0.2px, 0.1vw, 0.5px);
        margin: 6px 0;
        max-width: 100%;
        width: 100%;
        text-align: center;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .loading-char {
        transform: scale(0.8);
        text-shadow: 0 0 8px var(--primary-color);
    }
    
    .loading-bar {
        width: 160px;
        height: 2px;
    }
    
    .logo-line {
        width: 80px;
        height: 1px;
    }
    
    .loading-steps {
        max-width: 180px;
        margin: 12px auto 0;
    }
    
    .loading-step {
        font-size: 9px;
        gap: 4px;
        margin: 4px 0;
    }
    
    .step-icon {
        font-size: 10px;
        min-width: 12px;
    }
    
    .panel {
        padding: 8px;
        margin-bottom: 6px;
        border-radius: 4px;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .action-buttons .cyber-btn {
        font-size: 11px !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
        border-radius: 4px !important;
    }
    
    input[type="text"],
    input[type="password"],
    textarea {
        padding: 10px;
        min-height: 44px;
        font-size: 16px;
        border-radius: 4px;
    }
}

/* Matrix rain effect */
.matrix-char {
    position: absolute;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    animation: matrixFall linear infinite;
}

@keyframes matrixFall {
    0% {
        opacity: 1;
        transform: translateY(-100vh);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);    }
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
    align-items: stretch; /* Ensure buttons have same height */
}

.action-buttons .cyber-btn {
    flex: 1 !important; /* Equal width buttons */
    margin: 0 !important;
    max-width: 250px; /* Increased to accommodate longer text */
    min-width: 180px; /* Increased minimum width */
    display: flex !important; /* Override the base display: block */
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap; /* Prevent text wrapping */
    width: auto !important; /* Override base width: 100% */
    font-size: 13px !important; /* Slightly reduce font size for better fit */
    letter-spacing: 0.5px !important; /* Reduce letter spacing */
}

/* Share button styling */
.share-btn {
    background: rgba(0, 255, 65, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
    position: relative;
    padding: 15px 30px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.share-btn:hover {
    background: rgba(0, 255, 65, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Share button highlight effect (only when highlighted) */
.share-btn.highlighted::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    border-radius: inherit;
    z-index: -1;
    animation: highlightPulse 2s infinite;
}

/* New message button styling - cleaner, matching style */
.new-message-btn {
    background: rgba(0, 255, 65, 0.05) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.1) !important;
    position: relative;
    padding: 15px 20px !important; /* Reduced horizontal padding */
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.new-message-btn:hover {
    background: rgba(0, 255, 65, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3) !important;
    transform: translateY(-2px) !important;
}

@keyframes highlightPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}