@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --void: #05080f;
    --void-light: #0a1020;
    --neon-blue: #00f0ff;
    --neon-purple: #bf00ff;
    --neon-green: #00ff9d;
    --neon-gold: #ffd700;
    --neon-red: #ff2a6d;
    --neon-orange: #ff6b35;
    --neon-pink: #ff00ff;
    --glass: rgba(10, 16, 32, 0.7);
    --glass-border: rgba(0, 240, 255, 0.1);
    --glass-bg: rgba(10, 16, 32, 0.85);
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --bg-primary: #05080f;
    --bg-secondary: #0a1020;
    --bg-card: rgba(10, 16, 32, 0.85);
    --border-color: rgba(0, 240, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="light"] {
    --void: #f5f7fa;
    --void-light: #e8ecf1;
    --neon-blue: #0891b2;
    --neon-purple: #9333ea;
    --neon-green: #059669;
    --neon-gold: #d97706;
    --neon-red: #dc2626;
    --neon-orange: #ea580c;
    --neon-pink: #db2777;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(8, 145, 178, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #f5f7fa;
    --bg-secondary: #e8ecf1;
    --bg-card: rgba(255, 255, 255, 0.98);
    --border-color: rgba(8, 145, 178, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--neon-blue);
    color: var(--void);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--neon-purple), var(--neon-pink));
}

.hidden {
    display: none !important;
}

.app-container {
    position: relative;
    min-height: 100vh;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    perspective: 1000px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    animation: logoFloat 6s ease-in-out infinite, logoRotate 20s linear infinite;
}

.logo-ring {
    transform-origin: center;
    animation: ringPulse 3s ease-in-out infinite;
}

.logo-ring-1 {
    animation-delay: 0s;
}

.logo-ring-2 {
    animation-delay: 0.5s;
    animation-direction: reverse;
}

.logo-polygon {
    transform-origin: center;
    animation: polygonSpin 15s linear infinite;
}

.logo-core {
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { 
        opacity: 0.5;
        stroke-width: 2;
    }
    50% { 
        opacity: 1;
        stroke-width: 3;
    }
}

@keyframes polygonSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes corePulse {
    0%, 100% { 
        opacity: 0.7;
        r: 30;
    }
    50% { 
        opacity: 1;
        r: 35;
    }
}

.splash-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite, titleSlideIn 1s ease-out;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    position: relative;
}

.title-text::before {
    content: 'CIPHER NEXUS';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlitch 2s infinite;
    z-index: -1;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(191, 0, 255, 0.8)); }
}

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

@keyframes titleGlitch {
    0%, 90%, 100% { 
        transform: translate(0);
        opacity: 0;
    }
    92% { 
        transform: translate(-3px, 2px);
        opacity: 0.8;
    }
    94% { 
        transform: translate(3px, -2px);
        opacity: 0.8;
    }
    96% { 
        transform: translate(-2px, -1px);
        opacity: 0.8;
    }
    98% { 
        transform: translate(2px, 1px);
        opacity: 0.8;
    }
}

.title-subtitle {
    font-size: 1.2rem;
    color: var(--neon-blue);
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 0.5s forwards;
}

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

.splash-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    animation: subtitleBounce 2s ease-in-out infinite;
}

@keyframes subtitleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.enter-btn {
    position: relative;
    padding: 1rem 3rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-blue);
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: btnSlideUp 0.8s ease-out 0.8s backwards;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transition: left 0.5s ease;
}

.enter-btn:hover::before {
    left: 100%;
}

.enter-btn:hover {
    background: var(--neon-blue);
    color: var(--void);
    box-shadow: 
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue),
        0 0 60px var(--neon-purple);
    transform: scale(1.05);
}

.enter-btn:active {
    transform: scale(0.98);
}

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

.splash-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator p {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.main-interface {
    min-height: 100vh;
    position: relative;
    opacity: 0;
    animation: mainFadeIn 0.8s ease-out forwards;
}

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

.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-canvas {
    width: 100%;
    height: 100%;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(191, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--void) 0%, var(--void-light) 100%);
    pointer-events: none;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.main-header:hover {
    background: rgba(5, 8, 15, 0.95);
    box-shadow: 0 5px 30px rgba(0, 240, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.05);
}

.logo-section:hover .header-logo {
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.header-logo {
    width: 50px;
    height: 50px;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 5px var(--neon-blue)); }
    50% { filter: drop-shadow(0 0 15px var(--neon-purple)); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    position: relative;
}

.nav-toggle {
    display: none;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--glass);
    border-color: var(--neon-blue);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--neon-blue);
    background: var(--glass);
    animation: navLinkHover 0.3s ease forwards;
}

