* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: white;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wNCIgLz48L3N2Zz4=');
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

.gradient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 157, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 100, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    animation: rotate 60s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-container {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2.5rem;
    width: min(600px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
}

.accent {
    color: #00ff9d;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.hint {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

.primary-btn {
    background: #00ff9d;
    color: #0a0a0a;
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.primary-btn:hover {
    background: #00cc7a;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,255,157,0.3);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.secondary-btn:hover {
    border-color: #00ff9d;
    color: #00ff9d;
    background: rgba(0,255,157,0.1);
}

.link-btn {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    transition: all 0.2s;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.link-btn:hover {
    border-color: #00ff9d;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 10px;
}

/* Стили для мнемоники (шаг 2) */
#mnemonic-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.mnemonic-column {
    flex: 1;
    max-width: 250px;
}

.word-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.word-number {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    min-width: 30px;
    text-align: right;
    font-family: monospace;
}

.word-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: white;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', monospace;
}

.word-input:focus {
    border-color: #00ff9d;
}

.word-input[readonly] {
    opacity: 0.9;
    background: rgba(0,0,0,0.5);
}

/* Стили для формы профиля (шаг 3) */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #00ff9d;
    background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

#copy-mnemonic-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

#copy-mnemonic-btn:hover {
    border-color: #00ff9d;
    color: #00ff9d;
    background: rgba(0,255,157,0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .main-container {
        padding: 1.5rem;
    }
    
    #mnemonic-container {
        flex-direction: column;
        gap: 0;
    }
    
    .mnemonic-column {
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .primary-btn, .link-btn {
        max-width: 100%;
    }
}