:root {
    --bg-color: #05070A;
    --card-bg: rgba(20, 24, 32, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00E6F2;
    --secondary: #FF0050;
    --accent: #FDE047;
    --text-main: #FFFFFF;
    --text-dim: #94A3B8;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 230, 242, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 80, 0.08), transparent 40%);
    pointer-events: none;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

header.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 100;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
}

.logo-text strong {
    font-weight: 900;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

main {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 230, 242, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 242, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.main-interface {
    display: flex;
    padding: 40px;
    gap: 40px;
    margin-bottom: 60px;
}

.left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--card-border);
    padding-right: 40px;
}

.preview-area {
    position: relative;
    margin-bottom: 25px;
}

.preview-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 230, 242, 0.2), inset 0 0 20px rgba(0, 230, 242, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.preview-circle img, .preview-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    font-size: 60px;
    color: var(--text-dim);
}

.status-dot {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 10px #22c55e;
}

.preview-info {
    text-align: center;
}

.node-id {
    font-family: monospace;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 5px;
}

.status-text {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 1px;
}

.right-col {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px 20px;
    color: white;
    font-family: var(--font-main);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-box:hover, .upload-box.dragover {
    border-color: var(--primary);
    background: rgba(0, 230, 242, 0.05);
}

.cloud-icon {
    font-size: 32px;
    color: var(--text-dim);
    transition: color 0.3s;
}

.upload-box:hover .cloud-icon {
    color: var(--primary);
}

.upload-box span {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.browse-text {
    font-size: 13px !important;
    color: var(--text-dim) !important;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    padding: 18px;
    color: white;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-dim);
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: rgba(20, 24, 32, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 24, 32, 0.8);
    border-color: rgba(0, 230, 242, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* Overlay & Progress */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.processing-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 230, 242, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

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

#processingTitle {
    margin-bottom: 25px;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--primary);
}

.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.terminal {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    font-family: monospace;
    font-size: 13px;
    color: #22c55e;
    height: 120px;
    overflow-y: hidden;
    position: relative;
}

.terminal-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 450px;
    width: 90%;
    padding: 40px;
    text-align: center;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 20px;
}

.text-yellow {
    color: var(--accent);
    font-size: 40px;
    margin-bottom: 15px;
}

.modal-content h2 {
    font-size: 24px;
}

.modal-content p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.verification-step {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
}

.status-pending {
    color: var(--accent);
    animation: pulse 2s infinite;
}

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

.unlock-btn {
    display: block;
    background: var(--primary);
    color: var(--bg-color);
    text-decoration: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background 0.3s, transform 0.2s;
}

.unlock-btn:hover {
    background: #00c4ce;
    transform: translateY(-2px);
}

.small-text {
    font-size: 12px !important;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-interface {
        flex-direction: column;
        padding: 25px;
    }
    
    .left-col {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .nav {
        display: none;
    }
}
