.visor-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    border: 1px solid #333;
}

.visor-header h3 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visor-header p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.visor-upload-zone {
    border: 2px dashed #444;
    border-radius: 15px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #252525;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visor-upload-zone:hover {
    border-color: #6c5ce7;
    background: #2a2a2a;
}

.visor-placeholder span {
    font-size: 40px;
    color: #6c5ce7;
    margin-bottom: 10px;
    display: block;
}

#visor-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    display: block;
}

.visor-controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.visor-btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

#visor-animate-btn {
    background: linear-gradient(135deg, #6c5ce7, #4834d4);
    color: white;
}

#visor-animate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.visor-btn-secondary {
    background: #333;
    color: white;
}

.visor-loader {
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #6c5ce7;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

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

.visor-result video {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.visor-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ff7675;
}

.visor-btn-age {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.visor-btn-age:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.visor-vision-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.vision-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.vision-item:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: #6c5ce7;
    transform: translateY(-2px);
}

.vision-item.active {
    background: #6c5ce7;
    border-color: #a29bfe;
}

.vision-item span {
    font-size: 20px;
    color: #ffd32a;
    display: block;
    margin-bottom: 5px;
}

.vision-item p {
    font-size: 0.65rem;
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.visor-result-media {
    margin-bottom: 2rem;
}

.visor-text-result {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #6c5ce7;
    color: #eee;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.visor-field {
    margin-bottom: 1.2rem;
}

.visor-field label {
    display: block;
    font-size: 0.85rem;
    color: #ffd32a;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visor-field select,
.visor-field textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-family: inherit;
}

.visor-field select:focus,
.visor-field textarea:focus {
    border-color: #6c5ce7;
    outline: none;
}

.visor-log-status {
    font-size: 0.8rem;
    color: #6c5ce7;
    margin: 10px 0;
    font-weight: 500;
    font-style: italic;
    min-height: 1.2rem;
}

.visor-timer {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.timer-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}