@keyframes navLinkHover {
    0% { padding-left: 1rem; }
    50% { padding-left: 1.5rem; }
    100% { padding-left: 1rem; }
}

.nav-link:hover::before {
    width: 80%;
    animation: navLineExpand 0.3s ease forwards;
}

@keyframes navLineExpand {
    0% { width: 0%; }
    100% { width: 80%; }
}

.nav-link i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--neon-blue);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.4) rotate(-10deg); }
}

.has-submenu .submenu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    color: var(--neon-blue);
    background: var(--glass);
    padding-left: 1.5rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--glass);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: rotate(15deg);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.view-section {
    display: none;
    padding: 2rem;
    animation: viewFadeIn 0.5s ease-out;
}

.view-section.active {
    display: block;
}

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

.converter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.converter-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.view-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.view-title i {
    color: var(--neon-blue);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.view-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.converter-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-section,
.output-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-section:hover,
.output-section:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.input-section::before,
.output-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.5;
}
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: sectionSlideIn 0.5s ease-out backwards;
}

.input-section {
    animation-delay: 0.1s;
}

.output-section {
    animation-delay: 0.2s;
}

.input-section:hover,
.output-section:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

@keyframes sectionSlideIn {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

.section-label span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label span::before {
    content: '//';
    color: var(--neon-purple);
    opacity: 0.6;
}

.label-actions {
    display: flex;
    gap: 0.5rem;
}

.clear-btn,
.paste-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover,
.paste-btn:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    background: var(--glass);
}

.input-wrapper,
.output-wrapper {
    position: relative;
}

.converter-input,
.converter-output {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.converter-input:focus,
.converter-output:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.converter-input::placeholder,
.converter-output::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.converter-input:focus,
.converter-output:focus {
    animation: inputFocusGlow 0.5s ease forwards;
}

@keyframes inputFocusGlow {
    0% { box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); }
    100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }
}

@keyframes inputTypeWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.converter-input:not(:placeholder-shown),
.converter-output:not(:placeholder-shown) {
    animation: inputHasContent 0.3s ease;
}

@keyframes inputHasContent {
    0% { border-color: var(--glass-border); }
    50% { border-color: var(--neon-blue); }
    100% { border-color: var(--neon-cyan); }
}

.input-tools,
.output-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mic-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mic-btn:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.detect-result {
    font-size: 0.85rem;
    color: var(--neon-green);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 20px;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.output-action-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.output-action-btn:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    background: var(--glass);
    transform: translateY(-2px);
}

.converter-options {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    animation: optionsSlideIn 0.5s ease-out 0.15s backwards;
    position: relative;
    overflow: hidden;
}

.converter-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanline 3s linear infinite;
}

.converter-options:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

@keyframes optionsSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

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

.option-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-group label::before {
    content: '';
    width: 4px;
    height: 12px;
    background: var(--neon-blue);
    border-radius: 2px;
    opacity: 0.6;
}

.cipher-select,
.cipher-key,
.cipher-shift {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f0ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.cipher-select:hover,
.cipher-key:hover,
.cipher-shift:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background-color: rgba(0, 240, 255, 0.05);
}

.cipher-select:focus,
.cipher-key:focus,
.cipher-shift:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.cipher-select option {
    background: var(--void);
    color: var(--text-primary);
    padding: 0.75rem;
}

.cipher-select optgroup {
    background: var(--void-light);
    color: var(--neon-blue);
    font-weight: 600;
    padding: 0.5rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.convert-btn {
    padding: 0.875rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

.convert-btn:hover::before {
    left: 100%;
}

.convert-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: var(--void);
}

.convert-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 240, 255, 0.4),
        0 5px 15px rgba(191, 0, 255, 0.3);
}

.convert-btn.secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.convert-btn.secondary:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    transform: translateY(-2px);
}

.convert-btn:active {
    transform: translateY(0) scale(0.98);
    animation: btnClickPulse 0.2s ease;
}

@keyframes btnClickPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    100% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
}

.convert-btn.processing {
    animation: btnProcessing 1s ease infinite;
}

@keyframes btnProcessing {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6); }
}

.conversion-chain {
    margin-top: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    animation: chainSlideIn 0.5s ease-out 0.25s backwards;
}

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

.chain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.chain-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-purple);
}

.chain-header h3 i {
    animation: chainIconSpin 3s linear infinite;
}

