/* Registration Protocol Styles */
@keyframes scan {
    0% { top: -10%; opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.scanner-line {
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00ffaa;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

.scanning .scanner-line {
    display: block;
    animation: scan 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* NPC Hologram styles */
.iris-bridge {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.05), rgba(0, 150, 255, 0.05));
    border: 1px solid rgba(0, 255, 170, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

.iris-bridge:hover {
    border-color: rgba(0, 255, 170, 0.3);
    background: rgba(0, 255, 170, 0.05);
}

.step-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}

.step-active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: stepEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Standard Node System: Locked Identity */
.avatar-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-locked {
    filter: brightness(0) drop-shadow(0 0 10px #00ffaa) drop-shadow(0 0 20px #00ffaa);
    opacity: 0.6;
    animation: hologramPulse 3s ease-in-out infinite;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-icon {
    font-size: 2rem;
    color: #00ffaa;
    filter: drop-shadow(0 0 5px #00ffaa);
    animation: bounceLocked 2s ease-in-out infinite;
}

@keyframes hologramPulse {
    0%, 100% { opacity: 0.6; filter: brightness(0.1) sepia(1) hue-rotate(100deg) saturate(5) drop-shadow(0 0 5px #00ffaa); }
    50% { opacity: 0.9; filter: brightness(0.3) sepia(1) hue-rotate(100deg) saturate(8) drop-shadow(0 0 15px #00ffaa) drop-shadow(0 0 25px #00ffaa); }
}

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

.dna-label-active {
    border-color: #00ffaa !important;
    background: rgba(0, 255, 170, 0.05) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.1);
}

/* Fix Peer-Checked for custom class */
.peer:checked + div,
.peer:checked ~ div {
    border-color: #00ffaa !important;
    background: rgba(0, 255, 170, 0.1) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

/* Explicit Grid Overrides for Registration */
#registration-protocol .grid-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
    #registration-protocol .sm\:grid-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