@keyframes chainIconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.add-chain-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    color: var(--neon-purple);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-chain-btn:hover {
    background: var(--neon-purple);
    color: var(--void);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.4);
}

.chain-list {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.categories-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

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

.category-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.module-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: moduleCardIn 0.6s ease-out backwards;
}

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

.module-card:hover::before {
    left: 100%;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
    border-color: var(--neon-blue);
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }

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

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.2);
    animation: cardHoverFloat 0.5s ease forwards;
}

@keyframes cardHoverFloat {
    0% { transform: translateY(-10px) scale(1.02); }
    50% { transform: translateY(-15px) scale(1.03); }
    100% { transform: translateY(-10px) scale(1.02); }
}

.module-card:hover .module-glow {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.module-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.05) 0%, 
        rgba(191, 0, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-bg {
    opacity: 1;
    animation: bgPulse 2s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.module-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    filter: blur(30px);
}

.module-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.module-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 20px;
    font-size: 2rem;
    color: var(--void);
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.module-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.module-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.module-count {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--neon-blue);
}

.sub-modules {
    margin-top: 2rem;
    animation: subModulesFadeIn 0.5s ease-out;
}

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

.cipher-detail {
    margin-top: 2rem;
    animation: detailSlideIn 0.5s ease-out;
}

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

.history-container,
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

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

.history-header,
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.history-actions {
    display: flex;
    gap: 1rem;
}

.history-action-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-action-btn:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    background: var(--glass);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    animation: historyItemIn 0.4s ease-out backwards;
}

.history-item:nth-child(1) { animation-delay: 0.05s; }
.history-item:nth-child(2) { animation-delay: 0.1s; }
.history-item:nth-child(3) { animation-delay: 0.15s; }
.history-item:nth-child(4) { animation-delay: 0.2s; }
.history-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes historyItemIn {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item:hover {
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.history-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.history-item-info {
    flex: 1;
}

.history-item-type {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--neon-blue);
    margin-bottom: 0.25rem;
}

.history-item-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.history-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.settings-content {
    display: grid;
    gap: 2rem;
}

.settings-group {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.settings-group h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--neon-purple);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.setting-item select,
.setting-item input[type="text"] {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    min-width: 150px;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

.shortcut {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--neon-blue);
    font-family: 'JetBrains Mono', monospace;
}

.main-footer {
    background: rgba(5, 8, 15, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toast:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

.toast.success {
    border-color: var(--neon-green);
    animation: toastSlideIn 0.3s ease-out, successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(0, 255, 157, 0.3); }
}

.toast.error {
    border-color: var(--neon-red);
    animation: toastSlideIn 0.3s ease-out, errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.toast.info {
    border-color: var(--neon-blue);
}

.toast i {
    font-size: 1.1rem;
}

.toast.success i { color: var(--neon-green); }
.toast.error i { color: var(--neon-red); }
.toast.info i { color: var(--neon-blue); }

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 15, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 1rem;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

.loader p {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-blue);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 8, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 1rem;
        display: none;
    }
    
    .has-submenu:hover .submenu {
        display: block;
    }
    
    .title-text {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
    
    .view-title {
        font-size: 1.5rem;
    }
    
    .option-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .convert-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .converter-container {
        padding: 1rem;
    }
    
    .categories-container,
    .history-container,
    .settings-container {
        padding: 1rem;
    }
    
    .category-modules {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
    }
    
    .converter-header {
        padding: 1rem;
    }
    
    .converter-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .input-section,
    .output-section {
        padding: 1rem;
    }
    
    .converter-input,
    .converter-output {
        min-height: 120px;
        font-size: 0.9rem;
    }
    
    .splash-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .splash-title {
        font-size: 2rem;
    }
    
    .enter-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .module-card {
        padding: 1.25rem;
    }
    
    .module-card h3 {
        font-size: 1rem;
    }
    
    .history-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .view-title {
        font-size: 1.25rem;
    }
    
    .converter-options {
        padding: 1rem;
    }
    
    .option-group label {
        font-size: 0.75rem;
    }
    
    .cipher-select,
    .cipher-key,
    .cipher-shift {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .convert-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .toast {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.magnetic-btn {
    transition: transform 0.3s ease;
}

[data-magnetic] {
    transition: transform 0.2s ease;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-blue));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.crt-effect {
    position: relative;
    overflow: hidden;
}

.crt-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 240, 255, 0.3),
        transparent
    );
    animation: scanline 3s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    from { transform: translateY(-100%); }
    to { transform: translateY(100vh); }
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hologram {
    animation: hologramFlicker 0.15s infinite;
}

@keyframes hologramFlicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}
